https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70560

--- Comment #5 from James Hilliard <james.hilliard1 at gmail dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to James Hilliard from comment #2)
> > We've been hitting a bug in buildroot with an application(apcupsd) that
> > links against libsupc++.a directly.
> 
> Maybe I missed it, but I don't see the linker command in the build log.
That might be somewhere here:
http://autobuild.buildroot.org/results/3be/3bedf404de0ea42ee3ba624cded65d310a847af9/apcupsd-3.14.14/config.log
> Could you show the command that's failing? Could you check if the symbol
> _ZN9__gnu_cxx18__exchange_and_addEPVii is actually defined in libsupc++.a or
> if something else like _ZN9__gnu_cxx18__exchange_and_addEPVll is defined
> instead?

The toolchain in that failed build is available here:
http://autobuild.buildroot.org/toolchains/tarballs/br-sparc-uclibc-2020.02.tar.bz2

It appears reference to _ZN9__gnu_cxx18__exchange_and_addEPVii are in the
following objects in libsupc++.a.

$ nm eh_throw.o
         U __cxa_begin_catch
         U __cxa_free_exception
         U __cxa_get_globals
00000000 T __cxa_init_primary_exception
00000000 T __cxa_rethrow
00000000 T __cxa_throw
         U _GLOBAL_OFFSET_TABLE_
         w __pthread_key_create
00000000 W __sparc_get_pc_thunk.l7
         U _Unwind_RaiseException
         U _Unwind_Resume_or_Rethrow
00000000 t
_ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception
         U _ZN10__cxxabiv111__terminateEPFvvE
         U _ZN9__gnu_cxx18__exchange_and_addEPVii
         U _ZSt13get_terminatev
         U _ZSt14get_unexpectedv
         U _ZSt9terminatev

$ nm eh_tm.o
         U __cxa_call_unexpected
         U __cxa_free_dependent_exception
         U __cxa_free_exception
         U __cxa_get_globals_fast
00000000 T __cxa_tm_cleanup
00000000 V DW.ref.__gxx_personality_v0
         U _GLOBAL_OFFSET_TABLE_
         U __gxx_personality_v0
         w __pthread_key_create
00000000 W __sparc_get_pc_thunk.l7
         U _Unwind_DeleteException
         U _Unwind_Resume
00000000 t _ZL22free_any_cxa_exceptionP17_Unwind_Exception
         U _ZN9__gnu_cxx18__exchange_and_addEPVii

$ nm eh_ptr.o
         U __cxa_allocate_dependent_exception
         U __cxa_begin_catch
         U __cxa_free_dependent_exception
         U __cxa_free_exception
         U __cxa_get_globals
00000000 V DW.ref.__gxx_personality_v0
         U _GLOBAL_OFFSET_TABLE_
         U __gxx_personality_v0
         w __pthread_key_create
00000000 W __sparc_get_pc_thunk.l7
         U _Unwind_RaiseException
00000000 t
_ZL33__gxx_dependent_exception_cleanup19_Unwind_Reason_CodeP17_Unwind_Exception
         U _ZN10__cxxabiv111__terminateEPFvvE
         U _ZN9__gnu_cxx12__atomic_addEPVii
         U _ZN9__gnu_cxx18__exchange_and_addEPVii
00000000 T _ZNKSt15__exception_ptr13exception_ptr20__cxa_exception_typeEv
00000000 T _ZNKSt15__exception_ptr13exception_ptr6_M_getEv
00000000 T _ZNKSt15__exception_ptr13exception_ptrcvMS0_FvvEEv
00000000 T _ZNKSt15__exception_ptr13exception_ptrntEv
00000000 T _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv
00000000 T _ZNSt15__exception_ptr13exception_ptr18_M_safe_bool_dummyEv
00000000 T _ZNSt15__exception_ptr13exception_ptr4swapERS0_
00000000 T _ZNSt15__exception_ptr13exception_ptr9_M_addrefEv
00000000 T _ZNSt15__exception_ptr13exception_ptraSERKS0_
00000000 T _ZNSt15__exception_ptr13exception_ptrC1EMS0_FvvE
00000000 T _ZNSt15__exception_ptr13exception_ptrC1EPv
00000000 T _ZNSt15__exception_ptr13exception_ptrC1ERKS0_
00000000 T _ZNSt15__exception_ptr13exception_ptrC1Ev
00000000 T _ZNSt15__exception_ptr13exception_ptrC2EMS0_FvvE
00000000 T _ZNSt15__exception_ptr13exception_ptrC2EPv
00000000 T _ZNSt15__exception_ptr13exception_ptrC2ERKS0_
00000000 T _ZNSt15__exception_ptr13exception_ptrC2Ev
00000000 T _ZNSt15__exception_ptr13exception_ptrD1Ev
00000000 T _ZNSt15__exception_ptr13exception_ptrD2Ev
00000000 T _ZNSt15__exception_ptreqERKNS_13exception_ptrES2_
00000000 T _ZNSt15__exception_ptrneERKNS_13exception_ptrES2_
         U _ZSt13get_terminatev
         U _ZSt14get_unexpectedv
00000000 T _ZSt17current_exceptionv
00000000 T _ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE
         U _ZSt9terminatev

Reply via email to