编译OpenHarmony5.0.0时报错:FAILED: clang_x64/arkcompiler/ets_runtime/ark_aot_compiler clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_runtime/ark_aot_compiler

听风胖耗子 显示全部楼层 发表于 4 天前

【问题描述】

  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. 我想要达到的结果 编译通过

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部