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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to