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

Helmut Grohne helmut at subdivi.de
Fri Jan 26 07:29:08 GMT 2018


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

The build was performed on eller.d.o.

If you reassign to binutils, please set affects.

I put d-mips at l.d.o into X-Debbugs-Cc. During cross builds I was able to
reproduce a very similar build failure for mips and armhf. A native
build on amd64 seems unaffected. Thus I have included d-arm at l.d.o as
well.

Hope this helps

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd.log.xz
Type: application/x-xz
Size: 43068 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20180126/8de18719/attachment-0001.bin>


More information about the Pkg-systemd-maintainers mailing list