716 Star 4.3K Fork 1.2K

OpenHarmony / docs

 / 详情

docker 0.0.3 轻量设备构建失败

Done
Task
Opened this issue  
2021-06-15 10:09

根据文档,使用官方提供的镜像:swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.3,编译轻量设备时,hb build -f报错:

[OHOS ERROR] [257/3777] SOLINK ./libopenssl_shared.so
[OHOS ERROR] FAILED: libopenssl_shared.so unstripped/usr/lib/libopenssl_shared.so
[OHOS ERROR] /home/tools/llvm/bin/clang -shared --target=arm-liteos --sysroot=/home/openharmony/prebuilts/lite/sysroot -L/home/tools/llvm/lib/arm-liteos/c++ -L/home/openharmony/prebuilts/lite/sysroot/usr/lib/arm-liteos -L/home/tools/llvm/lib/clang/current/lib/arm-liteos -lclang_rt.builtins -lc -lc++ -lc++abi --sysroot=/home/openharmony/prebuilts/lite/sysroot -mcpu=cortex-a7 -lc -L/home/openharmony/out/hispark_taurus/ipcamera_hispark_taurus -Wl,-rpath-link=/home/openharmony/out/hispark_taurus/ipcamera_hispark_taurus -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack obj/third_party/openssl/crypto/libopenssl_shared.cryptlib.o obj/third_party/openssl/crypto/ec/libopenssl_shared.curve25519.o obj/third_party/openssl/crypto/libopenssl_shared.mem_clr.o obj/third_party/openssl/crypto/sha/libopenssl_shared.sha512.o -o ./unstripped/usr/lib/libopenssl_shared.so && /home/tools/llvm/bin/llvm-objcopy --strip-all "./unstripped/usr/lib/libopenssl_shared.so" "./libopenssl_shared.so"
[OHOS ERROR] ld.lld: error: unable to find library -lclang_rt.builtins
[OHOS ERROR] clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

输入图片说明

Comments (2)

mrxsnj created任务
mrxsnj set related repository to OpenHarmony/docs
Expand operation logs

缺少库-lclang_rt.builtins

NEEN set assignee to 丛林
NEEN assigned collaborator jady3356
NEEN added
 
product-question
label

你好,
编译最新的源码请使用0.0.4版本的docker镜像,swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.4
感谢您的使用。

丛林 changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(3)
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search

182229 41614e54 1850385 182230 7885ed45 1850385