Basic Information:
Printer Model: N/A
MCU / Printerboard: N/A (test/configs/atmega328.config)
klippy.log
(build log instead)
build.log (221.8 KB)
Describe your issue:
When running scripts/build-ci.sh in a ubuntu jammy container (after running install-ci), during the atmega328 configuration, the following error appears
Linking out/klipper.elf
avr-gcc out/src/sched.o out/src/command.o out/src/basecmd.o out/src/debugcmds.o out/src/initial_pins.o out/src/gpiocmds.o out/src/stepper.o out/src/endstop.o out/src/trsync.o out/src/adccmds.o out/src/spicmds.o out/src/i2ccmds.o out/src/pwmcmds.o out/src/buttons.o out/src/tmcuart.o out/src/neopixel.o out/src/pulse_counter.o out/src/lcd_st7920.o out/src/lcd_hd44780.o out/src/spi_software.o out/src/i2c_software.o out/src/sensor_lis2dw.o out/src/thermocouple.o out/src/sensor_adxl345.o out/src/sensor_angle.o out/src/sensor_mpu9250.o out/src/avr/main.o out/src/avr/timer.o out/src/avr/gpio.o out/src/avr/adc.o out/src/avr/spi.o out/src/avr/i2c.o out/src/avr/hard_pwm.o out/src/avr/watchdog.o out/src/avr/serial.o out/src/generic/serial_irq.o out/compile_time_request.o -Iout/ -Isrc -Iout/board-generic/ -std=gnu11 -O2 -MD -Wall -Wold-style-definition -Wtype-limits -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -flto -fwhole-program -fno-use-linker-plugin -ggdb3 -mmcu="atmega328" -Wl,--gc-sections -o out/klipper.elf
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: out/klipper.elf section `.text' will not fit in region `text'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x800c08 of out/klipper.elf section `.data' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x800d75 of out/klipper.elf section `.bss' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x800c08 of out/klipper.elf section `.data' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x800d75 of out/klipper.elf section `.bss' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: region `text' overflowed by 7438 bytes
collect2: error: ld returned 1 exit status
make: *** [Makefile:72: out/klipper.elf] Error 1
This prevents any later builds from running, and indicates that there is not enough room on the target hardware for the current version of klipper.
Reproduction steps
> podman run --rm -it ubuntu:jammy
# apt update
# apt install git wget curl sudo vim make
# curl -L https://github.com/Klipper3d/klipper/archive/refs/heads/master.tar.gz | tar -xvz -C /var/tmp
# cd /var/tmp/klipper-master
# ./scripts/ci-install.sh
# ./scripts/ci-build.sh