OpenHarmony开发者论坛
标题:
OpenHarmony 4.1 release rk3568 hb build编译错误,提示ld.lld: error: clang_x64/obj/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/libarktscompiler_frontend_static/loop_unroll.o: unknown file type
[打印本页]
作者:
听风胖耗子
时间:
5 天前
标题:
OpenHarmony 4.1 release rk3568 hb build编译错误,提示ld.lld: error: clang_x64/obj/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/libarktscompiler_frontend_static/loop_unroll.o: unknown file type
[md]### 【问题描述】
1. **【问题描述】**
在 ubuntu20.04 上,OpenHarmony 4.1 release rk3568 hb build 方式编译构建失败
失败日志如下:
[61046/73294] LINK clang_x64/arkcompiler/ets_frontend/es2panda
FAILED: clang_x64/arkcompiler/ets_frontend/es2panda clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_frontend/es2panda
/usr/bin/env "../../build/toolchain/gcc_link_wrapper.py" --output="clang_x64/arkcompiler/ets_frontend/es2panda" --strip="../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-strip" --unstripped-file="clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_frontend/es2panda" --clang-base-dir="/home/lp-machine/openharmony/OpenHarmony-v4.1-Release/OpenHarmony/prebuilts/clang/ohos" --mini-debug -- ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -static-libstdc++ -Wl,--fatal-warnings -Wl,--build-id=md5 -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -m64 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Werror -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-rpath-link=clang_x64 -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -pie -o "clang_x64/exe.unstripped/clang_x64/arkcompiler/ets_frontend/es2panda" -Wl,--start-group @"clang_x64/arkcompiler/ets_frontend/es2panda.rsp" -lstdc++fs -latomic -ldl -lpthread -lrt -Wl,--end-group
**ld.lld: error: clang_x64/obj/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/libarktscompiler_frontend_static/loop_unroll.o: unknown file type**
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
哪位大佬能帮忙分析一下原因,谢谢!!!
### 【运行环境】
硬件:rk3568
ROM 版本:openharmony 4.1 release
DevEvoStudio 版本:DevEco Studio 4 release
SDK 版本: API 11
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5