Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc++abi can't find unwind symbols #43

Open
valpackett opened this issue Apr 13, 2019 · 0 comments
Open

libc++abi can't find unwind symbols #43

valpackett opened this issue Apr 13, 2019 · 0 comments

Comments

@valpackett
Copy link

Building a c++ program on FreeBSD -CURRENT with latest packages from the cloudabi pkg repo:

x86_64-unknown-cloudabi-ld: error: undefined symbol: _Unwind_RaiseException
>>> referenced by /usr/obj/cloudabi-ports/build/0/libcxxabi-5.0.0.src/src/cxa_exception.cpp
>>>               cxa_exception.cpp.o:(__cxa_throw) in archive /usr/local/x86_64-unknown-cloudabi/lib/libc++abi.a

x86_64-unknown-cloudabi-ld: error: undefined symbol: _Unwind_DeleteException
>>> referenced by /usr/obj/cloudabi-ports/build/0/libcxxabi-5.0.0.src/src/cxa_exception.cpp
>>>               cxa_exception.cpp.o:(__cxa_end_catch) in archive /usr/local/x86_64-unknown-cloudabi/lib/libc++abi.a

x86_64-unknown-cloudabi-ld: error: undefined symbol: _Unwind_RaiseException
>>> referenced by /usr/obj/cloudabi-ports/build/0/libcxxabi-5.0.0.src/src/cxa_exception.cpp
>>>               cxa_exception.cpp.o:(__cxa_rethrow) in archive /usr/local/x86_64-unknown-cloudabi/lib/libc++abi.a

x86_64-unknown-cloudabi-ld: error: undefined symbol: _Unwind_Resume
>>> referenced by /usr/obj/cloudabi-ports/build/0/libcxxabi-5.0.0.src/src/cxa_demangle.cpp
>>>               cxa_demangle.cpp.o:(__cxa_demangle) in archive /usr/local/x86_64-unknown-cloudabi/lib/libc++abi.a

x86_64-unknown-cloudabi-ld: error: undefined symbol: _Unwind_Resume
>>> referenced by /usr/obj/cloudabi-ports/build/0/libcxxabi-5.0.0.src/src/cxa_demangle.cpp
>>>               cxa_demangle.cpp.o:(__cxa_demangle) in archive /usr/local/x86_64-unknown-cloudabi/lib/libc++abi.a

They do exist in libunwind…

% objdump -t /usr/local/x86_64-unknown-cloudabi/lib/libunwind.a | sr Unwind_Resume
000000000000005a l     O .rodata.str1.1 000000000000001a .L__func__._Unwind_Resume_or_Rethrow
0000000000000000 l    d  .text._Unwind_Resume_or_Rethrow        0000000000000000 .text._Unwind_Resume_or_Rethrow
0000000000000000         *UND*  0000000000000000 _Unwind_Resume
0000000000000000 g     F .text._Unwind_Resume_or_Rethrow        0000000000000083 _Unwind_Resume_or_Rethrow
000000000000006e l     O .rodata.str1.1 000000000000000f .L__func__._Unwind_Resume
0000000000000000 l    d  .text._Unwind_Resume   0000000000000000 .text._Unwind_Resume
0000000000000000 g     F .text._Unwind_Resume   00000000000000c4 _Unwind_Resume

-fno-exceptions works, but then I don't have exceptions…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant