未实名验证无访问或操作权限
返回上一页不能发帖过快!
返回上一页上传文件错误!
返回上一页1#
1. 通过编译和适配指导书 MineHarmony Hi-Intelligent 1.0.2.319 http方式repo下载 源码未适配直接进行编译报错日志(附件:build.log),修改了几处路径报错。
2. 重新用ssh方式repo下载,按照文档适配之后进行编译报错(附件:build.log-sp)
麻烦帮忙看一下
以下为2中 ssh方式下载的情况,repo下载下来直接编译也一样是这个报错
host_toolchain=//build/toolchain/linux:clang_x64
ERROR at //build/core/gn/BUILD.gn:82:15: Script returned non-zero exit code.
load_result = exec_script(build_loader_script, arguments, "string")
^----------
Current dir: /home/chenjm/project/MHBase-3.1-Std-330-c/out/rk3568/
Command: /usr/bin/env /home/chenjm/project/MHBase-3.1-Std-330-c/build/loader/load.py --subsystem-config-file /home/chenjm/project/MHBase-3.1-Std-330-c/out/preloader/rk3568/subsystem_config.json --platforms-config-file /home/chenjm/project/MHBase-3.1-Std-330-c/out/preloader/rk3568/platforms.build --source-root-dir /home/chenjm/project/MHBase-3.1-Std-330-c/ --gn-root-out-dir /home/chenjm/project/MHBase-3.1-Std-330-c/out/rk3568 --target-os ohos --target-cpu arm --os-level standard --ignore-api-check xts common developertest
Returned 1 and printed out:
args: Namespace(build_platform_name='phone', build_xts=False, example_subsystem_file=None, gn_root_out_dir='/home/chenjm/project/MHBase-3.1-Std-330-c/out/rk3568', ignore_api_check=['xts', 'common', 'developertest'], os_level='standard', platforms_config_file='/home/chenjm/project/MHBase-3.1-Std-330-c/out/preloader/rk3568/platforms.build', scalable_build=False, source_root_dir='/home/chenjm/project/MHBase-3.1-Std-330-c/', subsystem_config_file='/home/chenjm/project/MHBase-3.1-Std-330-c/out/preloader/rk3568/subsystem_config.json', target_cpu='arm', target_os='ohos')
The file '/home/chenjm/project/MHBase-3.1-Std-330-c/base/security/deviceauth/bundle.json' format is incorrect.
stderr:
Traceback (most recent call last):
File "/home/chenjm/project/MHBase-3.1-Std-330-c/build/loader/load.py", line 504, in
sys.exit(main())
File "/home/chenjm/project/MHBase-3.1-Std-330-c/build/loader/load.py", line 499, in main
load(args)
以下为 1中描述的部分build.log
[8755/35088] ACTION //third_party/jsframework:gen_snapshot(//build/toolchain/ohos:ohos_clang_arm)
FAILED: obj/third_party/jsframework/dist/strip.native.min.js obj/third_party/jsframework/dist/jsMockSystemPlugin.js
/usr/bin/env ../../third_party/jsframework/js_framework_build.sh ../../third_party/jsframework/build.js ../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64 ../../third_party/jsframework/runtime ../../prebuilts/build-tools/common/js-framework/node_modules ../../third_party/jsframework/package.json ../../third_party/jsframework/tsconfig.json ../../third_party/jsframework/.eslintrc ../../third_party/jsframework/test obj/third_party/jsframework ../../third_party/jsframework/.babelrc false
copy source code...
copy node_modules...
prebuilts exists
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/bundle.js, but could not be resolved – treating it as an external dependency
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/innerBundleManager.js, but could not be resolved – treating it as an external dependency
(!) "resolve" is imported from external module "path/posix" but never used in "runtime/main/extend/systemplugin/napi/bundle.js" and "runtime/main/extend/systemplugin/napi/innerBundleManager.js".
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/bundle.js, but could not be resolved – treating it as an external dependency
(!) 'path/posix' is imported by runtime/main/extend/systemplugin/napi/innerBundleManager.js, but could not be resolved – treating it as an external dependency
(!) Error when using sourcemap for reporting an error: Can't resolve original location of error.
(node:2663023) UnhandledPromiseRejectionWarning: Error: '__spreadArray' is not exported by tslib, imported by runtime/main/model/pageLife.ts
......
Error: Cannot find module 'path/posix'