Webrtc STL issue

31 views
Skip to first unread message

Arockiam Jeyaseelan

unread,
Jul 30, 2022, 7:55:40 AMJul 30
to discuss-webrtc
Hello,
I built webrtc for android x64. When I linked webrtc libraries with my shared library I got the link error due to std::__ndk1 . So built webrtc with "use_custom_libcxx=false" argument. My build command is 
gn gen out --args='use_custom_libcxx=false target_os="android" target_cpu="x64"'

But now I get issues in webrtc build due to _Unwind_Backtrace and _Unwind_GetIP . My webrtc build and output is

ninja: Entering directory `out'
[3681/11035] LINK ./stun_prober
FAILED: stun_prober exe.unstripped/stun_prober
python3 "../build/toolchain/gcc_link_wrapper.py" --output="./stun_prober" --strip="../third_party/llvm-build/Release+Asserts/bin/llvm-strip" --unstripped-file="./exe.unstripped/stun_prober" -- ../third_party/llvm-build/Release+Asserts/bin/clang++ -Werror -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--color-diagnostics -Wl,--no-rosegment -Wl,--no-call-graph-profile-sort -Wl,--exclude-libs=libvpx_assembly_arm.a --unwindlib=none --target=x86_64-linux-android21 -m64 -no-canonical-prefixes -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed --sysroot=../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Wl,--warn-shared-textrel -pie -Bdynamic -Wl,-z,nocopyreloc -o "./exe.unstripped/stun_prober" -Wl,--start-group @"./stun_prober.rsp"  -Wl,--end-group  -ldl -lm -llog -lGLESv2
ld.lld: error: undefined symbol: _Unwind_Backtrace
>>> referenced by stacktrace.cc:259 (../sdk/android/native_api/stacktrace/stacktrace.cc:259)
>>>               native_api_stacktrace/stacktrace.o:(webrtc::GetStackTrace()) in archive obj/sdk/android/libnative_api_stacktrace.a

ld.lld: error: undefined symbol: _Unwind_GetIP
>>> referenced by stacktrace.cc:120 (../sdk/android/native_api/stacktrace/stacktrace.cc:120)
>>>               native_api_stacktrace/stacktrace.o:(webrtc::(anonymous namespace)::SignalHandlerOutputState::UnwindBacktrace(_Unwind_Context*, void*)) in archive obj/sdk/android/libnative_api_stacktrace.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[3714/11035] CXX obj/rtc_base/containers/unittests/flat_tree_unittest.o
ninja: build stopped: subcommand failed.

Please someone help me to resolve this issue.

Philipp Hancke

unread,
Jul 30, 2022, 8:55:49 AMJul 30
to discuss...@googlegroups.com

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/450a6db3-d42a-473c-9d8e-17765da282ebn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages