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

Build fails on arm: undefined reference to `__aeabi_unwind_cpp_pr*' #1

Open
doughdemon opened this issue May 2, 2016 · 2 comments
Open

Comments

@doughdemon
Copy link
Contributor

gcc -Wl,-EL -shared -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu -Wl,-O2 -Wl,-z,defs -Wl,-s -Wl,-soname=libubacktrace.so.0 -nostdlib -nostartfiles -o libubacktrace.so.0.0 backtracesyms.o backtracesymsfd.o backtrace.o -lc -ldl
backtracesyms.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'
backtracesymsfd.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr1'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'libubacktrace.so.0.0' failed
make: *** [libubacktrace.so.0.0] Error 1

with

gcc version 4.9.3 (Gentoo Hardened 4.9.3-r99 p1.2, pie-0.6.3)

Adding "-lgcc_eh" makes it compile.

@blueness
Copy link
Owner

blueness commented May 2, 2016

should that only be added for arm or is it save for other arches?

@blueness blueness closed this as completed May 2, 2016
@blueness blueness reopened this May 2, 2016
@doughdemon
Copy link
Contributor Author

doughdemon commented May 3, 2016 via email

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

2 participants