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

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

On 26/01/18 08:57, Aurelien Jarno wrote:
> On 2018-01-26 08:29, Helmut Grohne wrote:
>> Source: systemd
>> Version: 236-3
>> Severity: serious
>> User: [email protected]
>> 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@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@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@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@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@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@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@exe/src_test_test-sched-prio.c.o' 'test-sched-prio@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 [email protected] 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 [email protected] as
>> well.

I'm having a look. One data point: the bug only occurs if LTO is
enabled. If I disable LTO the systemd build passes.

Thanks,
James
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+Ixt5DaZ6POztUwQx/FnbeotAe8FAlprCVcACgkQx/Fnbeot
Ae8aYA//ceWhw5oMFwgPg6WB89O2m72He68LOXV6+eCGwMACGUrJ++Q5bOSa2AgA
S1rvq5B83FF77n8lDBqpYICnnGo0Yw2CmVEht6E6Ra/5REmYOV4O+zmgAhy/eH8G
v4Jh/JV5CaHVr2kCRkB3APoXtJSBuyqsyFCJKlEu5RpZyDQOnvpk9hyZC3zYq2sM
ZPXc6p+RVVPXBPQsr5W5ane+1kla9mVdoahYNRCkqeiCds1BXqjjmGGoYK/NV85L
0hPCVIAipJT4gdmf7K9pdszfYm/KZVOft5jWgfbnR8Azlu7Q7KzEIKpvhaXzpPUv
x4YJ8p0JG9vu/NuhklvYDz3EZz7OOs2DyybFZhEir67YRqnfarYMPS9k5Rm8yRXA
LZtnfF9xWuireGJ68cqXOcaiO4UhHf4HMD6VUxPsYcLNqi5jJBh4m4gS8WL0tRAM
Xw3ydRmMIlx2/ntkq/yI1Pf/Iqt+s2k9YeXxsSrW52a0QOKXaKalinova4aN5hUX
1yMUfrQFrg/6Id6v/zaml5HJLFXUf3QPGzkrDnHXV6b+ZIe1RLSdv1SJlH9Y1KQK
asfp8xXGy+SxzN9hBkmya87369AK5rLoTB6+9JB5DFz4X1dvSiOzqRgiAMd5mE9N
GKK7j31BU4ZZMEoh64haZr90ZMGgkLPlDAAtBxtT9l+zDb3K5eg=
=DdGS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.