[Android Software/Hacking General [Developers Only]] Adromir:
I am trying to build my rom with Dragon-TC 3.7 . I fixed a few errors with my source, but this i am unable to fix:

target thumb C++: libLLVMSupport_32 <= external/llvm/lib/Support/DynamicLibrary.cpp

0 clang++ 0x0000000000deb49d llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56

1 clang++ 0x0000000000deaf3b

2 libpthread.so.0 0x00002b61af6ab340

3 clang++ 0x00000000011c1f4b

4 clang++ 0x00000000011c2f14

5 clang++ 0x00000000011c2fa9

6 clang++ 0x00000000011d1f98 llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>) + 1078

7 clang++ 0x000000000124a88c

8 clang++ 0x000000000125618f

9 clang++ 0x000000000121859f

10 clang++ 0x0000000001218897 llvm::SelectionDAG::LegalizeTypes() + 51

11 clang++ 0x00000000011ff73f llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 257

12 clang++ 0x000000000120508d llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1147

13 clang++ 0x0000000001205461 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 557

14 clang++ 0x000000000096bfb3

15 clang++ 0x0000000000c753fb llvm::FPPassManager::runOnFunction(llvm::Function&) + 283

16 clang++ 0x0000000000c7564e llvm::FPPassManager::runOnModule(llvm::Module&) + 36

17 clang++ 0x0000000000c7583d llvm::legacy::PassManagerImpl::run(llvm::Module&) + 475

18 clang++ 0x0000000000e64f41 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*) + 5920

19 clang++ 0x000000000125c042

20 clang++ 0x00000000013d1387 clang::ParseAST(clang::Sema&, bool, bool) + 463

21 clang++ 0x0000000000fd5998 clang::FrontendAction::Execute() + 54

22 clang++ 0x0000000000fbf1d9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 377

23 clang++ 0x0000000001010672 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2465

24 clang++ 0x00000000007fdd27 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1011

25 clang++ 0x00000000007d4498 main + 1101

26 libc.so.6 0x00002b61b032cec5 __libc_start_main + 245

27 clang++ 0x00000000007fc1c9

Stack dump:

0. Program arguments: prebuilts/clang/linux-x86/host/3.7/bin/clang++ -cc1 -triple thumbv7--linux-android -emit-obj -disable-free -disable-llvm-verifier -main-file-name APInt.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a8 -target-feature +soft-float-abi -target-feature -fp-only-sp -target-feature -d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi soft -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /root/uberaicp/out/target/product/himaul/obj_arm/STATIC_LIBRARIES/libLLVMSupport_intermediates/APInt.o -nostdsysteminc -resource-dir prebuilts/clang/linux-x86/host/3.7/bin/../lib/clang/3.7 -dependency-file /root/uberaicp/out/target/product/himaul/obj_arm/STATIC_LIBRARIES/libLLVMSupport_intermediates/APInt.d -MT /root/uberaicp/out/target/product/himaul/obj_arm/STATIC_LIBRARIES/libLLVMSupport_intermediates/APInt.o -sys-header-deps -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril/include -isystem /root/uberaicp/out/target/product/himaul/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -D _FORTIFY_SOURCE=2 -D QCOM_HARDWARE -D QCOM_BSP -D QTI_BSP -D ANDROID -D PROPERTY_PERMS_APPEND={"htc.camera.sensor.", AID_CAMERA, 0}, {"camera.4k2k.", AID_MEDIA, 0}, -D BOARD_CHARGING_CMDLINE_NAME="androidboot.mode" -D BOARD_CHARGING_CMDLINE_VALUE="chargerlogo" -D NDEBUG -D NDEBUG -U DEBUG -D __compiler_offsetof=__builtin_offsetof -D QCOM_HARDWARE -D QCOM_BSP -D QTI_BSP -D ANDROID -D NDEBUG -U DEBUG -D ANDROID_TARGET_BUILD -D _GNU_SOURCE -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D sprintf=sprintf -D __android__ -D _USING_LIBCXX -I device/htc/hima-common/include -I bionic -I external/llvm/lib/Support/../.. -I external/llvm/lib/Support/../../include -I external/llvm/lib/Support/../../device/include -I external/libcxx/include -I external/llvm/lib/Support -I /root/uberaicp/out/target/product/himaul/obj_arm/STATIC_LIBRARIES/libLLVMSupport_intermediates -I /root/uberaicp/out/target/product/himaul/gen/STATIC_LIBRARIES/libLLVMSupport_intermediates -I libnativehelper/include/nativehelper -I build/core/combo/include/arch/linux-arm/ -internal-isystem prebuilts/clang/linux-x86/host/3.7/bin/../lib/clang/3.7/include -O3 -Wno-multichar -Werror=format-security -Wno-error=array-bounds -Wno-error=parentheses -Wno-error=strict-overflow -Wno-error=unused-variable -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wstrict-aliasing=2 -Wno-unknown-warning-option -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -Wno-error=array-bounds -Wno-error=parentheses -Wno-error=strict-overflow -Wno-error=unused-variable -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wno-unknown-warning-option -Wno-inconsistent-missing-override -Wall -W -Wno-unused-parameter -Wwrite-strings -Woverloaded-virtual -Wno-sign-promo -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root/uberaicp -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -stack-protector 1 -mstackrealign -fno-rtti -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -polly -mllvm -polly-parallel -mllvm -polly-parallel-force -mllvm -polly-allow-nonaffine=1 -mllvm -polly-ast-detect-parallel -mllvm -polly-vectorizer=polly -mllvm -polly-opt-fusion=max -mllvm -polly-opt-maximize-bands=yes -mllvm -polly-run-dce -o /root/uberaicp/out/target/product/himaul/obj_arm/STATIC_LIBRARIES/libLLVMSupport_intermediates/APInt.o -x c++ external/llvm/lib/Support/APInt.cpp

1. <eof> parser at end of file

2. Code generation

3. Running pass 'Function Pass Manager' on module 'external/llvm/lib/Support/APInt.cpp'.

4. Running pass 'ARM Instruction Selection' on function '@_ZN4llvm5APInt8tcNegateEPyj'

clang++: error: unable to execute command: Segmentation fault

clang++: error: clang frontend command failed due to signal (use -v to see invocation)

clang version 3.7

Target: arm--linux-android

Thread model: posix

clang++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.

target thumb C++: libLLVMSupport_32 <= external/llvm/lib/Support/Errno.cpp

clang++: note: diagnostic msg:

********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:

Preprocessed source(s) and associated run script(s) are located at:

clang++: note: diagnostic msg: /tmp/APInt-848268.cpp

clang++: note: diagnostic msg: /tmp/APInt-848268.sh

clang++: note: diagnostic msg:

********************