[Pkg-electronics-devel] Bug#1086256: arduino-core-avr: FTBFS: /usr/lib/gcc/avr/14.2.0/../../../avr/bin/ld: ATmegaBOOT.elf section `.data' will not fit in region `text'

Santiago Vila sanvila at debian.org
Tue Oct 29 18:24:38 GMT 2024


Package: src:arduino-core-avr
Version: 1.8.6+dfsg-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    create-stamp debian/debhelper-build-stamp
    dh_prep
    dh_auto_install --destdir=debian/arduino-core-avr/
    debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
(Re)build .hex files for Atmega bootloaders...
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
rm -rf *.o *.elf *.lst *.map *.sym *.lss *.eep *.srec *.bin *.hex
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
#
# Folder 'bootloaders/atmega'
# Build target atmega328
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega328p -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega328p -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -Wl,--section-start=.text=0x7800 -o ATmegaBOOT_168_atmega328.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_atmega328.elf ATmegaBOOT_168_atmega328.hex
rm ATmegaBOOT_168_atmega328.elf ATmegaBOOT_168.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target atmega328_notp
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega328 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega328 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -Wl,--section-start=.text=0x7800 -o ATmegaBOOT_168_atmega328_notp.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_atmega328_notp.elf ATmegaBOOT_168_atmega328_notp.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_atmega328_notp.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target atmega328_pro8
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega328p -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -DDOUBLE_SPEED -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega328p -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -DBAUD_RATE=57600 -DDOUBLE_SPEED -Wl,--section-start=.text=0x7800 -o ATmegaBOOT_168_atmega328_pro_8MHz.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_atmega328_pro_8MHz.elf ATmegaBOOT_168_atmega328_pro_8MHz.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_atmega328_pro_8MHz.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target diecimila
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_diecimila.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_diecimila.elf ATmegaBOOT_168_diecimila.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_diecimila.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target lilypad
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_lilypad.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_lilypad.elf ATmegaBOOT_168_lilypad.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_lilypad.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target lilypad_resonator
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=3' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=3' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_lilypad_resonator.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_lilypad_resonator.elf ATmegaBOOT_168_lilypad_resonator.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_lilypad_resonator.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target mega
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega1280 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600 -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega1280 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600 -Wl,--section-start=.text=0x1F000 -o ATmegaBOOT_168_atmega1280.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_atmega1280.elf ATmegaBOOT_168_atmega1280.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_atmega1280.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target ng
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>1' '-DNUM_LED_FLASHES=3' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_ng.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_ng.elf ATmegaBOOT_168_ng.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_ng.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target pro16
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_pro_16MHz.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_pro_16MHz.elf ATmegaBOOT_168_pro_16MHz.hex
rm ATmegaBOOT_168_pro_16MHz.elf ATmegaBOOT_168.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target pro20
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=20000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=20000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_pro_20mhz.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_pro_20mhz.elf ATmegaBOOT_168_pro_20mhz.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_pro_20mhz.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

#
# Folder 'bootloaders/atmega'
# Build target pro8
##############################
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega'
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c
avr-gcc -g -Wall -Os -mmcu=atmega168 -DF_CPU=8000000L  '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=1' '-DWATCHDOG_MODS' -Wl,--section-start=.text=0x3800 -o ATmegaBOOT_168_pro_8MHz.elf ATmegaBOOT_168.o
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_pro_8MHz.elf ATmegaBOOT_168_pro_8MHz.hex
rm ATmegaBOOT_168.o ATmegaBOOT_168_pro_8MHz.elf
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega'

(Re)build .hex file for Atmega8 bootloader...
# Folder 'bootloaders/atmega8'
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega8'
rm -rf *.s
rm -rf *.o *.elf
rm -rf *.lst *.map
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega8'
make[2]: Entering directory '/<<PKGBUILDDIR>>/bootloaders/atmega8'
avr-gcc -g -Wall -Os -funsigned-char -funsigned-bitfields -fno-inline-small-functions -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=19200 -I/include -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ATmegaBOOT.o ATmegaBOOT.c
avr-gcc -g -Wall -Os -funsigned-char -funsigned-bitfields -fno-inline-small-functions -mmcu=atmega8 -Datmega8 -DF_CPU=16000000 -DBAUD_RATE=19200 -I/include -Wl,-Map,ATmegaBOOT.map,--section-start=.text=0x1c00 -o ATmegaBOOT.elf ATmegaBOOT.o
/usr/lib/gcc/avr/14.2.0/../../../avr/bin/ld: address 0x2004 of ATmegaBOOT.elf section `.text' is not within region `text'
/usr/lib/gcc/avr/14.2.0/../../../avr/bin/ld: ATmegaBOOT.elf section `.data' will not fit in region `text'
/usr/lib/gcc/avr/14.2.0/../../../avr/bin/ld: address 0x2004 of ATmegaBOOT.elf section `.text' is not within region `text'
/usr/lib/gcc/avr/14.2.0/../../../avr/bin/ld: region `text' overflowed by 6 bytes
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:53: ATmegaBOOT.elf] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/bootloaders/atmega8'
make[1]: *** [debian/rules:38: override_dh_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:32: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-electronics-devel mailing list