Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935318 - dev-lang/swig-4.2.1 fails tests on hppa: cannot handle R_PARISC_PCREL17F for _ZNSt7__cxx114listI6StructSaIS1_EE6spliceESt20_List_const_iteratorIS1_ERS3_
Summary: dev-lang/swig-4.2.1 fails tests on hppa: cannot handle R_PARISC_PCREL17F for ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: Normal normal
Assignee: Scheme Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 932942
  Show dependency tree
 
Reported: 2024-07-02 03:41 UTC by matoro
Modified: 2024-09-23 10:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (file_935318.txt,154.99 KB, text/plain)
2024-07-02 03:41 UTC, matoro
Details
build.log and emerge --info (file_935318.txt,154.99 KB, text/plain)
2024-07-03 05:15 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-02 03:41:46 UTC
Created attachment 896743 [details]
build.log and emerge --info

checking python testcase li_std_list
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: li_std_list_wrap.o(.text._ZNSt7__cxx114listI6StructSaIS1_EE6insertISt20_List_const_iteratorIS1_EvEESt14_List_iteratorIS1_ES6_T_S9_[_ZNSt7__cxx114listI6StructSaIS1_EE6insertISt20_List_const_iteratorIS1_EvEESt14_List_iteratorIS1_ES6_T_S9_]+0xf8): cannot reach 00001f04__ZNSt7__cxx114listI6StructSaIS1_EE6spliceESt20_List_const_iteratorIS1_ERS3_+0, recompile with -ffunction-sections
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: li_std_list_wrap.o(.text._ZNSt7__cxx114listI6StructSaIS1_EE6insertISt20_List_const_iteratorIS1_EvEESt14_List_iteratorIS1_ES6_T_S9_[_ZNSt7__cxx114listI6StructSaIS1_EE6insertISt20_List_const_iteratorIS1_EvEESt14_List_iteratorIS1_ES6_T_S9_]+0xf8): cannot handle R_PARISC_PCREL17F for _ZNSt7__cxx114listI6StructSaIS1_EE6spliceESt20_List_const_iteratorIS1_ERS3_
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../../../Examples/Makefile:1292: python_cpp] Error 1
make[1]: *** [Makefile:136: li_std_list.cpptest] Error 2

checking python testcase std_containers (with run test)
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: std_containers_wrap.o(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEjRKS1_[_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEjRKS1_]+0xc8): cannot reach 00001fd7__ZNSt6vectorIS_IiSaIiEESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_+0, recompile with -ffunction-sections
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: std_containers_wrap.o(.text._ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEjRKS1_[_ZNSt6vectorIS_IiSaIiEESaIS1_EE6resizeEjRKS1_]+0xc8): cannot handle R_PARISC_PCREL17F for _ZNSt6vectorIS_IiSaIiEESaIS1_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjRKS1_
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../../../Examples/Makefile:1292: python_cpp] Error 1
make[1]: *** [Makefile:136: std_containers.cpptest] Error 2

checking python testcase li_std_vector (with run test)
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: li_std_vector_wrap.o(.text._ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_[_ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_]+0x50): cannot reach 000021b5__ZNSt12_Destroy_auxILb0EE9__destroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEEvT_S9_+0, recompile with -ffunction-sections
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: li_std_vector_wrap.o(.text._ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_[_ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_]+0x50): cannot handle R_PARISC_PCREL17F for _ZNSt12_Destroy_auxILb0EE9__destroyIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEEvT_S9_
/usr/lib/gcc/hppa2.0-unknown-linux-gnu/13/../../../../hppa2.0-unknown-linux-gnu/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../../../Examples/Makefile:1292: python_cpp] Error 1
make[1]: *** [Makefile:136: li_std_vector.cpptest] Error 2
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-02 09:35:02 UTC
Does building with -mlong-calls help?
Comment 2 matoro archtester 2024-07-02 17:18:56 UTC
(In reply to Sam James from comment #1)
> Does building with -mlong-calls help?

No, doesn't help, although I can't say with certainty that the stuff in the test suite is actually respecting CFLAGS since it doesn't print the compile commands.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-03 00:36:54 UTC
Wonder if ~arch binutils helps given the hppa reloc fix in there?
Comment 4 matoro archtester 2024-07-03 05:15:47 UTC
Created attachment 896828 [details]
build.log and emerge --info

(In reply to Sam James from comment #3)
> Wonder if ~arch binutils helps given the hppa reloc fix in there?

No dice unfortunately; see attached.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-04 01:44:23 UTC
OK, thanks for trying the ideas. It'll require sitting down and properly looking then.
Comment 6 Larry the Git Cow gentoo-dev 2024-09-22 13:59:34 UTC
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(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-09-22 18:45:12 UTC
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(+)
Comment 8 Larry the Git Cow gentoo-dev 2024-09-23 00:36:15 UTC
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(-)
Comment 9 Larry the Git Cow gentoo-dev 2024-09-23 10:59:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf2eb2b7d4a99074731f23ebf69c88df75aee81

commit ccf2eb2b7d4a99074731f23ebf69c88df75aee81
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-09-23 10:57:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-23 10:58:31 +0000

    dev-lang/swig: test improvements
    
    * Fix tests on HPPA by passing -fdata-sections -ffunction-sectons
    * Make both build & tests more verbose
    * Fully respect *FLAGS in tests
    
    Bug: https://bugs.gentoo.org/935318
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/swig/swig-4.2.1.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)