iromise/fans

clang exec error

Opened this issue · 2 comments

when I try to exec
build/bin/clang++ -cc1 -triple aarch64-unknown-linux-android10000 -emit-llvm-bc -flto -flto-unit -disable-free -disable-llvm-verifier -discard-value-names -main-file-name IKeystoreCertificateChainCallback.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=non-leaf -relaxed-aliasing -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -fno-split-dwarf-inlining -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -nostdsysteminc -resource-dir prebuilts/clang/host/linux-x86/clang-r383902b1/lib64/clang/11.0.2 -dependency-file out/soong/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/obj/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/gen/aidl/system/security/keystore/binder/android/security/keystore/IKeystoreCertificateChainCallback.o.d -MT out/soong/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/obj/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/gen/aidltics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -fsplit-lto-unit -faddrsig -o out/soong/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/obj/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/gen/aidl/system/security/keystore/binder/android/security/keystore/IKeystoreCertificateChainCallback.o -x c++ out/soong/.intermediates/system/security/keystore/libkeystore_aidl/android_arm64_armv8-a_shared_cfi/gen/aidl/system/security/keystore/binder/android/security/keystore/IKeystoreCertificateChainCallback.cpp
The output error is :
clang (LLVM option parsing): Unknown command line argument '-aarch64-fix-cortex-a53-835769=1'. Try: 'clang (LLVM option parsing) --help'
clang (LLVM option parsing): Did you mean '--arc-opt-max-ptr-states=1'?
clang (LLVM option parsing) --help
bash: syntax error near unexpected token `LLVM'

And I just use the right aosp clang corresponding to the llvm clang and compile them. Use them to compile the cpp of aosp.

I haven't met such kind of issue.

And I just use the right aosp clang corresponding to the llvm clang and compile them. Use them to compile the cpp of aosp.

Could you please check the clang version again? If you use the same version, it should work.

I haven't met such kind of issue.

And I just use the right aosp clang corresponding to the llvm clang and compile them. Use them to compile the cpp of aosp.

Could you please check the clang version again? If you use the same version, it should work.

Thank you for your patience! I will try it more if I have free time.