20220319编译OpenHarmony-v3.1-beta出错的解决方法
2022/3/19 14:29
【结论】:华为的做事也太不认真了!^_你的压缩包都没有给完整的,还好我做过的!
(程序文本都是齐全的,第二步获取二进制文件没有做!)
不然新手查找问题,会找的你怀疑人生的!
1、下载OpenHarmony-v3.1-beta并编译:
https://gitee.com/openharmony
OpenHarmony开源项目
https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.1-beta.md
OpenHarmony 3.1 Beta
https://gitee.com/link?target=https%3A%2F%2Frepo.huaweicloud.com%2Fharmonyos%2Fos%2F3.1-Beta%2Fcode-v3.1-Beta.tar.gz
https://repo.huaweicloud.com/harmonyos/os/3.1-Beta/code-v3.1-Beta.tar.gz
【10GB+,很大的。请找网速快的下载地点!^_】
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$ cd Downloads/
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$ ll
total 10374304
drwxr-xr-x 2 rootroot rootroot 4096 3月 24 16:16 ./
drwxr-xr-x 43 rootroot rootroot 4096 3月 25 09:43 ../
-rw-rw-r-- 1 rootroot rootroot 10623274454 3月 9 12:26 code-v3.1-Beta.tar.gz
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$ tar zxvf code-v3.1-Beta.tar.gz
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$ ll
total 10374308
drwxr-xr-x 3 rootroot rootroot 4096 3月 25 09:57 ./
drwxr-xr-x 43 rootroot rootroot 4096 3月 25 09:43 ../
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 code-v3.1-Beta/
-rw-rw-r-- 1 rootroot rootroot 10623274454 3月 9 12:26 code-v3.1-Beta.tar.gz
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$
rootroot@rootroot-System-Product1:~/Downloads$ cd code-v3.1-Beta/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$ ll
total 20
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ./
drwxr-xr-x 3 rootroot rootroot 4096 3月 25 09:57 ../
drwxr-xr-x 21 rootroot rootroot 4096 12月 31 19:32 OpenHarmony/
drwxr-xr-x 2 rootroot rootroot 4096 12月 31 21:11 OpenHarmony_2.0_canary_prebuilts/
-rw-r--r-- 1 rootroot rootroot 219 12月 31 21:59 README.md
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
【编译链:】
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$ cd OpenHarmony_2.0_canary_prebuilts/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony_2.0_canary_prebuilts$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony_2.0_canary_prebuilts$ ll
total 1982992
drwxr-xr-x 2 rootroot rootroot 4096 12月 31 21:11 ./
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ../
-rw-r--r-- 1 rootroot rootroot 947447 2月 19 2021 1066cf2a5f15fbfb5d7a42a0d0646942.tar.gz
-rw-r--r-- 1 rootroot rootroot 28759968 2月 19 2021 2398ff534558469671d243a520ff44cc.16.5.tar.gz
-rw-r--r-- 1 rootroot rootroot 117896452 8月 11 2021 26a5a62ffa1a6271469972b1857a6b45.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
-rw-r--r-- 1 rootroot rootroot 194623101 6月 1 2021 2720f822fba331263411f5a46244ecc6.5.0-arm-linux-gnueabi.tar.gz
-rw-r--r-- 1 rootroot rootroot 41264329 2月 19 2021 3f5cc5de3e19cd4b53b0e890d16199cc.8.5.tar.gz
-rw-r--r-- 1 rootroot rootroot 346965438 12月 22 17:22 42db431b8e599a053d859a77a3a786e6.tar.bz2
-rw-r--r-- 1 rootroot rootroot 1146790706 5月 8 2021 63eb0ca21f377e1e965aad3f3ada89cc.tar.gz
-rw-r--r-- 1 rootroot rootroot 68881079 12月 30 10:07 69358c3d999d177e77b5869a2b4dfd81.1.0.0.win.tar.gz
-rw-r--r-- 1 rootroot rootroot 38038001 10月 29 15:35 80013fda4bcb79f262073710a105f79e.tar.gz
-rw-r--r-- 1 rootroot rootroot 39906402 2月 19 2021 870060adae8202f47c7cf8c6f494d43c.16.5.tar.gz
-rw-r--r-- 1 rootroot rootroot 1654987 2月 19 2021 9bc3db21014f3fff6e9e0abe384c9a1c.10.1.tar.gz
-rw-r--r-- 1 rootroot rootroot 762145 7月 27 2021 e848bfc39b8693ea34ca9e9a5dc6eb4e.0.tar.gz
-rw-r--r-- 1 rootroot rootroot 4052900 12月 27 18:06 f0cbdb005504efbacc5c7be3c8a63896.005.tar.gz
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony_2.0_canary_prebuilts$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony_2.0_canary_prebuilts$ cd ..
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$ ll
total 20
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ./
drwxr-xr-x 3 rootroot rootroot 4096 3月 25 09:57 ../
drwxr-xr-x 21 rootroot rootroot 4096 12月 31 19:32 OpenHarmony/
drwxr-xr-x 2 rootroot rootroot 4096 12月 31 21:11 OpenHarmony_2.0_canary_prebuilts/
-rw-r--r-- 1 rootroot rootroot 219 12月 31 21:59 README.md
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta$ cd OpenHarmony
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ll
total 84
drwxr-xr-x 21 rootroot rootroot 4096 12月 31 19:32 ./
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ../
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 19:31 applications/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:31 ark/
drwxr-xr-x 16 rootroot rootroot 4096 12月 31 19:31 base/
drwxr-xr-x 16 rootroot rootroot 4096 12月 31 19:31 build/
lrwxrwxrwx 1 rootroot rootroot 19 12月 31 19:31 build.py -> build/lite/build.py*
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:31 build.sh -> build/build_scripts/build.sh*
drwxr-xr-x 9 rootroot rootroot 4096 12月 31 19:31 developtools/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:31 device/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 docs/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 domains/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 drivers/
drwxr-xr-x 14 rootroot rootroot 4096 12月 31 19:31 foundation/
lrwxrwxrwx 1 rootroot rootroot 24 12月 31 19:31 .gn -> build/core/gn/dotfile.gn*
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 interface/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 kernel/
drwxr-xr-x 13 rootroot rootroot 4096 12月 31 21:11 prebuilts/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:32 productdefine/
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:32 qemu-run -> vendor/ohemu/common/qemu-run*
drwxr-xr-x 7 rootroot rootroot 4096 12月 31 19:31 .repo/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 test/
drwxr-xr-x 102 rootroot rootroot 4096 12月 31 19:32 third_party/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:32 utils/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:32 vendor/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
【编译:】
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ./build.sh --product-name Hi3516DV300 --ccache
2、出错:
[19497/30648] CXX obj/foundation/ace/ace_engine/frameworks/core/components/theme/ace_core_components_theme_ohos/app_theme.o
[19498/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/adapter/distributedschedsvr/dnetwork_adapter.o
[19499/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/bundle/distributedschedsvr/bundle_manager_internal.o
[19500/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/deviceManager/distributedschedsvr/dms_device_info.o
[19501/30648] CXX obj/third_party/flutter/skia/src/ports/skia_ohos/ace_fontmgr_standard/FontConfig_ohos.o
[19502/30648] CXX obj/foundation/ace/ace_engine/frameworks/core/components/theme/ace_core_components_theme_ohos/theme_constants.o
[19503/30648] CXX obj/foundation/appexecfwk/standard/kits/appkit/napi/appMgr/napi_app_mgr/app_mgr.o
[19504/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_continuation.o
[19505/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/ability_connection_wrapper_stub.o
[19506/30648] SOLINK distributedschedule/samgr_standard/liblsamgr.z.so
[19507/30648] AR obj/foundation/graphic/standard/utils/buffer_handle/libbuffer_handle.a
[19508/30648] STAMP obj/foundation/graphic/standard/utils/buffer_handle.stamp
[19509/30648] SOLINK distributedschedule/samgr_standard/libsamgr_proxy.z.so
[19510/30648] AR obj/base/security/huks/frameworks/huks_standard/main/os_dependency/libhuks_os_dependency_standard_static.a
[19511/30648] STAMP obj/base/security/huks/frameworks/huks_standard/main/huks_standard_frameworks.stamp
[19512/30648] SOLINK multimedia/multimedia_camera_standard/libmetadata.z.so
[19513/30648] AR obj/base/security/huks/services/huks_standard/huks_engine/main/core/libhuks_engine_core_standard_static.a
[19514/30648] AR obj/base/security/huks/services/huks_standard/huks_engine/main/libhuks_engine_standard_static.a
[19515/30648] AR obj/base/security/huks/services/huks_standard/huks_service/main/core/libhuks_service_core_standard_static.a
[19516/30648] AR obj/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/libhuks_service_idl_standard_static.a
[19517/30648] SOLINK hdf/hdf/libcamera_device_manager.z.so
FAILED: hdf/hdf/libcamera_device_manager.z.so lib.unstripped/hdf/hdf/libcamera_device_manager.z.so
/usr/bin/env "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-readobj" --nm="../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-nm" --strip=../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-strip --sofile="./lib.unstripped/hdf/hdf/libcamera_device_manager.z.so" --output="hdf/hdf/libcamera_device_manager.z.so" -- ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -shared -L/home/rootroot/Downloads/code-v3.1-Beta/OpenHarmony/device/hisilicon/hardware/media/hal/camera/hi3516dv300/llvm/linux_standard/libs/ -ldriver_adapter.z -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,--color-diagnostics -Wl,--no-undefined -Wl,--exclude-libs=libunwind_llvm.a -Wl,--exclude-libs=libc++_static.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=arm-linux-ohosmusl -Werror -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index --sysroot=obj/third_party/musl -nostdlib -L../../prebuilts/clang/ohos/linux-x86_64/llvm/lib/arm-linux-ohosmusl/c++ -Lobj/third_party/musl/usr/lib/arm-linux-ohosmusl -L../../prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/10.0.1/lib/arm-linux-ohosmusl -Wl,--warn-shared-textrel -o "./lib.unstripped/hdf/hdf/libcamera_device_manager.z.so" @"hdf/hdf/libcamera_device_manager.z.so.rsp" -Wl,-soname="libcamera_device_manager.z.so"
ld.lld: error: /home/rootroot/Downloads/code-v3.1-Beta/OpenHarmony/device/hisilicon/hardware/media/hal/camera/hi3516dv300/llvm/linux_standard/libs/libdriver_adapter.z.so:1: unknown directive: version
>>> version https://git-lfs.github.com/spec/v1
>>> ^
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
[19518/30648] SOLINK security/huks_standard/libhukssdk.z.so
[19519/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_device_node_listener.o
[19520/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_dumper.o
[19521/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/continuation_callback_death_recipient.o
[19522/30648] CXX obj/third_party/flutter/engine/flutter/third_party/txt/src/txt/thirdparty_lib_txt_ohos/paragraph_txt.o
[19523/30648] CXX obj/foundation/ace/ace_engine/frameworks/core/components/theme/ace_core_components_theme_ohos/theme_utils.o
[19524/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/connect_death_recipient.o
[19525/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_adapter.o
[19526/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_ability_shell.o
[19527/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_permission.o
[19528/30648] CXX obj/out/hi3516dv300/ace/framework/core/components/theme/ace_core_components_theme_ohos/theme_constants_tv.o
[19529/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_proxy.o
[19530/30648] CXX obj/out/hi3516dv300/ace/framework/core/components/theme/ace_core_components_theme_ohos/theme_constants_default.o
[19531/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_stub.o
[19532/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/dtbschedmgr_device_info_storage.o
[19533/30648] CXX obj/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/src/distributedschedsvr/distributed_sched_service.o
[19534/30648] CXX obj/foundation/ace/ace_engine/frameworks/core/components/theme/ace_core_components_theme_ohos/theme_manager.o
ninja: build stopped: subcommand failed.
build: ninja error
used: 933 seconds
pycache statistics
manage pycache contents
pycache daemon exit
ccache statistics
---------------------------------------------
ccache summary:
cache hit (direct) : 0
cache hit (preprocessed) : 0
cache miss : 11628
hit rate: 0.00%
mis rate: 100.00%
---------------------------------------------
c targets overlap rate statistics
subsystem files NO. percentage builds NO. percentage overlap rate
third_party 7137 60.4% 7138 60.4% 1.00
aafwk 70 0.6% 70 0.6% 1.00
account 66 0.6% 66 0.6% 1.00
ace 262 2.2% 262 2.2% 1.00
appexecfwk 173 1.5% 173 1.5% 1.00
ark 82 0.7% 82 0.7% 1.00
ccruntime 14 0.1% 14 0.1% 1.00
communication 440 3.7% 440 3.7% 1.00
developtools 72 0.6% 72 0.6% 1.00
deviceprofile 37 0.3% 37 0.3% 1.00
distributeddatamgr 318 2.7% 318 2.7% 1.00
distributedhardware 14 0.1% 14 0.1% 1.00
distributedschedule 33 0.3% 33 0.3% 1.00
global 29 0.2% 29 0.2% 1.00
graphic 20 0.2% 20 0.2% 1.00
hdf 319 2.7% 319 2.7% 1.00
hiviewdfx 198 1.7% 198 1.7% 1.00
miscservices 3 0.0% 3 0.0% 1.00
multimedia 114 1.0% 114 1.0% 1.00
multimodalinput 100 0.8% 100 0.8% 1.00
notification 35 0.3% 35 0.3% 1.00
powermgr 52 0.4% 52 0.4% 1.00
security 236 2.0% 236 2.0% 1.00
sensors 43 0.4% 43 0.4% 1.00
startup 89 0.8% 89 0.8% 1.00
telephony 68 0.6% 68 0.6% 1.00
updater 91 0.8% 91 0.8% 1.00
usb 16 0.1% 16 0.1% 1.00
utils 205 1.7% 205 1.7% 1.00
wpa_supplicant-2.9 157 1.3% 157 1.3% 1.00
c overall build overlap rate: 1.00
post_process
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
参考资料:
https://gitee.com/openharmony/device_hisilicon_hardware/issues/I49XGO
编译错误,请大佬们帮忙解决,谢谢!!
已完成
#I49XGO
任务
zhuyw
创建于
2021-09-14 11:13
【任务描述】
我下载最新master分支编译鸿蒙标准系统,发现编译错误,
ld.lld: error: /home/book/work/device/hisilicon/hardware/media/hal/camera/libs/hispark_taurus/libdriver_adapter.z.so:1: unknown directive: version
我用file查看这个文件:
file libdriver_adapter.z.so
libdriver_adapter.z.so: ASCII text
而在OHOS2.2中,执行: file libdriver_adapter.z.so
结果为:
libdriver_adapter.z.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped
2
Caoruihong
5个月前
@zhuyw @demon 因为二进制文件采用了git lfs存储,所以用file查看得到的是ASCII text,需要执行repo forall -c git lfs pull,获取原始文件。
3、解决方法:
https://gitee.com/openharmony
OpenHarmony开源项目
源码下载
获取OpenHarmony源码:下载说明
https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md
获取源码
安装码云repo工具,可以执行如下命令。
curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中
chmod a+x /usr/local/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
社区已于2021-12-31发布OpenHarmony-v3.1-Beta版本, 详情请参考-https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.1-beta.md
https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.1-beta.md
OpenHarmony 3.1 Beta
通过repo获取
方式一(推荐)
通过repo + ssh 下载(需注册公钥,请参考码云帮助中心)。
repo init -u git@gitee.com:openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
方式二
通过repo + https 下载。
repo init -u https://gitee.com/openharmony/manifest.git -b refs/tags/OpenHarmony-v3.1-Beta --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ll
total 197484
drwxr-xr-x 23 rootroot rootroot 4096 3月 25 10:01 ./
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ../
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 19:31 applications/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:31 ark/
drwxr-xr-x 16 rootroot rootroot 4096 12月 31 19:31 base/
drwxr-xr-x 17 rootroot rootroot 4096 3月 25 10:01 build/
lrwxrwxrwx 1 rootroot rootroot 19 12月 31 19:31 build.py -> build/lite/build.py*
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:31 build.sh -> build/build_scripts/build.sh*
drwxrwxrwx 19 rootroot rootroot 4096 3月 25 10:02 .ccache/
-rw-rw-r-- 1 rootroot rootroot 202122823 3月 25 10:17 ccache.log
drwxr-xr-x 9 rootroot rootroot 4096 12月 31 19:31 developtools/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:31 device/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 docs/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 domains/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 drivers/
drwxr-xr-x 14 rootroot rootroot 4096 12月 31 19:31 foundation/
lrwxrwxrwx 1 rootroot rootroot 24 12月 31 19:31 .gn -> build/core/gn/dotfile.gn*
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 interface/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 kernel/
drwxrwxr-x 5 rootroot rootroot 4096 3月 25 10:02 out/
drwxr-xr-x 13 rootroot rootroot 4096 12月 31 21:11 prebuilts/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:32 productdefine/
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:32 qemu-run -> vendor/ohemu/common/qemu-run*
drwxr-xr-x 7 rootroot rootroot 4096 12月 31 19:31 .repo/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 test/
drwxr-xr-x 102 rootroot rootroot 4096 12月 31 19:32 third_party/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:32 utils/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:32 vendor/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > repo
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ll
total 197520
drwxr-xr-x 23 rootroot rootroot 4096 3月 25 10:54 ./
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ../
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 19:31 applications/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:31 ark/
drwxr-xr-x 16 rootroot rootroot 4096 12月 31 19:31 base/
drwxr-xr-x 17 rootroot rootroot 4096 3月 25 10:01 build/
lrwxrwxrwx 1 rootroot rootroot 19 12月 31 19:31 build.py -> build/lite/build.py*
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:31 build.sh -> build/build_scripts/build.sh*
drwxrwxrwx 19 rootroot rootroot 4096 3月 25 10:02 .ccache/
-rw-rw-r-- 1 rootroot rootroot 202122823 3月 25 10:17 ccache.log
drwxr-xr-x 9 rootroot rootroot 4096 12月 31 19:31 developtools/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:31 device/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 docs/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 domains/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 drivers/
drwxr-xr-x 14 rootroot rootroot 4096 12月 31 19:31 foundation/
lrwxrwxrwx 1 rootroot rootroot 24 12月 31 19:31 .gn -> build/core/gn/dotfile.gn*
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 interface/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 kernel/
drwxrwxr-x 5 rootroot rootroot 4096 3月 25 10:02 out/
drwxr-xr-x 13 rootroot rootroot 4096 12月 31 21:11 prebuilts/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:32 productdefine/
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:32 qemu-run -> vendor/ohemu/common/qemu-run*
drwxr-xr-x 7 rootroot rootroot 4096 12月 31 19:31 .repo/
-rw-rw-r-- 1 rootroot rootroot 36035 3月 25 10:54 repo
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 test/
drwxr-xr-x 102 rootroot rootroot 4096 12月 31 19:32 third_party/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:32 utils/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:32 vendor/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ chmod 777 repo
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ll
total 197520
drwxr-xr-x 23 rootroot rootroot 4096 3月 25 10:54 ./
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 21:59 ../
drwxr-xr-x 4 rootroot rootroot 4096 12月 31 19:31 applications/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:31 ark/
drwxr-xr-x 16 rootroot rootroot 4096 12月 31 19:31 base/
drwxr-xr-x 17 rootroot rootroot 4096 3月 25 10:01 build/
lrwxrwxrwx 1 rootroot rootroot 19 12月 31 19:31 build.py -> build/lite/build.py*
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:31 build.sh -> build/build_scripts/build.sh*
drwxrwxrwx 19 rootroot rootroot 4096 3月 25 10:02 .ccache/
-rw-rw-r-- 1 rootroot rootroot 202122823 3月 25 10:17 ccache.log
drwxr-xr-x 9 rootroot rootroot 4096 12月 31 19:31 developtools/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:31 device/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 docs/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 domains/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:31 drivers/
drwxr-xr-x 14 rootroot rootroot 4096 12月 31 19:31 foundation/
lrwxrwxrwx 1 rootroot rootroot 24 12月 31 19:31 .gn -> build/core/gn/dotfile.gn*
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:31 interface/
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 kernel/
drwxrwxr-x 5 rootroot rootroot 4096 3月 25 10:02 out/
drwxr-xr-x 13 rootroot rootroot 4096 12月 31 21:11 prebuilts/
drwxr-xr-x 3 rootroot rootroot 4096 12月 31 19:32 productdefine/
lrwxrwxrwx 1 rootroot rootroot 28 12月 31 19:32 qemu-run -> vendor/ohemu/common/qemu-run*
drwxr-xr-x 7 rootroot rootroot 4096 12月 31 19:31 .repo/
-rwxrwxrwx 1 rootroot rootroot 36035 3月 25 10:54 repo*
drwxr-xr-x 5 rootroot rootroot 4096 12月 31 19:32 test/
drwxr-xr-x 102 rootroot rootroot 4096 12月 31 19:32 third_party/
drwxr-xr-x 6 rootroot rootroot 4096 12月 31 19:32 utils/
drwxr-xr-x 8 rootroot rootroot 4096 12月 31 19:32 vendor/
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ repo forall -c 'git lfs pull'
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$ ./build.sh --product-name Hi3516DV300 --ccache
arty/externals/icu/source/common/ace_libicu_windows/loclikely.o) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/ace_preview_entrance_windows/ace_application_info.o: locally defined symbol imported: icu_63::Locale::~Locale() (defined in mingw_x86_64/obj/third_party/flutter/skia/third_party/externals/icu/source/common/ace_libicu_windows/locid.o) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_global_cleanup (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_init (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_slist_append (defined in libcurl.a(slist.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_global_init (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_setopt (defined in libcurl.a(setopt.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_strerror (defined in libcurl.a(strerror.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_cleanup (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_escape (defined in libcurl.a(escape.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_free (defined in libcurl.a(escape.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_perform (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_easy_getinfo (defined in libcurl.a(easy.o)) [LNK4217]
lld-link: warning: mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/osal/ace_osal_windows/fetch_manager.o: locally defined symbol imported: curl_slist_free_all (defined in libcurl.a(slist.o)) [LNK4217]
[11387/11439] SOLINK mingw_x86_64/ace/ace_engine_standard/libmediaquery.dll
[11388/11439] COPY mingw_x86_64/ace/ace_engine_standard/libmediaquery.dll mingw_x86_64/common/common/module/libmediaquery.dll
[11389/11439] STAMP mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/copy_media_query_shared_library_for_test.stamp
[11390/11439] CXX mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/ace_test_windows_tablet/ace_tablet_test.o
[11391/11439] CXX mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/ace_test_windows_car/ace_car_test.o
[11392/11439] CXX mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/ace_test_windows_card/ace_card_test.o
[11393/11439] CXX mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/ace_test_windows_tv/ace_tv_test.o
[11394/11439] CXX mingw_x86_64/obj/foundation/ace/ace_engine/adapter/preview/entrance/samples/ace_test_windows_phone/ace_phone_test.o
[11395/11439] LINK mingw_x86_64/common/common/ace_test_windows_tablet.exe
[11396/11439] LINK mingw_x86_64/common/common/ace_test_windows_car.exe
[11397/11439] LINK mingw_x86_64/common/common/ace_test_windows_card.exe
[11398/11439] LINK mingw_x86_64/common/common/ace_test_windows_phone.exe
[11399/11439] LINK mingw_x86_64/common/common/ace_test_windows_tv.exe
[11400/11439] STAMP obj/foundation/ace/ace_engine/adapter/preview/build/ace_for_windows.stamp
[11401/11439] STAMP obj/out/hi3516dv300/build_configs/ace/ace_engine_standard/ace_engine_standard_info.stamp
[11402/11439] ACTION //out/hi3516dv300/build_configs/ace/ace_engine_standard:ace_engine_standard(//build/toolchain/ohos:ohos_clang_arm)
[11403/11439] STAMP obj/out/hi3516dv300/build_configs/ace/ace_engine_standard/ace_engine_standard.stamp
[11404/11439] STAMP obj/build/ohos/common/generate_src_installed_info.stamp
[11405/11439] STAMP obj/build/ohos/sa_profile/generated_src_sa_profile.stamp
[11406/11439] ACTION //build/ohos/common:gen_binary_installed_info(//build/toolchain/ohos:ohos_clang_arm)
dist subsystem info file [../../component_dist/ohos-arm/packages_to_install/dist_parts_info.json] no exist.
[11407/11439] STAMP obj/build/ohos/common/gen_binary_installed_info.stamp
[11408/11439] ACTION //build/ohos/sa_profile:src_sa_infos_process(//build/toolchain/ohos:ohos_clang_arm)
[11409/11439] STAMP obj/build/ohos/sa_profile/src_sa_infos_process.stamp
[11410/11439] ACTION //build/ohos/common:merge_all_parts(//build/toolchain/ohos:ohos_clang_arm)
[11411/11439] STAMP obj/build/ohos/common/merge_all_parts.stamp
[11412/11439] ACTION //build/ohos/packages:phone_parts_list(//build/toolchain/ohos:ohos_clang_arm)
[11413/11439] STAMP obj/build/ohos/packages/phone_parts_list.stamp
[11414/11439] ACTION //build/ohos/packages:sa_profile_src_phone(//build/toolchain/ohos:ohos_clang_arm)
[11415/11439] STAMP obj/build/ohos/packages/sa_profile_src_phone.stamp
[11416/11439] ACTION //build/ohos/packages:sa_profile_binary_phone(//build/toolchain/ohos:ohos_clang_arm)
[11417/11439] STAMP obj/build/ohos/packages/sa_profile_binary_phone.stamp
[11418/11439] ACTION //build/ohos/packages:phone_sa_profile_install_info(//build/toolchain/ohos:ohos_clang_arm)
[11419/11439] STAMP obj/build/ohos/packages/phone_sa_profile_install_info.stamp
[11420/11439] ACTION //build/ohos/packages:collect_notice_files__phone(//build/toolchain/ohos:ohos_clang_arm)
[11421/11439] STAMP obj/build/ohos/packages/collect_notice_files__phone.stamp
[11422/11439] ACTION //build/ohos/packages:merge_system_notice_file_phone(//build/toolchain/ohos:ohos_clang_arm)
[11423/11439] STAMP obj/build/ohos/packages/merge_system_notice_file_phone.stamp
[11424/11439] ACTION //build/ohos/packages:verify_notice_file_phone(//build/toolchain/ohos:ohos_clang_arm)
[11425/11439] STAMP obj/build/ohos/packages/verify_notice_file_phone.stamp
[11426/11439] ACTION //build/ohos/packages:phone_install_modules(//build/toolchain/ohos:ohos_clang_arm)
copy modules...
[11427/11439] STAMP obj/build/ohos/packages/phone_install_modules.stamp
[11428/11439] ACTION //build/ohos/images:phone_vendor_image(//build/toolchain/ohos:ohos_clang_arm)
[11429/11439] STAMP obj/build/ohos/images/phone_vendor_image.stamp
[11430/11439] ACTION //build/ohos/images:phone_updater_image(//build/toolchain/ohos:ohos_clang_arm)
[11431/11439] ACTION //build/ohos/images:phone_userdata_image(//build/toolchain/ohos:ohos_clang_arm)
[11432/11439] STAMP obj/build/ohos/images/phone_updater_image.stamp
[11433/11439] STAMP obj/build/ohos/images/phone_userdata_image.stamp
[11434/11439] ACTION //build/ohos/images:phone_ramdisk_image(//build/toolchain/ohos:ohos_clang_arm)
[11435/11439] STAMP obj/build/ohos/images/phone_ramdisk_image.stamp
[11436/11439] ACTION //build/ohos/images:phone_system_image(//build/toolchain/ohos:ohos_clang_arm)
[11437/11439] STAMP obj/build/ohos/images/phone_system_image.stamp
[11438/11439] STAMP obj/build/ohos/images/make_images.stamp
[11439/11439] STAMP obj/build/core/gn/images.stamp
used: 2253 seconds
pycache statistics
manage pycache contents
pycache daemon exit
ccache statistics
---------------------------------------------
ccache summary:
cache hit (direct) : 4
cache hit (preprocessed) : 0
cache miss : 8471
hit rate: 0.05%
mis rate: 99.95%
---------------------------------------------
c targets overlap rate statistics
subsystem files NO. percentage builds NO. percentage overlap rate
utils 211 1.1% 291 1.4% 1.38
developtools 246 1.3% 302 1.5% 1.23
third_party 9091 48.9% 10602 52.3% 1.17
ace 2801 15.1% 2835 14.0% 1.01
graphic 166 0.9% 167 0.8% 1.01
aafwk 210 1.1% 210 1.0% 1.00
account 66 0.4% 66 0.3% 1.00
appexecfwk 433 2.3% 433 2.1% 1.00
ark 430 2.3% 430 2.1% 1.00
ccruntime 32 0.2% 32 0.2% 1.00
communication 537 2.9% 537 2.6% 1.00
deviceprofile 37 0.2% 37 0.2% 1.00
distributeddatamgr 348 1.9% 348 1.7% 1.00
distributedhardware 33 0.2% 33 0.2% 1.00
distributedschedule 33 0.2% 33 0.2% 1.00
global 41 0.2% 41 0.2% 1.00
hdf 422 2.3% 422 2.1% 1.00
hiviewdfx 203 1.1% 203 1.0% 1.00
miscservices 64 0.3% 64 0.3% 1.00
multimedia 358 1.9% 358 1.8% 1.00
multimodalinput 129 0.7% 129 0.6% 1.00
notification 132 0.7% 132 0.7% 1.00
powermgr 75 0.4% 75 0.4% 1.00
security 307 1.6% 307 1.5% 1.00
sensors 43 0.2% 43 0.2% 1.00
settingsdata 2 0.0% 2 0.0% 1.00
startup 94 0.5% 94 0.5% 1.00
telephony 365 2.0% 365 1.8% 1.00
updater 91 0.5% 91 0.4% 1.00
usb 16 0.1% 16 0.1% 1.00
wpa_supplicant-2.9 157 0.8% 157 0.8% 1.00
c overall build overlap rate: 1.09
post_process
=====build Hi3516DV300 successful.
2022-03-25 11:36:51
++++++++++++++++++++++++++++++++++++++++
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$
rootroot@rootroot-System-Product1:~/Downloads/code-v3.1-Beta/OpenHarmony$