You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm able to build the failing target. Does the crash reproduce when built again (m out/soong/.intermediates/external/llvm/utils/TableGen/llvm-tblgen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CTagsEmitter.o)? If so, please attach the reproducers generated by clang.
If it fails on second attempt, it's likely an out-of-memory error, which frequently shows up as clang crashes.
Description
Just building aosp_cf_x86_phone-userdebug.
Environment Details
. build/envsetup.sh
lunch aosp_cf_x86_phone-userdebug
make -j10
Log:
[ 16% 13674/84286] depmod out/target/product/vsoc_x86/obj/PACKAGING/depmod_VENDOR_RAMDISK_intermediates
depmod: WARNING: could not open modules.order at /home/fmy/aosp/out/target/product/vsoc_x86/obj/PACKAGING/depmod_VENDOR_RAMDISK_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/fmy/aosp/out/target/product/vsoc_x86/obj/PACKAGING/depmod_VENDOR_RAMDISK_intermediates/lib/modules/0.0: No such file or directory
[ 28% 23638/84286] //external/llvm/utils/TableGen:llvm-tblgen clang++ CTagsEmitter.cpp [linux_glibc]
FAILED: out/soong/.intermediates/external/llvm/utils/TableGen/llvm-tblgen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CTagsEmitter.o
PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++ -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_M
ACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-l
ength=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profiling -fno-st
rict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -D__compiler_
offsetof=builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-compare -Wno-d
efaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK -ftrivial-auto-var-init=zero
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-dereference -Wno-pointer-compare -Wno-xor-used
-as-pow -Wno-final-dtor-non-final-class -Wno-psabi -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -fPIE -Wsign-promo -Wimplicit-fallthrough -D_LIBCPP
_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -Iexternal/llvm/utils/TableGen -Iexternal/llvm/include -Iexternal/llvm/host/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D_GNU
_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fomit-frame-pointer -Wall -W -Wno-cast-qual -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers -Wno-imp
licit-fallthrough -Wwrite-strings -Werror -Dsprintf=sprintf -Wno-user-defined-warnings -std=gnu++17 -Wno-sign-promo -std=c++11 -fno-rtti -fno-exceptions -Woverloaded-virtual -nostdinc++ -Isystem/core/inc
lude -Isystem/logging/liblog/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Iframeworks/native/include -Iframeworks/nati
ve/opengl/include -Iframeworks/av/include -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-
compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-tautolog
ical-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-
deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-compare
-Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation -MD -MF out/soong/.intermediates/external/llvm/utils/TableGen/llvm-tbl
gen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CTagsEmitter.o.d -o out/soong/.intermediates/external/llvm/utils/TableGen/llvm-tblgen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CTagsEmit
ter.o external/llvm/utils/TableGen/CTagsEmitter.cpp
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STD
C_CONSTANT_MACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/sysroot -fstack-protector-strong -m64 -DANDROID
-fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-info-for-profi
ling -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -fdebug-prefix-map=/proc/self/cwd= -
D__compiler_offsetof=builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-sign-co
mpare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK -ftrivial-auto-v
ar-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-enum-compare -Wno-enum-compare-switch -Wno-null-pointer-arithmetic -Wno-null-dereference -Wno-pointer-compare -W
no-xor-used-as-pow -Wno-final-dtor-non-final-class -Wno-psabi -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/x86_64-linux/bin -fPIE -Wsign-promo -Wimplicit-fallthrough
-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-gnu-include-next -Iexternal/llvm/utils/TableGen -Iexternal/llvm/include -Iexternal/llvm/host/include -Iexternal/libcxx/include -Iexternal/libcxxabi/includ
e -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fomit-frame-pointer -Wall -W -Wno-cast-qual -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers
-Wno-implicit-fallthrough -Wwrite-strings -Werror -Dsprintf=sprintf -Wno-user-defined-warnings -std=gnu++17 -Wno-sign-promo -std=c++11 -fno-rtti -fno-exceptions -Woverloaded-virtual -nostdinc++ -Isystem/
core/include -Isystem/logging/liblog/include -Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -Iframeworks/native/include -Iframewo
rks/native/opengl/include -Iframeworks/av/include -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=
string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-t
autological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-int-in-bool-context -Wno-sizeof-array-div -Wno-tautological-overlap-compar
e -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-string-
compare -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-string-concatenation -MD -MF out/soong/.intermediates/external/llvm/utils/TableGen/l
lvm-tblgen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CTagsEmitter.o.d -o out/soong/.intermediates/external/llvm/utils/TableGen/llvm-tblgen/linux_glibc_x86_64/obj/external/llvm/utils/TableGen/CT
agsEmitter.o external/llvm/utils/TableGen/CTagsEmitter.cpp
#0 0x0000000003fba0e8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x3fba0e8)
Clang3.8 cross-compile linker issues libc (undefined references) #1 0x0000000003fb9f70 llvm::sys::RunSignalHandlers() (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x3fb9f70)
ndk-gdb fails on OS X #2 0x0000000003f86c53 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x3f86c53)
ndk-gdb.py fails #3 0x0000000003f86e51 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x3f86e51)
ndk-gdb.py --project option treats ~/... as a relative path #4 0x00007fecd95b13c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0)
Unknown argument -mandroid #5 0x00000000022ce5a2 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x22ce5a2)
asan_device_setup error bricks phone #6 0x00000000022cb7c6 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x22cb7c6)
no renderscript headers/library in r11 #7 0x00000000046bfddf (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x46bfddf)
clang __thread caused linker error #8 0x00000000026cf02e llvm::PassManager<llvm::Function, llvm::AnalysisManagerllvm::Function >::run(llvm::Function&, llvm::AnalysisManagerllvm::Function&) (prebuilts/clang/host/linux-x86/clang-r41618
3b/bin/clang++.real+0x26cf02e)
Clang not compiled with OpenMP support #9 0x00000000039b7f0d (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x39b7f0d)
error: undefined reference to '__atomic_exchange_4' #10 0x0000000002dd0e3b llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x2dd0e3b)
Support for _POSIX_THREAD_SAFE_FUNCTIONS #11 0x0000000002dd0b5d (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x2dd0b5d)
ld.bfd 2.25.51 packaged with NDK r11 produces unsupported R_ARM_COPY relocation #12 0x0000000002f13bad llvm::PassManager<llvm::Module, llvm::AnalysisManagerllvm::Module >::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/c
lang++.real+0x2f13bad)
No support for debugging library projects #13 0x000000000340e192 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x340e192)
Using precompiled header causes compilation error of tagged files #14 0x000000000340c99f clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::D
ataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_deletellvm::raw_pwrite_stream >) (prebuilts/clang/host/linux-x86/clang-r416183b/bi
n/clang++.real+0x340c99f)
Compile error when including <complex> #15 0x000000000340c170 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x340c170)
Compile error when using clang and precompiled headers #16 0x00000000030c734f clang::ParseAST(clang::Sema&, bool, bool) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x30c734f)
r11: libc++_static.a contains symbols in libc.a (causes multiple definition error) #17 0x00000000032420fd clang::FrontendAction::Execute() (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x32420fd)
Extraction instructions are wrong #18 0x0000000003241ac8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x3241ac8)
r11: some commands removed from NDK_ROOT #19 0x000000000323f06f clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x323f06f)
ndk-stack does not work with 64-bit binaries #20 0x000000000323d669 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x323d669)
Clang produces much larger binaries than GCC #21 0x00000000038a5de7 (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x38a5de7)
NDK r11 for Linux size / hash mismatch #22 0x0000000005364b82 clang::driver::CC1Command::setEnvironment(llvm::ArrayRef<char const*>) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x5364b82)
NDK r11 undefined reference #23 0x00000000034faf85 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x34faf85)
ndk-stack file is missing #24 0x00000000034fad45 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optionalllvm::StringRef >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, bool)
const (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x34fad45)
NDK 2.0.0 fails to installs as part of Android Studio 1.5.1 (Download finished with wrong size) #25 0x0000000003310564 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x33
#26 0x0000000002f9a1f1 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) (prebuilts/clang/host/linux-x86/
clang-r416183b/bin/clang++.real+0x2f9a1f1)
#27 0x0000000002f95312 main (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x2f95312)
#28 0x00007fecd913f0b3 __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:342:3
#29 0x0000000005283ca9 _start (prebuilts/clang/host/linux-x86/clang-r416183b/bin/clang++.real+0x5283ca9)
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Android (7284624, based on r416183b) clang version 12.0.5 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: prebuilts/clang/host/linux-x86/clang-r416183b/bin
clang++: note: diagnostic msg:
The text was updated successfully, but these errors were encountered: