积分2 / 贡献0

提问2答案被采纳0文章0

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 天前

【问题描述】

  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

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

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

返回顶部