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: | CONFIRMED --- | ||
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=932942 https://bugs.gentoo.org/show_bug.cgi?id=935318 https://sourceware.org/bugzilla/show_bug.cgi?id=31998 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log and emerge --info cpp11_variadic_templates_wrap.ii |
Description
matoro
![]() 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. |