Tests and libunwind are not dependent libcxxabi except
in case of a santizer is in use.
Signal frame is only supported on elf/dwarf based systems.
To build 32bit on a 64bit systems gcc\g++-multilib packages are needed.
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project
Diff Detail
Unit Tests
Event Timeline
libunwind/test/signal_frame.pass.cpp | ||
---|---|---|
11 | Shouldn't this also work on other ELF+DWARF platforms, e.g. FreeBSD? |
libunwind/test/libunwind/test/config.py | ||
---|---|---|
71 | Why do we need the C++ library? I can see the following issue: $ nm -D -u /usr/lib/gcc/x86_64-linux-gnu/7/libasan.so U _Unwind_Backtrace U _Unwind_GetIP readelf --dynamic /usr/lib/gcc/x86_64-linux-gnu/7/libasan.so Dynamic section at offset 0x151550 contains 31 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x000000000000000e (SONAME) Library soname: [libasan.so.4] And on Ubuntu clang's libclang-rt even links against libstdc++... $ readelf --dynamic /usr/lib/clang/10/lib/linux/libclang_rt.asan-x86_64.so 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x000000000000000e (SONAME) Library soname: [libclang_rt.asan-x86_64.so] Is that the problem? |
libunwind/test/libunwind/test/config.py | ||
---|---|---|
71 | in case of the asan build the static library is used ... --whole-archive /usr/lib/llvm-13/lib/clang/13.0.0/lib/linux/libclang_rt.asan_cxx-x86_64.a ... | |
libunwind/test/lit.site.cfg.in | ||
7 | ||
libunwind/test/signal_frame.pass.cpp | ||
11 | Correct it should work on FreeBSD too but right now the libuninwd's tests are broken there because the test always links to libgcc_s so the test won't call libunwind actually. |
libunwind/test/signal_frame.pass.cpp | ||
---|---|---|
12 | // REQUIRES: linux || freebsd |
Why do we need the C++ library?
I can see the following issue:
And on Ubuntu clang's libclang-rt even links against libstdc++...
Is that the problem?
I don't think we should be linking against the C++ library since that might pull in another unwind library.