Basic Information:
Printer Model: Modified Ender 3
MCU / Printerboard: 4.2.7
Host / SBC
klippy.log
Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
I had a heap of updates to clear with klipper and the Pi, I managed to get all of those done, and when using Kiauh I see the following:
- Klipper │ v0.13.0-455
- Moonraker │ v0.9.3-130
- Mainsail │ v2.16.1
- Mainsail-Config │ v1.2.1-1
- Crowsnest │ v3.0.7-4
So all of those are up to date.
When I try to configure the Klipper Firmware for the MCU I use the following as per my Printer.cfg instructions:
Micro-controller Architecture (STMicroelectronics STM32) —>
Processor model (STM32F103) —>
Bootloader offset (28KiB bootloader) —>
Communication interface (Serial (on USART1 PA10/PA9)) —>
When I have selected and confirmed those options it tries to compile and I receive the following error:
Creating symbolic link out/board
Loaded configuration ‘/home/e3/klipper/.config’
Configuration saved to ‘/home/e3/klipper/.config’
Creating symbolic link out/board
Building out/autoconf.h
Compiling out/src/stm32/watchdog.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/stm32/stm32f1.o
Compiling out/src/../lib/stm32f1/system_stm32f1xx.o
Compiling out/src/generic/armcm_timer.o
Compiling out/src/stm32/gpio.o
Compiling out/src/stm32/adc.o
Compiling out/src/stm32/spi.o
Compiling out/src/stm32/i2c.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
cc1: fatal error: out/compile_time_request.c: No such file or directory
compilation terminated.
make: *** [Makefile:85: out/compile_time_request.o] Error 1
[ERROR] Unexpected error:
Command ‘make PYTHON=python3 KCONFIG_CONFIG=/home/e3/klipper/.config’ returned non-zero exit status 2.
[ERROR] Command ‘make PYTHON=python3 KCONFIG_CONFIG=/home/e3/klipper/.config’ returned non-zero exit status 2.
[ERROR] Building Klipper Firmware failed!
I’m struggling to find what is wrong, I’m sure it’s something simple, but I’m just going around in circles trying to find it.
Any ideas?
For whatever reason, it can’t generate compile_time_requrest file.
I can suggest to run make with --trace
make --trace
It should output exactly how it the commands is executed.
Or probably you can simply run:
python3 ./scripts/buildcommands.py -d out/klipper.dict -t "arm-none-eabi-gcc;arm-none-eabi-as;arm-none-eabi-ld;arm-none-eabi-objcopy;arm-none-eabi-objdump;arm-none-eabi-strip" out/compile_time_request.txt out/compile_time_request.c
Hope that helps.
-Timofey
ok, just tried your suggestions and still no go.
cc1: fatal error: out/compile_time_request.c: No such file or directory
compilation terminated.
make: *** [Makefile:85: out/compile_time_request.o] Error 1
[ERROR] Unexpected error:
Command ‘make PYTHON=python3 KCONFIG_CONFIG=/home/e3/klipper/.config’ returned non-zero exit status 2.
[ERROR] Command ‘make PYTHON=python3 KCONFIG_CONFIG=/home/e3/klipper/.config’ returned non-zero exit status 2.
[ERROR] Building Klipper Firmware failed!
Alas, your output does not look like the output of any of the above commands.
You have to run them by hand inside the klipper directory. (No kiauh).
-Timofey
ok, I went to the klipper directory and tried again, this is the result:
e3@e3:~/klipper $ make --trace
Makefile:82: update target ‘out/compile_time_request.o’ due to: out/src/stm32/watchdog.o.ctr out/src/stm32/clockline.o.ctr out/src/stm32/dfu_reboot.o.ctr out/src/generic/crc16_ccitt.o.ctr out/src/generic/armcm_boot.o.ctr out/src/generic/armcm_irq.o.ctr out/src/generic/armcm_reset.o.ctr out/src/stm32/stm32f1.o.ctr out/src/../lib/stm32f1/system_stm32f1xx.o.ctr out/src/generic/armcm_timer.o.ctr out/src/stm32/gpio.o.ctr out/src/stm32/adc.o.ctr out/src/stm32/spi.o.ctr out/src/stm32/i2c.o.ctr out/src/stm32/serial.o.ctr out/src/generic/serial_irq.o.ctr out/src/stm32/hard_pwm.o.ctr scripts/buildcommands.py
echo " Building out/compile_time_request.o"
Building out/compile_time_request.o
cat out/src/stm32/watchdog.o.ctr out/src/stm32/clockline.o.ctr out/src/stm32/dfu_reboot.o.ctr out/src/generic/crc16_ccitt.o.ctr out/src/generic/armcm_boot.o.ctr out/src/generic/armcm_irq.o.ctr out/src/generic/armcm_reset.o.ctr out/src/stm32/stm32f1.o.ctr out/src/../lib/stm32f1/system_stm32f1xx.o.ctr out/src/generic/armcm_timer.o.ctr out/src/stm32/gpio.o.ctr out/src/stm32/adc.o.ctr out/src/stm32/spi.o.ctr out/src/stm32/i2c.o.ctr out/src/stm32/serial.o.ctr out/src/generic/serial_irq.o.ctr out/src/stm32/hard_pwm.o.ctr | tr -s ‘\0’ ‘\n’ > out/compile_time_request.txt
python3 ./scripts/buildcommands.py -d out/klipper.dict -t “arm-none-eabi-gcc;arm-none-eabi-as;arm-none-eabi-ld;arm-none-eabi-objcopy;arm-none-eabi-objdump;arm-none-eabi-strip” out/compile_time_request.txt out/compile_time_request.c
arm-none-eabi-gcc -iquote out/ -iquote src -iquote out/board-generic/ -std=gnu11 -O2 -MD -Wall -Wold-style-definition -Wtype-limits -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -flto=auto -fwhole-program -fno-use-linker-plugin -ggdb3 -mcpu=cortex-m3 -Ilib/stm32f1/include -DSTM32F103xE -mthumb -Ilib/cmsis-core -Ilib/fast-hash -c out/compile_time_request.c -o out/compile_time_request.o
cc1: fatal error: out/compile_time_request.c: No such file or directory
compilation terminated.
make: *** [Makefile:85: out/compile_time_request.o] Error 1
So, this is the command that should generate this file.
You can add -v arg to it and attempt to generate it manually.
Probably it will output something useful.
python3 ./scripts/buildcommands.py -v -d out/klipper.dict -t “arm-none-eabi-gcc;arm-none-eabi-as;arm-none-eabi-ld;arm-none-eabi-objcopy;arm-none-eabi-objdump;arm-none-eabi-strip” out/compile_time_request.txt out/compile_time_request.c
ok thanks. will give it a go
One kind request:
Please always format the code you post as Preformatted text. Else things may get lost due to reformatting.

2 Likes