I'm having serious problems with Clang on a Beagleboard (with BeagleBoard Debian Jessie).
I have this minimal non-working example:
int main() { return 0; }
When compiling with clang++ -stdlib=libc++ test.cppI get:
/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libc++.so: undefined reference to `_Unwind_SjLj_RaiseException'
/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libc++.so: undefined reference to `_Unwind_SetIP'
/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libc++.so: undefined reference to `_Unwind_SetGR'
/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.8/../../../arm-linux-gnueabihf/libc++.so: undefined reference to `_Unwind_GetIP'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What's happening? It works great on Debian Jessie.
source
share