| Summary: | dev-lisp/sbcl-1.1.18 : /.../ld: x86-64-assem.o: relocation R_X86_64_32S against `all_threads' can not be used when making a shared object; recompile with -fPIC | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
| Component: | Current packages | Assignee: | Mark Wright <gienah> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugs, common-lisp, gienah, nvinson234, proxy-maint |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
dev-lisp:sbcl-1.1.18:20160523-222037.log
emerge-history.txt environment emerge-info.txt dev-lisp:sbcl-1.3.11:20170203-181450.log emerge-history.txt environment etc.portage.tbz2 sbcl-1.3.14-ebuild-bug-58930.patch sbcl-1.3.14-gentoo-fix_nopie_for_hardened_toolchain.patch sbcl-1.3.14-ebuild-bug-58930.patch |
||
|
Description
Toralf Förster
2016-05-24 07:40:45 UTC
Created attachment 435168 [details]
dev-lisp:sbcl-1.1.18:20160523-222037.log
Created attachment 435170 [details]
emerge-history.txt
Created attachment 435172 [details]
environment
No longer in the tree. same at a tinderbox image Created attachment 462362 [details]
emerge-info.txt
Created attachment 462364 [details]
dev-lisp:sbcl-1.3.11:20170203-181450.log
Created attachment 462366 [details]
emerge-history.txt
Created attachment 462368 [details]
environment
Created attachment 462370 [details]
etc.portage.tbz2
Cannot reproduce. Probably, something gcc-6 specific. I'll contact the upstream, it would be good to sort it out before gcc-6 is unmasked. Created attachment 465392 [details, diff]
sbcl-1.3.14-ebuild-bug-58930.patch
I reproduced the problem with sbcl-1.3.14 building with gcc-6.3.0 on gentoo-hardened. The proposed patch only applies the sbcl-1.3.14-config.patch if the compiler does not support the -nopie or -no-pie options. At the time of writing, gcc-specs-pie only checks for -nopie, the my-gcc-specs-pie function works around this. The sbcl-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch is no longer necessary as upstream are already compiling with -nopie or -no-pie, so we should only remove compiling with -nopie or -no-pie if the compiler does not support either of these options.
The https://bugs.gentoo.org/attachment.cgi?id=465392 patch is bad, sorry, it brings back bug 607302 when compiling with gcc 5.3.0 and probably other gcc versions on gentoo-hardened. Created attachment 465452 [details, diff]
sbcl-1.3.14-gentoo-fix_nopie_for_hardened_toolchain.patch
Replaces sbcl-1.3.14-config.patch. I will try to upstream this patch, after it has been tested on non-hardened systems.
Created attachment 465454 [details, diff]
sbcl-1.3.14-ebuild-bug-58930.patch
Tested with gcc 4.7.4, 4.8.5, 4.9.3, 5.3.0, 5.4.0, 6.3.0 on gentoo-hardened only. It would be neat if someone would like to test it on a non-hardened system.
Unless someone else wants to commit it, I will take the bug and commit it.
(In reply to Mark Wright from comment #15) > Tested with gcc 4.7.4, 4.8.5, 4.9.3, 5.3.0, 5.4.0, 6.3.0 on gentoo-hardened > only. It would be neat if someone would like to test it on a non-hardened > system. Tested on non-hardened ~amd64 and ~x86 with gcc-5.4.0. > Unless someone else wants to commit it, I will take the bug and commit it. Please go ahead and commit it. (In reply to Andrey Grozin from comment #16) > (In reply to Mark Wright from comment #15) > > Tested with gcc 4.7.4, 4.8.5, 4.9.3, 5.3.0, 5.4.0, 6.3.0 on gentoo-hardened > > only. It would be neat if someone would like to test it on a non-hardened > > system. > Tested on non-hardened ~amd64 and ~x86 with gcc-5.4.0. Great, thanks for testing. > > Unless someone else wants to commit it, I will take the bug and commit it. > Please go ahead and commit it. Done: commit 4d54b1daeefc0acd44a6d8971c70104a534ed853 Author: Mark Wright <gienah@gentoo.org> Date: Wed Mar 1 23:57:07 2017 +1100 dev-lisp/sbcl: Fix the detection of -nopie and -no-pie. The change 3403dbaffc0a9bab49b78cf0bb5308cce0a0c153 that upstream did for https://bugs.launchpad.net/sbcl/+bug/1633559 does not work on Gentoo. So it was patched out in the fix for #607302 with sbcl-1.3.14-config.patch, which unfortunately leads to #583930. Thanks to Toralf Forster for reporting, and grozin for testing. Gentoo-bug: 599902, 607302, 583930 Raised this bug to try to upstream the patch: https://bugs.launchpad.net/sbcl/+bug/1668986 Fixed upstream: https://bugs.launchpad.net/bugs/1668986 Stas Boukarev (stassats) wrote 2 hours ago: #3 In d905bdd3b4ce68682ea611390624b78c8d8dbdcf. Changed in sbcl: status: New → Fix Committed |