• Lv0
    粉丝0

积分0 / 贡献0

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

作者动态

    鸿蒙4.0编译报错 rk3568

    蜡笔小鑫 显示全部楼层 发表于 2024-7-21 13:04:26

    【问题描述】

    .0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark; ../../../../../../prebuilts/build-tools/common/nodejs/current/bin/node ../../ace_js2bundle/ace_loader_ark/node_modules/webpack/bin/webpack.js --config webpack.config.js --env buildMode=release compilerType=ark arkFrontendDir=../../../../clang_x64/obj/arkcompiler/ets_frontend/es2panda nodeJs=../../../../../../prebuilts/build-tools/common/nodejs/current/bin/node ) [OHOS ERROR] [webpack-cli] TypeError: languageService.getProps is not a function [OHOS ERROR] at serviceChecker (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/lib/ets_checker.js:1:12401) [OHOS ERROR] at ResultStates.<anonymous> (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/lib/compile_info.js:21:503) [OHOS ERROR] at Hook.eval [as call] (eval at create (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16) [OHOS ERROR] at Hook.CALL_DELEGATE [as _call] (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/tapable/lib/Hook.js:14:14) [OHOS ERROR] at WebpackOptionsApply.process (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack/lib/WebpackOptionsApply.js:331:30) [OHOS ERROR] at createCompiler (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack/lib/webpack.js:80:28) [OHOS ERROR] at create (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack/lib/webpack.js:134:16) [OHOS ERROR] at webpack (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack/lib/webpack.js:142:47) [OHOS ERROR] at WebpackCLI.f [as webpack] (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack/lib/index.js:63:16) [OHOS ERROR] at WebpackCLI.createCompiler (/home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/obj/developtools/ace_ets2bundle/ets_loader_ark/node_modules/webpack-cli/lib/webpack-cli.js:1645:29) [OHOS ERROR] COMPILE Failed! Please check error in /home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/error.log, and for more build information in /home/lubancat/android_v909/rk3568_ohos_4.0/out/rk3568/build.log =====build error=====

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

    精彩评论3

    深开鸿_王石

    沙发 发表于 2024-7-22 16:23:14
    看起来是工具链没下全,重新preinstall下

    Juniar

    发表于 2024-7-23 09:43  IP属地: 福建省厦门市

    回复 深开鸿_王石: 是指./build/prebuilts_download.sh么;
    这是作者的./build/prebuilts_download.sh结果sudo ./build/prebuilts_download.sh
    Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
    Requirement already satisfied: rich in /usr/local/lib/python3.8/dist-packages (13.7.1)
    Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /usr/local/lib/python3.8/dist-packages (from rich) (2.18.0)
    Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/lib/python3.8/dist-packages (from rich) (3.0.0)
    Requirement already satisfied: typing-extensions<5.0,>=4.0.0; python_version < "3.9" in /usr/local/lib/python3.8/dist-packages (from rich) (4.12.2)
    Requirement already satisfied: mdurl~=0.1 in /usr/local/lib/python3.8/dist-packages (from markdown-it-py>=2.2.0->rich) (0.1.2)
    rich installed successfully
    prebuilts_download start
    remove nodejs
    [09:33:12] https://repo.huaweicloud.com/ope ... x-x86-3.28.2.tar.gz, Sha256 markword check OK.                                                 prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... -ohos-3.28.2.tar.gz, Sha256 markword check OK.                                                      prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... 2.0-20240527.tar.gz, Sha256 markword check OK.                                        prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... x86-20240510.tar.gz, Sha256 markword check OK.                                                   prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... 2.0-20240523.tar.gz, Sha256 markword check OK.                                  prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... 2.0-20240523.tar.gz, Sha256 markword check OK.                              prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... lts_20230713.tar.gz, Sha256 markword check OK.                                        prebuilts_download.py:182
               https://repo.huaweicloud.com/har ... l_libs_20240201.zip, Sha256 markword check OK.                                                  prebuilts_download.py:182
    [09:33:14] /home/lubancat/android_v909/rk3568_ohos_4.0/../openharmony_prebuilts/44f2993d118ed3cefe4792a2fd62547f.node-v14.21.1-linux-x64.tar.gz, Sha256 check download OK.         prebuilts_download.py:192
    [09:33:15] /home/lubancat/android_v909/rk3568_ohos_4.0/../openharmony_prebuilts/e778f29e95d22f8e3cb6e604936229dc.node-v16.20.2-linux-x64.tar.gz, Sha256 check download OK.         prebuilts_download.py:192
               https://repo.huaweicloud.com/ope ... s-x86-3.28.2.tar.gz, Sha256 markword check OK.                                               prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... ngw-20240510.tar.gz, Sha256 markword check OK.                                               prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... -linaro-7.5.0-arm-l prebuilts_download.py:182
               inux-gnueabi.tar.gz, Sha256 markword check OK.                                                                                                                                                   
               https://repo.huaweicloud.com/ope ... _aarch64-linux-gnu. prebuilts_download.py:182
               tar.xz, Sha256 markword check OK.                                                                                                                                                               
               https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.                     prebuilts_download.py:182
    [09:33:16] https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.                prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.                    prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.               prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.                        prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... f59-20240624.tar.gz, Sha256 markword check OK.                   prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... 1.4_20240715.tar.gz, Sha256 markword check OK.                   prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... .93_20221114.tar.gz, Sha256 markword check OK.                                                      prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... .21_20221124.tar.gz, Sha256 markword check OK.                                                          prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... gnu_20240528.tar.gz, Sha256 markword check OK.                        prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... hos_20240528.tar.gz, Sha256 markword check OK.                  prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... hos_20240528.tar.gz, Sha256 markword check OK.                    prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... hos_20240528.tar.gz, Sha256 markword check OK.                   prebuilts_download.py:182
               https://repo.huaweicloud.com/ope ... lvm_20240528.tar.gz, Sha256 markword check OK.                   prebuilts_download.py:182
               node-v14.21.1-linux-x64.tar.gz, download and decompress completed                                                                                                       prebuilts_download.py:213
               node-v16.20.2-linux-x64.tar.gz, download and decompress completed                                                                                                       prebuilts_download.py:213

    download finished
    npm install try times: 1
    start npm install, please wait.
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/developtools/ace_ets2bundle/compiler/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/developtools/ace_ets2bundle/compiler, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/compiler --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/developtools/ace_js2bundle/ace-loader/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/developtools/ace_js2bundle/ace-loader, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/ace-loader --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/third_party/jsframework/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/third_party/jsframework, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/jsframework --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/third_party/parse5/packages/parse5/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/third_party/parse5/packages/parse5, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/parse5 --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/third_party/weex-loader/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/third_party/weex-loader, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/weex-loader --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/arkcompiler/ets_frontend/legacy_bin/api8/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/arkcompiler/ets_frontend/legacy_bin/api8, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/api8 --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/interface/sdk-js/build-tools/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/interface/sdk-js/build-tools, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/build-tools --unsafe-perm
    check node_modules is not exist
    remove node_modules /home/lubancat/android_v909/rk3568_ohos_4.0/arkcompiler/ets_frontend/arkguard/node_modules
    in dir:/home/lubancat/android_v909/rk3568_ohos_4.0/arkcompiler/ets_frontend/arkguard, executing:timeout -s 9 90s /home/lubancat/android_v909/rk3568_ohos_4.0/prebuilts/build-tools/common/nodejs/current/bin/npm install --registry https://repo.huaweicloud.com/repository/npm/ --cache ~/.npm/_cacache/arkguard --unsafe-perm
    npm install successfully
    remove ninja in cmake
    prebuilts_download end
    Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
    Requirement already satisfied: idna>=3.7 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (3.7)
    Requirement already satisfied: urllib3>=1.26.29 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (2.2.2)
    Requirement already satisfied: pyyaml in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (6.0.1)
    Requirement already satisfied: requests>=2.32.1 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (2.32.3)
    Requirement already satisfied: prompt_toolkit==1.0.14 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (1.0.14)
    Requirement already satisfied: asn1crypto in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (1.5.1)
    Requirement already satisfied: cryptography in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (42.0.8)
    Requirement already satisfied: json5==0.9.6 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (0.9.6)
    Requirement already satisfied: six>=1.9.0 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from prompt_toolkit==1.0.14) (1.16.0)
    Requirement already satisfied: wcwidth in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from prompt_toolkit==1.0.14) (0.2.13)
    Requirement already satisfied: charset-normalizer<4,>=2 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from requests>=2.32.1) (3.3.2)
    Requirement already satisfied: certifi>=2017.4.17 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from requests>=2.32.1) (2024.7.4)
    Requirement already satisfied: cffi>=1.12 in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from cryptography) (1.16.0)
    Requirement already satisfied: pycparser in ./prebuilts/python/linux-x86/current/lib/python3.11/site-packages (from cffi>=1.12->cryptography) (2.22)
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
    ======copy inside cxx finished!======
    ======update llvm ndk finished!======

    深开鸿_王石

    发表于 2024-7-23 14:06  IP属地: 江苏省

    回复 Juniar: Running pip as the 'root' user can result in broken permissions and conflicting behaviour --- 你为啥sudo运行preinstall?不用sudo试试呢

    【2 条回复】

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

    返回顶部