Bug#888478: systemd FTBFS on mipsel: /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757

Adrian Bunk bunk at debian.org
Fri Jan 26 08:37:22 GMT 2018


Control: reassign -1 binutils 2.29.90.20180122-1
Control: affects -1 src:systemd

On Fri, Jan 26, 2018 at 08:29:08AM +0100, Helmut Grohne wrote:
> Source: systemd
> Version: 236-3
> Severity: serious
> User: helmutg at debian.org
> Usertags: rebootstrap
> 
> systemd fails to build from source on mipsel. Very likely this is not
> caused by this particular systemd upload, but by the binutils upload
> instead. In any case, the build log (attached) ends with:
> 
> | [1514/1858] cc  -o test-dhcp-server 'test-dhcp-server at exe/src_libsystemd-network_test-dhcp-server.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | FAILED: test-dhcp-server 
> | cc  -o test-dhcp-server 'test-dhcp-server at exe/src_libsystemd-network_test-dhcp-server.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757
> | collect2: error: ld returned 1 exit status
> | [1515/1858] cc  -o test-ipv4ll 'test-ipv4ll at exe/src_libsystemd-network_test-ipv4ll.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | FAILED: test-ipv4ll 
> | cc  -o test-ipv4ll 'test-ipv4ll at exe/src_libsystemd-network_test-ipv4ll.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757
> | collect2: error: ld returned 1 exit status
> | [1516/1858] cc  -o test-dhcp-client 'test-dhcp-client at exe/src_libsystemd-network_test-dhcp-client.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | FAILED: test-dhcp-client 
> | cc  -o test-dhcp-client 'test-dhcp-client at exe/src_libsystemd-network_test-dhcp-client.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757
> | /usr/bin/ld: BFD (GNU Binutils for Debian) 2.29.90.20180122 assertion fail ../../bfd/elflink.c:9757
> | collect2: error: ld returned 1 exit status
> | [1517/1858] cc  -o test-sched-prio 'test-sched-prio at exe/src_test_test-sched-prio.c.o' 'test-sched-prio at exe/src_test_test-helper.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fdebug-prefix-map=/home/helmutg/systemd-236=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/core/libcore.a src/shared/libsystemd-shared-236.a src/shared/libsystemd-shared-236.so -pthread -lrt -lseccomp -lselinux -lmount -lblkid -Wl,--end-group -lseccomp -lpam -laudit -lkmod -lapparmor -lmount -lrt -lcap -lacl -lcryptsetup -lgcrypt -lip4tc -lip6tc -lseccomp -lselinux -lidn -llzma -llz4 -lblkid '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/home/helmutg/systemd-236/build-deb/src/shared  
> | ninja: build stopped: subcommand failed.
> | dh_auto_build: cd build-deb && LC_ALL=C.UTF-8 ninja -j4 -v returned exit code 1
> | debian/rules:161: recipe for target 'override_dh_auto_build' failed
> | make[1]: *** [override_dh_auto_build] Error 1
> | make[1]: Leaving directory '/home/helmutg/systemd-236'
> | debian/rules:293: recipe for target 'build' failed
> | make: *** [build] Error 2
> | dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
>...

I triggered builds on reproducible.

A pattern might be be that it fails on every 32bit architecture,
with a different error on each architecture...

armhf[1]:
FAILED: test-dhcp-server 
cc  -o test-dhcp-server 'test-dhcp-server at exe/src_libsystemd-network_test-dhcp-server.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/build/1st/systemd-236/build-deb/src/shared  
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.


i386[2]:
FAILED: test-dhcp-client 
cc  -o test-dhcp-client 'test-dhcp-client at exe/src_libsystemd-network_test-dhcp-client.c.o' -flto -Wl,--no-undefined -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,--start-group src/shared/libsystemd-shared-236.so src/libsystemd-network/libsystemd-network.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/src/shared' -Wl,-rpath-link,/build/1st/systemd-236/build-deb/src/shared  
/usr/bin/ld: /tmp/ccikaBO6.ltrans0.ltrans.o(.text+0x3362): unresolvable R_386_PLT32 relocation against symbol `__udivdi3'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status


> Hope this helps
> 
> Helmut

cu
Adrian

[1] https://tests.reproducible-builds.org/debian/rb-pkg/unstable/armhf/systemd.html
[2] https://tests.reproducible-builds.org/debian/rb-pkg/unstable/i386/systemd.html

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




More information about the Pkg-systemd-maintainers mailing list