登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
58
Star
130
Fork
1.6K
OpenHarmony
/
build
关闭
代码
Issues
219
Pull Requests
125
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
ohos3.0 与 ohos3.1 ohos-build 工具冲突
已完成
#I50KID
缺陷
已注销用户
创建于
2022-03-31 15:30
主机环境:Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux python版本:3.8.10 当前3.0 和 3.1 版本系统所用的hb命令依赖的ohos-build是冲突的 3.0 系统需要用 ``` ohos-build-0.4.3 ``` 3.1 系统需要用 ``` ohos-build-0.4.6 ``` 目前如果按照文章的流程走,安装的是0.4.3,可以正常编译ohos3.0 ``` czy@smallblack:~/OpenHarmony_3.0_LTS$ pip3 install --user build/lite Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing ./build/lite Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from ohos-build==0.4.3) (5.3.1) Requirement already satisfied: kconfiglib>=14.1.0 in /home/czy/.local/lib/python3.8/site-packages (from ohos-build==0.4.3) (14.1.0) Requirement already satisfied: prompt_toolkit==1.0.14 in /home/czy/.local/lib/python3.8/site-packages (from ohos-build==0.4.3) (1.0.14) Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from ohos-build==0.4.3) (2.22.0) Requirement already satisfied: wcwidth in /home/czy/.local/lib/python3.8/site-packages (from prompt_toolkit==1.0.14->ohos-build==0.4.3) (0.2.5) Requirement already satisfied: six>=1.9.0 in /home/czy/.local/lib/python3.8/site-packages (from prompt_toolkit==1.0.14->ohos-build==0.4.3) (1.12.0) Building wheels for collected packages: ohos-build Building wheel for ohos-build (setup.py) ... done Created wheel for ohos-build: filename=ohos_build-0.4.3-py3-none-any.whl size=50281 sha256=4a66e806cbfcb4482badcba12e5534e0553deed850eb7c34738b2ccaa01d080f Stored in directory: /tmp/pip-ephem-wheel-cache-cb7qbt3s/wheels/38/4d/e0/ce53a8b48a059fbb81c7b3d6805df848f5a624bdde5ddc3121 Successfully built ohos-build Installing collected packages: ohos-build Attempting uninstall: ohos-build Found existing installation: ohos-build 0.4.6 Uninstalling ohos-build-0.4.6: Successfully uninstalled ohos-build-0.4.6 Successfully installed ohos-build-0.4.3 czy@smallblack:~/OpenHarmony_3.0_LTS$ hb set [OHOS INFO] hb root path: /home/czy/OpenHarmony_3.0_LTS OHOS Which product do you need? wifiiot_hispark_pegasus czy@smallblack:~/OpenHarmony_3.0_LTS$ hb build -f [OHOS INFO] ohos_build_compiler: gcc [OHOS INFO] hks_config_lite.h [OHOS INFO] Done. Made 90 targets from 82 files in 204ms [OHOS INFO] [1/357] gcc cross compiler obj/base/hiviewdfx/blackbox/libblackbox.blackbox_detector.o // 省略一片编译信息 [OHOS INFO] [356/357] ACTION //device/hisilicon/hispark_pegasus/sdk_liteos:run_wifiiot_scons(//build/lite/toolchain:riscv32-unknown-elf) [OHOS INFO] [357/357] STAMP obj/device/hisilicon/hispark_pegasus/sdk_liteos/run_wifiiot_scons.stamp [OHOS INFO] /home/czy/OpenHarmony_3.0_LTS/vendor/hisilicon/hispark_pegasus/fs.yml not found, stop packing fs. If the product does not need to be packaged, ignore it. [OHOS INFO] wifiiot_hispark_pegasus build success [OHOS INFO] cost time: 0:00:11 ``` 但是对于3.1来说,无法正常编译,需要换成0.4.6版本 ``` czy@smallblack:~/ohos3.1$ hb build -f [OHOS INFO] ERROR at //build/lite/BUILD.gn:36:22: Undefined identifier [OHOS INFO] "//out/${device_name}/${product_name}/build_configs/parts_info/parts_modules_info.json", [OHOS INFO] ^---------- [OHOS INFO] ohos_build_compiler: clang [OHOS INFO] ohos_kernel_type: liteos_m [OHOS ERROR] you can check build log in /home/czy/ohos3.1/out/hispark_pegasus/wifiiot_hispark_pegasus/build.log [OHOS ERROR] command: "/home/czy/ohos3.1/prebuilts/build-tools/linux-x86/bin/gn gen /home/czy/ohos3.1/out/hispark_pegasus/wifiiot_hispark_pegasus --root=/home/czy/ohos3.1 --dotfile=/home/czy/ohos3.1/build/lite/.gn --script-executable=/usr/bin/python3 --args=ohos_build_compiler_specified="clang" ohos_build_compiler_dir="//prebuilts/clang/ohos/linux-x86_64/llvm" product_path="/home/czy/ohos3.1/vendor/hisilicon/hispark_pegasus" device_path="/home/czy/ohos3.1/device/board/hisilicon/hispark_taurus/liteos_a" ohos_kernel_type="liteos_m" disable_huks_binary = false disable_authenticate = false huks_use_lite_storage = true huks_use_hardware_root_key = true huks_config_file = "hks_config_lite.h" ohos_security_huks_mbedtls_porting_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls" enable_ohos_startup_syspara_lite_use_thirdparty_mbedtls = false enable_ohos_utils_native_lite_kv_store_use_posix_kv_api = false enable_ohos_test_xts_acts_use_thirdparty_lwip = false ohos_build_type="debug" ohos_build_time="1648682045256" ohos_build_datetime="2022-03-31 15:14:05" ohos_full_compile=true ohos_build_enable_ccache=true" failed [OHOS ERROR] return code: 1 [OHOS ERROR] execution path: /home/czy/ohos3.1 ```
主机环境:Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux python版本:3.8.10 当前3.0 和 3.1 版本系统所用的hb命令依赖的ohos-build是冲突的 3.0 系统需要用 ``` ohos-build-0.4.3 ``` 3.1 系统需要用 ``` ohos-build-0.4.6 ``` 目前如果按照文章的流程走,安装的是0.4.3,可以正常编译ohos3.0 ``` czy@smallblack:~/OpenHarmony_3.0_LTS$ pip3 install --user build/lite Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Processing ./build/lite Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from ohos-build==0.4.3) (5.3.1) Requirement already satisfied: kconfiglib>=14.1.0 in /home/czy/.local/lib/python3.8/site-packages (from ohos-build==0.4.3) (14.1.0) Requirement already satisfied: prompt_toolkit==1.0.14 in /home/czy/.local/lib/python3.8/site-packages (from ohos-build==0.4.3) (1.0.14) Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from ohos-build==0.4.3) (2.22.0) Requirement already satisfied: wcwidth in /home/czy/.local/lib/python3.8/site-packages (from prompt_toolkit==1.0.14->ohos-build==0.4.3) (0.2.5) Requirement already satisfied: six>=1.9.0 in /home/czy/.local/lib/python3.8/site-packages (from prompt_toolkit==1.0.14->ohos-build==0.4.3) (1.12.0) Building wheels for collected packages: ohos-build Building wheel for ohos-build (setup.py) ... done Created wheel for ohos-build: filename=ohos_build-0.4.3-py3-none-any.whl size=50281 sha256=4a66e806cbfcb4482badcba12e5534e0553deed850eb7c34738b2ccaa01d080f Stored in directory: /tmp/pip-ephem-wheel-cache-cb7qbt3s/wheels/38/4d/e0/ce53a8b48a059fbb81c7b3d6805df848f5a624bdde5ddc3121 Successfully built ohos-build Installing collected packages: ohos-build Attempting uninstall: ohos-build Found existing installation: ohos-build 0.4.6 Uninstalling ohos-build-0.4.6: Successfully uninstalled ohos-build-0.4.6 Successfully installed ohos-build-0.4.3 czy@smallblack:~/OpenHarmony_3.0_LTS$ hb set [OHOS INFO] hb root path: /home/czy/OpenHarmony_3.0_LTS OHOS Which product do you need? wifiiot_hispark_pegasus czy@smallblack:~/OpenHarmony_3.0_LTS$ hb build -f [OHOS INFO] ohos_build_compiler: gcc [OHOS INFO] hks_config_lite.h [OHOS INFO] Done. Made 90 targets from 82 files in 204ms [OHOS INFO] [1/357] gcc cross compiler obj/base/hiviewdfx/blackbox/libblackbox.blackbox_detector.o // 省略一片编译信息 [OHOS INFO] [356/357] ACTION //device/hisilicon/hispark_pegasus/sdk_liteos:run_wifiiot_scons(//build/lite/toolchain:riscv32-unknown-elf) [OHOS INFO] [357/357] STAMP obj/device/hisilicon/hispark_pegasus/sdk_liteos/run_wifiiot_scons.stamp [OHOS INFO] /home/czy/OpenHarmony_3.0_LTS/vendor/hisilicon/hispark_pegasus/fs.yml not found, stop packing fs. If the product does not need to be packaged, ignore it. [OHOS INFO] wifiiot_hispark_pegasus build success [OHOS INFO] cost time: 0:00:11 ``` 但是对于3.1来说,无法正常编译,需要换成0.4.6版本 ``` czy@smallblack:~/ohos3.1$ hb build -f [OHOS INFO] ERROR at //build/lite/BUILD.gn:36:22: Undefined identifier [OHOS INFO] "//out/${device_name}/${product_name}/build_configs/parts_info/parts_modules_info.json", [OHOS INFO] ^---------- [OHOS INFO] ohos_build_compiler: clang [OHOS INFO] ohos_kernel_type: liteos_m [OHOS ERROR] you can check build log in /home/czy/ohos3.1/out/hispark_pegasus/wifiiot_hispark_pegasus/build.log [OHOS ERROR] command: "/home/czy/ohos3.1/prebuilts/build-tools/linux-x86/bin/gn gen /home/czy/ohos3.1/out/hispark_pegasus/wifiiot_hispark_pegasus --root=/home/czy/ohos3.1 --dotfile=/home/czy/ohos3.1/build/lite/.gn --script-executable=/usr/bin/python3 --args=ohos_build_compiler_specified="clang" ohos_build_compiler_dir="//prebuilts/clang/ohos/linux-x86_64/llvm" product_path="/home/czy/ohos3.1/vendor/hisilicon/hispark_pegasus" device_path="/home/czy/ohos3.1/device/board/hisilicon/hispark_taurus/liteos_a" ohos_kernel_type="liteos_m" disable_huks_binary = false disable_authenticate = false huks_use_lite_storage = true huks_use_hardware_root_key = true huks_config_file = "hks_config_lite.h" ohos_security_huks_mbedtls_porting_path = "//device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls" enable_ohos_startup_syspara_lite_use_thirdparty_mbedtls = false enable_ohos_utils_native_lite_kv_store_use_posix_kv_api = false enable_ohos_test_xts_acts_use_thirdparty_lwip = false ohos_build_type="debug" ohos_build_time="1648682045256" ohos_build_datetime="2022-03-31 15:14:05" ohos_full_compile=true ohos_build_enable_ccache=true" failed [OHOS ERROR] return code: 1 [OHOS ERROR] execution path: /home/czy/ohos3.1 ```
评论 (
2
)
登录
后才可以发表评论
状态
已完成
待办的
已确认
技术评审中
修复中
验收中
已完成
已取消
已拒绝
挂起
负责人
未设置
oumen_gitee
oumen-gitee
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
1
https://gitee.com/openharmony/build.git
git@gitee.com:openharmony/build.git
openharmony
build
build
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册