Summary: | dev-lang/swig-4.2.1 tests fail to link on sparc: relocation truncated to fit: R_SPARC_GOT13 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Scheme Project <scheme> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matoro_gentoo, sparc, toolchain |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | Sparc64 | ||
OS: | Linux | ||
URL: | https://github.com/swig/swig/pull/2969 | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=935318 https://sourceware.org/bugzilla/show_bug.cgi?id=31998 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 932942 | ||
Attachments: |
build.log
build.log and emerge --info cpp11_variadic_templates_wrap.ii |
Description
matoro
2023-03-11 06:33:23 UTC
Created attachment 857253 [details]
build.log
Any better with binutils-2.40? (In reply to Sam James from comment #2) > Any better with binutils-2.40? No, unfortunately. We didn't run the tests before, so I'm not worried about this as a regression at least. Created attachment 896741 [details]
build.log and emerge --info
Still an issue here: swig-4.2.1, binutils-2.42-r1
For this and the hppa bug, I think we need to first try extract it to be standalone (figure out what it's calling gcc or g++ with, call it manually, then get the preprocessed sources, and so on), then minimise it and report to gcc/binutils. Created attachment 898004 [details]
cpp11_variadic_templates_wrap.ii
Minimized source from cvise, this is as small as it could get it.
$ sparc64-unknown-linux-gnu-g++ -fpic -shared -x c++ -o /dev/null cpp11_variadic_templates_wrap.ii -w
/tmp/cc0FfoHu.o: in function `_wrap_VariadicParms3_ParmsFuncPtrPtrRValueRef()':
cpp11_variadic_templates_wrap.ii:(.text+0x1bb4): relocation truncated to fit: R_SPARC_GOT13 against undefined symbol `vtable for C'
/tmp/cc0FfoHu.o: in function `__static_initialization_and_destruction_0()':
cpp11_variadic_templates_wrap.ii:(.text+0x2360): relocation truncated to fit: R_SPARC_GOT13 against symbol `_wrap_VariadicParms2_ParmsVal_argp2' defined in .data.rel section in /tmp/cc0FfoHu.o
collect2: error: ld returned 1 exit status
Thank you! Nice job. See the attached upstream PR for fix. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=228410dfe66b2f9b6c738675c1ad5656d9235aed commit 228410dfe66b2f9b6c738675c1ad5656d9235aed Author: Sam James <sam@gentoo.org> AuthorDate: 2024-09-22 13:58:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-09-22 13:58:22 +0000 dev-lang/swig: build with -fPIC, not -fpic This fixes tests on hppa, sparc. Closes: https://bugs.gentoo.org/900769 Closes: https://bugs.gentoo.org/935318 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/swig/swig-4.2.1.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a014002fbb31da31fe6914a3c8e00b0b8f666f46 commit a014002fbb31da31fe6914a3c8e00b0b8f666f46 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2024-09-22 18:43:49 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-09-22 18:45:09 +0000 dev-lang/swig: add missing patch file from upstream PR#2969 Bug: https://bugs.gentoo.org/900769 Bug: https://bugs.gentoo.org/935318 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-lang/swig/files/swig-4.2.1-tests-fpic.patch | 115 ++++++++++++++++++++++++ 1 file changed, 115 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70712e467abc2e7e112e973197d04866ba3a9117 commit 70712e467abc2e7e112e973197d04866ba3a9117 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-09-23 00:35:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-09-23 00:35:04 +0000 dev-lang/swig: drop leftover patch I switched it to a sed in the end because eautoreconf didn't work and I didn't want to spend time debugging it. Sorry! Bug: https://bugs.gentoo.org/935318 Bug: https://bugs.gentoo.org/900769 Closes: https://bugs.gentoo.org/940064 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/swig/files/swig-4.2.1-tests-fpic.patch | 115 ------------------------ dev-lang/swig/swig-4.2.1.ebuild | 4 - 2 files changed, 119 deletions(-) |