Re: No pthread on s390x?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Dec 14, 2019 at 8:18 PM Kevin Kofler <kevin.kofler@xxxxxxxxx> wrote:
Jerry James wrote:
> $ gcc -specs=/usr/lib/rpm/redhat/redhat-hardened-ld test.c -o test
> -lpthread /usr/bin/ld: /tmp/ccWdPlbg.o: `pthread_create@@GLIBC_2.2'
> non-PLT reloc for symbol defined in shared library and accessed from
> executable (rebuild file with -fPIC ?)

The problem is that both your test invocation above and the original
invocation from CMake are passing
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld and not
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1. The code needs to be
compiled with the redhat-hardened-cc1 specs (which will enable -fpie) so
that it can be linked with the redhat-hardened-ld specs.

Well, on the other arches redhat-hardened-ld is only being used on the linker lines but clang (required for this package) is ignoring it anyway so I filtered it out.

Trying a new build now:
https://koji.fedoraproject.org/koji/taskinfo?taskID=39617672 

But what is the underlying cause of this change in behavior? I have build this package (and specifically this version) before without issue.

Thanks,
Richard
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux