#Failed to build klipper.bin

1 messages Β· Page 1 of 1 (latest)

hollow matrix
#

Hardware: Rpi4 B, Fysetc Spider v1.1

Hi πŸ™‚ hopefully some kind soul can help me here, i updated klipper and now i have to update the firmware for my Fysetc Spider. i have done this before without any problems, but this time it doesent work..

i did like this:

  • ssh to pi
  • run this commands,
    • sudo apt install make (already installed)
    • cd ~/klipper
      -make clean
    • make menuconfig
    • make

after running the application make, i got this errors at the bottom line:

Compiling out/src/stm32/hard_pwm.o
Building out/compile_time_request.o
Traceback (most recent call last):
File "/home/pi/klipper/./scripts/buildcommands.py", line 620, in <module>
main()
File "/home/pi/klipper/./scripts/buildcommands.py", line 611, in main
ctr_dispatchcmd
File "/home/pi/klipper/./scripts/buildcommands.py", line 168, in decl_initial_pins
HandlerConstants.decl_constant_str(
File "/home/pi/klipper/./scripts/buildcommands.py", line 140, in decl_constant_str
name, value = req.split(None, 2)[1:]
ValueError: not enough values to unpack (expected 2, got 1)
make: *** [Makefile:84: out/compile_time_request.o] Error 1

anyone know how to solve this? wery thankful for anything i can try πŸ™‚

stray sierraBOT
#

Ahoi @hollow matrix!
Welcome to the Mainsail support-forum!
There is a problem with the tags you selected for this post. Please fix them to fit your question.
For further information on tags please check the readme: #readme message

To change the tags of this post:

  1. Open the ... menu on the top right corner of this post.
  2. Find Edit tags
  3. Select the checkbox of the correct tags.

Usually you just need to select one tag!
If you still have no idea which one to choose, feel free to ask here.

Note: This is an automated message

Thanks for your cooperation!

#

Ahoi @hollow matrix!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

willow moon
#

Instead of a log the settings during make menuconfig might be worth sharing

hollow matrix
willow moon
#

Send the output of following commands:

git remote -v
git status
git branch -l
git log
#

inside the Klipper directory ofc

hollow matrix
# willow moon Send the output of following commands: ```sh git remote -v git status git branch...

i have my printer at work so couldent send the information yesterday,

here is what i got:

pi@raspberrypi:~/klipper $ git remote -v
origin https://github.com/Klipper3d/klipper.git (fetch)
origin https://github.com/Klipper3d/klipper.git (push)
pi@raspberrypi:~/klipper $ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
(use "git add <file>..." to include in what will be committed)
klippy/extras/z_calibration.py

nothing added to commit but untracked files present (use "git add" to track)
pi@raspberrypi:~/klipper $ git branch -l

  • master
hollow matrix
willow moon
#

What is that option? Where does it come from?

#

Is it maybe from klippy/extras/z_calibration.py?

#

Can you move that file out of your klipper directory and then try again?

#

Also send the whole compiler output and the OS that you are compiling on

hollow matrix
hollow matrix
hollow matrix
#

i did not work

here is the output:

pi@raspberrypi:~/klipper $ make menuconfig
Loaded configuration '/home/pi/klipper/.config'
No changes to save (for '/home/pi/klipper/.config')
pi@raspberrypi:~/klipper $ make clean
pi@raspberrypi:~/klipper $ make
Creating symbolic link out/board
Building out/autoconf.h
Compiling out/src/sched.o
Compiling out/src/command.o
Compiling out/src/basecmd.o
Compiling out/src/debugcmds.o
Compiling out/src/initial_pins.o
Compiling out/src/gpiocmds.o
Compiling out/src/stepper.o
Compiling out/src/endstop.o
Compiling out/src/trsync.o
Compiling out/src/adccmds.o
Compiling out/src/spicmds.o
Compiling out/src/sdiocmds.o
Compiling out/src/i2ccmds.o
Compiling out/src/pwmcmds.o
Compiling out/src/buttons.o
Compiling out/src/tmcuart.o
Compiling out/src/neopixel.o
Compiling out/src/pulse_counter.o
Compiling out/src/lcd_st7920.o
Compiling out/src/lcd_hd44780.o
Compiling out/src/spi_software.o
Compiling out/src/i2c_software.o
Compiling out/src/thermocouple.o
Compiling out/src/sensor_adxl345.o
Compiling out/src/sensor_angle.o
Compiling out/src/sensor_mpu9250.o
Compiling out/src/sensor_lis2dw.o
Compiling out/src/sensor_ldc1612.o
Compiling out/src/sensor_bulk.o
Compiling out/src/stm32/watchdog.o
Compiling out/src/stm32/gpio.o
Compiling out/src/stm32/clockline.o
Compiling out/src/stm32/dfu_reboot.o
Compiling out/src/generic/crc16_ccitt.o

#

Compiling out/src/generic/armcm_boot.o
Compiling out/src/generic/armcm_irq.o
Compiling out/src/generic/armcm_reset.o
Compiling out/src/../lib/stm32f4/system_stm32f4xx.o
Compiling out/src/stm32/stm32f4.o
Compiling out/src/generic/armcm_timer.o
Compiling out/src/stm32/gpioperiph.o
Compiling out/src/stm32/adc.o
Compiling out/src/stm32/i2c.o
Compiling out/src/stm32/spi.o
Compiling out/src/stm32/sdio.o
Compiling out/src/stm32/serial.o
Compiling out/src/generic/serial_irq.o
Compiling out/src/stm32/hard_pwm.o
Building out/compile_time_request.o
Traceback (most recent call last):
File "/home/pi/klipper/./scripts/buildcommands.py", line 620, in <module>
main()
File "/home/pi/klipper/./scripts/buildcommands.py", line 611, in main
ctr_dispatchcmd
File "/home/pi/klipper/./scripts/buildcommands.py", line 168, in decl_initial_pins
HandlerConstants.decl_constant_str(
File "/home/pi/klipper/./scripts/buildcommands.py", line 140, in decl_constant_str
name, value = req.split(None, 2)[1:]
ValueError: not enough values to unpack (expected 2, got 1)
make: *** [Makefile:84: out/compile_time_request.o] Error 1
pi@raspberrypi:~/klipper $

hollow matrix
#

mine looks like this:

willow moon
#

Just try to delete the klipper folder and reclone it

#

Or better use kiauh to uninstall and reinstall

hollow matrix
#

ok i will try

willow moon
#

After uninstall with kiauh make sure the folder is gone

hollow matrix
#

will my settings be gone with this uninstall?

willow moon
#

only th emake menuconfig

hollow matrix
#

ok good πŸ˜…

willow moon
#

You printer.cfg won't be deleted

hollow matrix
#

it worked!! :):):)

....
Compiling out/src/stm32/hard_pwm.o
Building out/compile_time_request.o
Version: v0.12.0-192-gb7f7b8a3
Preprocessing out/src/generic/armcm_link.ld
Linking out/klipper.elf
Creating hex file out/klipper.bin
pi@raspberrypi:~/klipper $

willow moon
#

Weird, that it didn't show any changes in git status