OpenHarmony开发者论坛
标题:
编译openharmony5.0.0时报错:FAILED: clang_x64/arkcompiler/ets_runtime/ark_aot_compiler clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler
[打印本页]
作者:
听风胖耗子
时间:
5 天前
标题:
编译OpenHarmony5.0.0时报错:FAILED: clang_x64/arkcompiler/ets_runtime/ark_aot_compiler clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler
[md]### 【问题描述】
1. [OHOS ERROR] [4424/11959] LINK clang_x64/arkcompiler/ets_runtime/ark_aot_compiler
[OHOS ERROR] FAILED: clang_x64/arkcompiler/ets_runtime/ark_aot_compiler clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler
[OHOS ERROR] /usr/bin/env "../../build/toolchain/gcc_link_wrapper.py" --output="clang_x64/arkcompiler/ets_runtime/ark_aot_compiler" --strip="../../prebuilts/clang/ohos/linux-x86_64/llvstripped-file="clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler" --clang-base-dir="/root/openharmony/Purple-Pi-OH-5.0/prebuilts/clang/ohos" --mini-debug -- ohos/linux-x86_64/llvm/bin/clang++ -Wl,--fatal-warnings -Wl,--build-id=md5 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,-4 -Werror -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-rpath-link=clang_x64 -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -pie -L../../prebuilts/ark_tools/ark_js_prebuilt/lib -o "clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler" -Wl,--start-group @"clang_x64/arkcompiler/ets_runtime/ark_aot_compiler.rsp" -latomic -ldl -lpth -lLLVMObject -lLLVMMC -lLLVMSupport -lLLVMCore -lLLVMExecutionEngine -lLLVMInterpreter -lLLVMMCJIT -lLLVMExegesis -lLLVMRuntimeDyld -lLLVMInstCombine -lLLVMAnalysis -lLLVMScalarOpts -VMDebugInfoDWARF -lLLVMRemarks -lLLVMTextAPI -lLLVMTransformUtils -lLLVMBitReader -lLLVMAsmPrinter -lLLVMProfileData -lLLVMBitstreamReader -lLLVMSelectionDAG -lLLVMGlobalISel -lLLVMLTOectorize -lLLVMDemangle -lLLVMipo -lLLVMInstrumentation -lLLVMDebugInfoCodeView -lLLVMAggressiveInstCombine -lLLVMAsmParser -lLLVMMCParser -lLLVMMIRParser -lLLVMMCDisassembler -lLLVMColLLVMAArch64Utils -lLLVMAArch64CodeGen -lLLVMAArch64Info -lLLVMAArch64Desc -lLLVMAArch64Disassembler -lLLVMAArch64AsmParser -lLLVMFrontendOpenMP -lLLVMBitWriter -lLLVMParts -lLLVMX86Asen -lLLVMX86Desc -lLLVMX86Disassembler -lLLVMX86Info -Wl,--end-group
[OHOS ERROR] ld.lld: error: clang_x64/lib/64/libmplir.a: archive member 'lexer.o' is neither ET_REL nor LLVM bitcode
[OHOS ERROR] ld.lld: error: clang_x64/lib/64/libmplir.a: archive member 'mir_symbol_builder.o' is neither ET_REL nor LLVM bitcode
[OHOS ERROR] ld.lld: error: clang_x64/lib/64/libmplir.a: archive member 'mir_builder.o' is neither ET_REL nor LLVM bitcode
[OHOS ERROR] ld.lld: error: clang_x64/lib/64/libmplir.a: archive member 'mir_const.o' is neither ET_REL nor LLVM bitcode
[OHOS ERROR] clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
2. 我想要达到的结果
编译通过
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5