Re: binutils: s390x: fails to link systemd binaries using LTO

Michael Biebl <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <[email protected]>
Hi Aurelien

Am 20.06.2017 um 23:56 schrieb Aurelien Jarno:
> Could you please Cc the s390x porters next time? That would make us
> notice the issue faster.

Hm, when filing the bug report I used X-Debbugs-CC and got this
confirmation:

As you requested using X-Debbugs-CC, your message was also forwarded to
  [email protected]

Did this not reach the correct mailing list?


> The problem is related to the fact that gold is not available on s390x.
> It seems gold is less strict than ld in having to link with each used
> library. The problem can be fully reproduced on amd64 by using ld instead
> of gold:
> 
> --- a/meson.build
> +++ b/meson.build
> @@ -312,7 +312,7 @@ link_test_c = files('tools/meson-link-test.c')
>  foreach arg : ['-Wl,-z,relro',
>                 '-Wl,-z,now',
>                 '-pie',
> -               '-Wl,-fuse-ld=gold',
> +               '-Wl,-fuse-ld=ld',
>                ]
>  
>          have = run_command(check_compilation_sh,
> 
> 
> Now to come back to the problem, the test is linked against
> src/libsystemd/libsystemd.a which uses pthread_sigmask. It looks
> therefore normal to add -lpthread to link it.

Thanks for having a look. Will forward this issue to systemd upstream
after verifying that adding -lpthread fixes the issue.

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAllJoAEACgkQauHfDWCP
Itxgeg/6Azc9R0COL/70O0y/d20/LjkQlJsPiI96mU/Br7HNhiYdRzqOuPqG4MUn
j+inKZVwnC6BY8+LemmGXAcOLM4NnQydxXjhqGDfzwGi64b+L5tddNjcR2OB/Zlp
ZYh6eklYalcO0gVh5i5Esq6dE6Qi6iJrM+VpDxoY4bZj0cpptFWPgI1dEea0+yT8
gUjPpUh/05KNu1U13Jlgxd61JxIOOvMO06dWy+bFMah87MbS9cZ/uEjwc5vgwv9n
hAGX8w8LuwCIHp0a9tr6hq0YErB1o/WvKDEAg9FCA6q++Dp90iDHL7inU6PqDklf
Q8bHKcUwogXQkfsWOU2S4tYjy61CddRSggPfq+db/BeltBie9aEWCNHiC23cgBzU
+bOH5ZroKEM0Nl8T+tEZKFi3GmbpomMc/ELlrFiMRV4osleLFefjqTUMcR6GPsxI
+ptDAdT3aQ8jKaNJreukWOq6NGoBl98DFu5WN0RdijcvFslnddaY2dS3nZZyC23l
5u2JfCAlhKOxF2/XTwmeQpBOrKC8aIpgD0R845b0ymIbgcE80iihG7pUPXGLCa8P
+htUzPsV6/gYtg6qymc4BX89xamCNX/ZEJKmwtZviugxRkXKtD3qz/HlX5b8UjZS
r96nxELHbpBN44s1TQAFS+Xr4FutfdUPVRsRim3EqeJ+3G0j67o=
=9RZY
-----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.