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
Does building with -mlong-calls help?
(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.
Wonder if ~arch binutils helps given the hppa reloc fix in there?
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.
OK, thanks for trying the ideas. It'll require sitting down and properly looking then.