Repository navigation
[BUG] Segmentation fault #2231
Description
Activity
pirama-arumuga-nainar commented
on Apr 21, 2026 CollaboratorMore actionsCan you attach an lld repro by re-running the linker command with -Wl,--reproduce=repro.tar?
@pirama-arumuga-nainar Unfortunately i'v already restarted with NDK r27. I will probably restart and share the logs if it fails too
[ 85%] Built target obj.clangAPINotes
[ 85%] Built target clangAPINotes
[ 85%] Built target ClangOpenCLBuiltinsImpl
[ 87%] Built target obj.clangSema
[ 88%] Built target obj.clangFormat
[ 88%] Built target obj.clangToolingCore
[ 88%] Built target obj.clangRewrite
[ 88%] Linking CXX shared library ../../../../lib/libclangRewrite.so
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
#0 0x000055f3f80021e2 (/home/anton/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0x2fd31e2)
#1 0x000055f3f8000f20 (/home/anton/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0x2fd1f20)
#2 0x000055f3f8002651 (/home/anton/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0x2fd3651)
#3 0x00007fa0f34de420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#4 0x000055f3f7c06eb1 (/home/anton/android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/ld.lld+0x2bd7eb1)
clang++: error: unable to execute command: Segmentation fault (core dumped)
clang++: error: linker command failed due to signal (use -v to see invocation)
make[3]: *** [tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/build.make:94: lib/libclangRewrite.so] Error 1
make[2]: *** [CMakeFiles/Makefile2:33160: tools/clang/lib/Rewrite/CMakeFiles/clangRewrite.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:39442: tools/clang/tools/libclang/CMakeFiles/libclang.dir/rule] Error 2
make: *** [Makefile:11226: libclang] Error 2
root@anton-vm:/home/anton/llvm-project/build# cpirama-arumuga-nainar commented
on May 29, 2026 CollaboratorMore actions(Still missing the lld reproducer)
Description
I'm trying to compile libclang for Android with Android NDK r29 on Ubuntu 20.03 (statically for aarch64-linux-android)
Tag: llvmorg-22.1.3
Gives:
I am using a supported NDK
Affected versions
r29