玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 编译构建及此过程中的踩坑填坑(1)

接前一篇文章:玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 代码下载(2)

本文主要参考:

BQ3588C_代码下载

上一回完成了代码下载,本回开始进行编译构建。

1. 编译构建

(1)执行prebuilts

在源码根目录下执行脚本,安装编译器及二进制工具。 

bash build/prebuilts_download.sh

 实际命令及结果如下:

$ build/prebuilts_download.sh
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
Collecting rich
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/8d/5f/21a93b2ec205f4b79853ff6e838e3c99064d5dbe85ec6b05967506f14af0/rich-13.5.2-py3-none-any.whl (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.7/239.7 KB 40.0 MB/s eta 0:00:00
Collecting pygments<3.0.0,>=2.13.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/0b/42/d9d95cc461f098f204cd20c85642ae40fbff81f74c300341b8d0e0df14e0/Pygments-2.14.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 44.0 MB/s eta 0:00:00
Collecting markdown-it-py>=2.2.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/bf/25/2d88e8feee8e055d015343f9b86e370a1ccbec546f2865c98397aaef24af/markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 KB 16.3 MB/s eta 0:00:00
Collecting mdurl~=0.1
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/00/3f/571221facbf1c158a78dbad166b512fc718e76a1ed16382ee919816b0015/mdurl-0.1.1-py3-none-any.whl (10 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
  WARNING: The script pygmentize is installed in '/home/ph/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script markdown-it is installed in '/home/ph/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed markdown-it-py-2.2.0 mdurl-0.1.1 pygments-2.14.0 rich-13.5.2
rich installed successfully
prebuilts_download start
Traceback (most recent call last):
  File "/home/ph/build/prebuilts_download.py", line 361, in 
    sys.exit(main())
  File "/home/ph/build/prebuilts_download.py", line 331, in main
    os.makedirs(args.bin_dir, exist_ok=True)
  File "/usr/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ph/../openharmony_prebuilts'

显式使用bash,实际命令及结果如下:

$ bash build/prebuilts_download.sh
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
Requirement already satisfied: rich in ./.local/lib/python3.10/site-packages (13.5.2)
Requirement already satisfied: markdown-it-py>=2.2.0 in ./.local/lib/python3.10/site-packages (from rich) (2.2.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./.local/lib/python3.10/site-packages (from rich) (2.14.0)
Requirement already satisfied: mdurl~=0.1 in ./.local/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich) (0.1.1)
rich installed successfully
prebuilts_download start
Traceback (most recent call last):
  File "/home/ph/build/prebuilts_download.py", line 361, in 
    sys.exit(main())
  File "/home/ph/build/prebuilts_download.py", line 331, in main
    os.makedirs(args.bin_dir, exist_ok=True)
  File "/usr/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/ph/../openharmony_prebuilts'

使用sudo权限,实际命令及结果如下:

$ sudo bash build/prebuilts_download.sh
[sudo] password for ph: 
Sorry, try again.
[sudo] password for ph: 
Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
Collecting rich
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/8d/5f/21a93b2ec205f4b79853ff6e838e3c99064d5dbe85ec6b05967506f14af0/rich-13.5.2-py3-none-any.whl (239 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 239.7/239.7 KB 19.4 MB/s eta 0:00:00
Collecting markdown-it-py>=2.2.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/bf/25/2d88e8feee8e055d015343f9b86e370a1ccbec546f2865c98397aaef24af/markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 KB 19.7 MB/s eta 0:00:00
Collecting pygments<3.0.0,>=2.13.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/0b/42/d9d95cc461f098f204cd20c85642ae40fbff81f74c300341b8d0e0df14e0/Pygments-2.14.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 28.9 MB/s eta 0:00:00
Collecting mdurl~=0.1
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/00/3f/571221facbf1c158a78dbad166b512fc718e76a1ed16382ee919816b0015/mdurl-0.1.1-py3-none-any.whl (10 kB)
Installing collected packages: pygments, mdurl, markdown-it-py, rich
Successfully installed markdown-it-py-2.2.0 mdurl-0.1.1 pygments-2.14.0 rich-13.5.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
rich installed successfully
prebuilts_download start
[02:02:49] Requesting https://repo.huaweicloud.com/openharmony/compiler/cmake/3.16.5/linux/cmake-linux-x86-3.16.5.tar.gz                                     prebuilts_download.py:81
           Requesting https://repo.huaweicloud.com/openharmony/compiler/gn/2024/linux/gn-linux-x86-20230426.tar.gz                                           prebuilts_download.py:81
           Requesting https://repo.huaweicloud.com/openharmony/compiler/ninja/1.11.0/linux/ninja-linux-x86-1.11.0.tar.gz                                     prebuilts_download.py:81
           Downloaded /home/ph/../openharmony_prebuilts/3355603f88302a35af0ee2156a98d34f.ninja-linux-x86-1.11.0.tar.gz                                       prebuilts_download.py:92
           Requesting https://repo.huaweicloud.com/openharmony/compiler/llvm_prebuilt_libs/ark_js_prebuilts_20230713.tar.gz                                  prebuilts_download.py:81
           Decompressing /home/ph/../openharmony_prebuilts/3355603f88302a35af0ee2156a98d34f.ninja-linux-x86-1.11.0.tar.gz                                    prebuilts_download.py:97
[02:02:50] Downloaded /home/ph/../openharmony_prebuilts/83d96997373bc0583dfe1be7b5035909.gn-linux-x86-20230426.tar.gz                                        prebuilts_download.py:92
           Decompressed /home/ph/../openharmony_prebuilts/3355603f88302a35af0ee2156a98d34f.ninja-linux-x86-1.11.0.tar.gz                                     prebuilts_download.py:99
           Requesting https://repo.huaweicloud.com/nodejs/v14.21.1/node-v14.21.1-linux-x64.tar.gz                                                            prebuilts_download.py:81
           Decompressing /home/ph/../openharmony_prebuilts/83d96997373bc0583dfe1be7b5035909.gn-linux-x86-20230426.tar.gz                                     prebuilts_download.py:97
           Decompressed /home/ph/../openharmony_prebuilts/83d96997373bc0583dfe1be7b5035909.gn-linux-x86-20230426.tar.gz                                      prebuilts_download.py:99
           Requesting https://repo.huaweicloud.com/openharmony/compiler/cmake/3.16.5/windows/cmake-windows-x86-3.16.5.tar.gz                                 prebuilts_download.py:81
[02:02:54] Downloaded /home/ph/../openharmony_prebuilts/7cd434be2840fe57e27e1c54011f90de.cmake-linux-x86-3.16.5.tar.gz                                       prebuilts_download.py:92
           Downloaded /home/ph/../openharmony_prebuilts/3b75f35ee8f5da7bb91804ee5fc5e2ac.cmake-windows-x86-3.16.5.tar.gz                                     prebuilts_download.py:92
[02:02:55] Downloaded /home/ph/../openharmony_prebuilts/44f2993d118ed3cefe4792a2fd62547f.node-v14.21.1-linux-x64.tar.gz                                      prebuilts_download.py:92
           Decompressing /home/ph/../openharmony_prebuilts/7cd434be2840fe57e27e1c54011f90de.cmake-linux-x86-3.16.5.tar.gz                                    prebuilts_download.py:97
           Decompressing /home/ph/../openharmony_prebuilts/3b75f35ee8f5da7bb91804ee5fc5e2ac.cmake-windows-x86-3.16.5.tar.gz                                  prebuilts_download.py:97
[02:02:56] Decompressing /home/ph/../openharmony_prebuilts/44f2993d118ed3cefe4792a2fd62547f.node-v14.21.1-linux-x64.tar.gz                                   prebuilts_download.py:97
[02:02:58] gn-linux-x86-20230426.tar.gz, download and decompress completed                                                                                  prebuilts_download.py:185
           ninja-linux-x86-1.11.0.tar.gz, download and decompress completed                                                                                 prebuilts_download.py:185
           Decompressed /home/ph/../openharmony_prebuilts/3b75f35ee8f5da7bb91804ee5fc5e2ac.cmake-windows-x86-3.16.5.tar.gz 
……
……
[02:09:02] Decompressed /home/ph/../openharmony_prebuilts/708c0c51fcafd112e35f005f4c2e322f.clang_windows-x86_64-d1aa60-0630_sp1.tar.bz2                 prebuilts_download.py:99
           clang_windows-x86_64-d1aa60-0630_sp1.tar.bz2, download and decompress completed                                                             prebuilts_download.py:185
[02:09:26] Decompressed /home/ph/../openharmony_prebuilts/1683b362eae9b97e94f8c62c4dd8017b.clang_linux-x86_64-77da71-20230230.tar.bz2                   prebuilts_download.py:99
           clang_linux-x86_64-77da71-20230230.tar.bz2, download and decompress completed                                                               prebuilts_download.py:185
[02:10:02] Decompressed /home/ph/../openharmony_prebuilts/c67adbd754307618e3dcf8dc34881f0f.clang_linux-x86_64-d1aa60-0630.tar.bz2                       prebuilts_download.py:99
           clang_linux-x86_64-d1aa60-0630.tar.bz2, download and decompress completed                                                                   prebuilts_download.py:185
                                        cmake-linux-x86-3.16.5.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 39.9/39.9 MB   • 6.6 MB/s  • 0:00:00
                                         gn-linux-x86-20230426.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 1.2/1.2 MB     • 1.9 MB/s  • 0:00:00
                                        ninja-linux-x86-1.11.0.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 122.4/122.4 kB • 6.0 MB/s  • 0:00:00
                                     ark_js_prebuilts_20230713.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 329.8/329.8 MB • 15.6 MB/s • 0:00:00
                                       node-v14.21.1-linux-x64.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 35.0/35.0 MB   • 8.2 MB/s  • 0:00:00
                                      cmake-windows-x86-3.16.5.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 28.8/28.8 MB   • 7.8 MB/s  • 0:00:00
                                                   clang-mingw.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 1.1/1.1 GB     • 6.2 MB/s  • 0:00:00
prebuilts_gcc_linux-x86_arm_gcc-linaro-7.5.0-arm-linux-gnueabi.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 194.6/194.6 MB • 9.1 MB/s  • 0:00:00
             gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 117.9/117.9 MB • 6.1 MB/s  • 0:00:00
                         clang_windows-x86_64-d1aa60-0630_sp1.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 398.2/398.2 MB • 6.7 MB/s  • 0:00:00
                        libcxx-ndk_windows-x86_64-d1aa60-0630.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 13.8/13.8 MB   • 9.4 MB/s  • 0:00:00
                               clang_linux-x86_64-d1aa60-0630.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 519.3/519.3 MB • 10.7 MB/s • 0:00:00
                          libcxx-ndk_linux-x86_64-d1aa60-0630.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 13.8/13.8 MB   • 6.9 MB/s  • 0:00:00
                           clang_linux-x86_64-77da71-20230230.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 414.4/414.4 MB • 22.3 MB/s • 0:00:00
                      libcxx-ndk_linux-x86_64-77da71-20230230.tar.bz2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 18.5/18.5 MB   • 15.5 MB/s • 0:00:00
                              python-linux-x86-3.10.2_20230604.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 10.8/10.8 MB   • 14.7 MB/s • 0:00:00
                                     bpftool_v5.10.93_20221114.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 530.7/530.7 kB • 20.0 MB/s • 0:00:00
                                         pahole_v1.21_20221124.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 12.4/12.4 MB   • 21.3 MB/s • 0:00:00
              rust-1.68.0-dev-x86_64-unknown-linux-gnu-norpath.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 254.0/254.0 MB • 28.7 MB/s • 0:00:00
       rust-std-1.68.0-dev-aarch64-linux-ohos-norpath_20230706.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 31.0/31.0 MB   • 17.0 MB/s • 0:00:00
                  rust-std-1.68.0-dev-armv7-linux-ohos-norpath.tar.gz ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 25.3/25.3 MB   • 18.4 MB/s • 0:00:00
start npm install, please wait.
prebuilts_download end
Looking in indexes: http://repo.huaweicloud.com/repository/pypi/simple
Collecting pyyaml
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/29/61/bf33c6c85c55bc45a29eee3195848ff2d518d84735eb0e2d8cb42e0d285e/PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (705 kB)
     |████████████████████████████████| 705 kB 10.2 MB/s 
Collecting requests
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 7.9 MB/s 
Collecting prompt_toolkit==1.0.14
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/ee/3d/b25d35a9f0d381dd1c02d8e04b37c353caaaff4bc32150328eeebe4931f5/prompt_toolkit-1.0.14-py3-none-any.whl (248 kB)
     |████████████████████████████████| 248 kB 19.5 MB/s 
Collecting kconfiglib>=14.1.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/8a/f1/d98a89231e779b079b977590efcc31249d959c8f1d4b5858cad69695ff9c/kconfiglib-14.1.0-py2.py3-none-any.whl (145 kB)
     |████████████████████████████████| 145 kB 18.7 MB/s 
Collecting asn1crypto
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/c9/7f/09065fd9e27da0eda08b4d6897f1c13535066174cc023af248fc2a8d5e5a/asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
     |████████████████████████████████| 105 kB 28.7 MB/s 
Collecting cryptography
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/85/62/48bcebd955945d8da3fe9b84a679dbf4bf179e1ac36e583b7eaa47506758/cryptography-41.0.5-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
     |████████████████████████████████| 4.4 MB 9.9 MB/s 
Collecting json5==0.9.6
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/7e/8e/ebde0a31c71e7098b3014faf46c80bdbcadb3c23b0ac7c7646b2af7d302e/json5-0.9.6-py2.py3-none-any.whl (18 kB)
Collecting wcwidth
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting six>=1.9.0
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting idna<4,>=2.5
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 2.2 MB/s 
Collecting urllib3<3,>=1.21.1
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/96/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl (104 kB)
     |████████████████████████████████| 104 kB 21.1 MB/s 
Collecting charset-normalizer<4,>=2
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/da/f1/3702ba2a7470666a62fd81c58a4c40be00670e5006a67f4d626e57f013ae/charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)
     |████████████████████████████████| 142 kB 23.2 MB/s 
Collecting certifi>=2017.4.17
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl (162 kB)
     |████████████████████████████████| 162 kB 16.1 MB/s 
Collecting cffi>=1.12
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/c9/7c/43d81bdd5a915923c3bad5bb4bff401ea00ccc8e28433fb6083d2e3bf58e/cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
     |████████████████████████████████| 443 kB 7.0 MB/s 
Collecting pycparser
  Downloading http://repo.huaweicloud.com/repository/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
     |████████████████████████████████| 118 kB 26.9 MB/s 
Installing collected packages: pycparser, wcwidth, urllib3, six, idna, charset-normalizer, cffi, certifi, requests, pyyaml, prompt-toolkit, kconfiglib, json5, cryptography, asn1crypto
Successfully installed asn1crypto-1.5.1 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 cryptography-41.0.5 idna-3.4 json5-0.9.6 kconfiglib-14.1.0 prompt-toolkit-1.0.14 pycparser-2.21 pyyaml-6.0.1 requests-2.31.0 six-1.16.0 urllib3-2.1.0 wcwidth-0.2.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4; however, version 23.0.1 is available.
You should consider upgrading via the '/home/ph/prebuilts/python/linux-x86/3.10.2/bin/python3.10 -m pip install --upgrade pip' command.
======copy inside cxx finished!======
======update llvm ndk finished!======
======change rustlib name finished!======
Created /home/ph/prebuilts/clang/ohos/linux-x86_64/llvm/bin/lldb-mi
Created /home/ph/prebuilts/clang/ohos/windows-x86_64/llvm/bin/lldb-mi.exe

过程中部分截图如下:

玩转贝启科技BQ3588C开源鸿蒙系统开发板 —— 编译构建及此过程中的踩坑填坑(1)_第1张图片

下载的prebuilts二进制默认存放在与OpenHarmony同目录下的OpenHarmony_2.0_canary_prebuilts下。

(2)编译

在Linux环境进行如下操作:进入源码根目录,执行如下命令进行版本编译。

./build.sh --product-name dayu210 --ccache

实际命令及结果如下:

$ ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 07:26:14
--product-name dayu210 --ccache
Current Node.js version is v14.21.1
Node.js version check passed
lockfile=false
start set ohpm
download oh-command-line-tools
ohcommandline-tools-linux.zip: Permission denied
unzip:  cannot find or open ohcommandline-tools-linux.zip, ohcommandline-tools-linux.zip.zip or ohcommandline-tools-linux.zip.ZIP.
chmod: cannot access '/home/ph/OpenHarmony_Source/prebuilts/build-tools/common/oh-command-line-tools/ohpm/bin/init': No such file or directory
init ohpm
./build.sh: line 121: /home/ph/OpenHarmony_Source/prebuilts/build-tools/common/oh-command-line-tools/ohpm/bin/init: No such file or directory
./build.sh: line 122: ohpm: command not found
ohpm version is 
./build.sh: line 123: ohpm: command not found
./build.sh: line 124: ohpm: command not found
./build.sh: line 125: ohpm: command not found
~/.hvigor/wrapper/tools ~/OpenHarmony_Source
install pnpm
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN tools No description
npm WARN tools No repository field.
npm WARN tools No license field.

added 1 package in 4.503s

1 package is looking for funding
  run `npm fund` for details

~/OpenHarmony_Source
start build ohos-sdk
~/OpenHarmony_Source ~/OpenHarmony_Source
building the latest ohos-sdk...
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] generated build prop info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/build.prop
[OHOS INFO] generated build config info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/build_config.json
[OHOS INFO] generated product parts info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/parts.json
[OHOS INFO] generated parts config info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/parts_config.json
[OHOS INFO] generated build gnargs prop info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/build_gnargs.prop
[OHOS INFO] generated features info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/features.json
[OHOS INFO] generated syscap info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/syscap.json
[OHOS INFO] generated exclusion modules info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/exclusion_modules.json
[OHOS INFO] generated platforms build info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/platforms.build
[OHOS INFO] generated subsystem config info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/subsystem_config.json
[OHOS INFO] generated system capability info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/systemcapability.json
[OHOS INFO] generated compile_standard_whitelist info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/compile_standard_whitelist.json
[OHOS INFO] Checking all build args...
……
……
[OHOS INFO] [4029/20649] ACTION //developtools/ace_js2bundle:build_ace_loader_library(//build/toolchain/linux:clang_x64)
[OHOS ERROR] [4024/20649] ACTION //developtools/packing_tool:packing_tool(//build/toolchain/linux:clang_x64)
[OHOS ERROR] FAILED: clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar clang_x64/obj/developtools/packing_tool/jar 
[OHOS ERROR] /usr/bin/env ../../developtools/packing_tool/build.py --haptobin ../../developtools/packing_tool/adapter/ohos --haptobinOutput clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar --unpackOutput clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar --packOutput clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar --outpath clang_x64/obj/developtools/packing_tool/jar --toolchain //build/toolchain/linux:clang_x64 --compileTarget sdk
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/haptobin_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/app_unpacking_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar/app_packing_tool.jar
[OHOS ERROR] clang_x64/obj/developtools/packing_tool/jar
[OHOS ERROR] sdk
[OHOS ERROR] /home/ph/OpenHarmony_Source/out/sdk/clang_x64/obj/developtools/packing_tool/jar exist
[OHOS ERROR] 
[OHOS ERROR] /home/ph/OpenHarmony_Source/developtools/packing_tool/haptobin.sh: line 65: javac: command not found
[OHOS ERROR] 
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/out/sdk/../../developtools/packing_tool/build.py", line 90, in 
[OHOS ERROR]     sys.exit(main())
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/out/sdk/../../developtools/packing_tool/build.py", line 57, in main
[OHOS ERROR]     raise Exception("compile haptobin java class failed!")
[OHOS ERROR] Exception: compile haptobin java class failed!
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/util/system_util.py", line 63, in exec_command
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /home/ph/OpenHarmony_Source/out/sdk/build.log
[OHOS ERROR] 
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR] 
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
[OHOS ERROR]     raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR] 
[OHOS ERROR] Code:      4000
[OHOS ERROR] 
[OHOS ERROR] Reason:    ninja phase failed
[OHOS ERROR] 
[OHOS ERROR] Solution:  Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs. 
[OHOS ERROR] 		Or you can try the following steps to solve this problem:
[OHOS ERROR] 		  1. cd to OHOS root path
[OHOS ERROR] 		  2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR] 		  3. repo sync
[OHOS ERROR] 		  4. repo forall -c 'git lfs pull'
[OHOS ERROR] 		  5. bash build/prebuilts_download.sh
[OHOS ERROR] 		  6. rebuild your product or component
[OHOS ERROR] 
[OHOS ERROR] 		If you still cannot solve this problem, you could post this problem on: 
[OHOS ERROR] 		  https://gitee.com/openharmony/build/issues
[OHOS ERROR] 
ohos-sdk build failed!

出现了错误,并且问题很多。先解决其中比较典型的一个:

[OHOS ERROR] /home/ph/OpenHarmony_Source/developtools/packing_tool/haptobin.sh: line 65: javac: command not found

解决方法:

通过apt命令下载安装OpenJDK 11版本。实际命令及结果如下:

$ sudo apt install openjdk-11-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev libsm-dev libxt-dev openjdk-11-jdk-headless openjdk-11-jre
  openjdk-11-jre-headless
Suggested packages:
  default-jre libice-doc libsm-doc libxt-doc openjdk-11-demo openjdk-11-source visualvm fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei
The following NEW packages will be installed:
  ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev libsm-dev libxt-dev openjdk-11-jdk openjdk-11-jdk-headless
  openjdk-11-jre openjdk-11-jre-headless
0 upgraded, 12 newly installed, 0 to remove and 5 not upgraded.
Need to get 120 MB of archives.
After this operation, 270 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 java-common all 0.72build2 [6,782 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jre-headless amd64 11.0.21+9-0ubuntu1~22.04 [42.5 MB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 ca-certificates-java all 20190909ubuntu1.2 [12.1 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 fonts-dejavu-extra all 2.37-2build1 [2,041 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libatk-wrapper-java all 0.38.0-5build1 [53.1 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libatk-wrapper-java-jni amd64 0.38.0-5build1 [49.0 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libice-dev amd64 2:1.0.10-1build2 [51.4 kB]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libsm-dev amd64 2:1.2.3-1build2 [18.1 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxt-dev amd64 1:1.2.1-1 [396 kB]
Get:10 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jre amd64 11.0.21+9-0ubuntu1~22.04 [214 kB]
Get:11 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.21+9-0ubuntu1~22.04 [73.5 MB]
Get:12 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk amd64 11.0.21+9-0ubuntu1~22.04 [1,327 kB]
Fetched 120 MB in 5s (26.3 MB/s)                    
Selecting previously unselected package java-common.
(Reading database ... 212649 files and directories currently installed.)
Preparing to unpack .../00-java-common_0.72build2_all.deb ...
Unpacking java-common (0.72build2) ...
Selecting previously unselected package openjdk-11-jre-headless:amd64.
Preparing to unpack .../01-openjdk-11-jre-headless_11.0.21+9-0ubuntu1~22.04_amd64.deb ...
Unpacking openjdk-11-jre-headless:amd64 (11.0.21+9-0ubuntu1~22.04) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../02-ca-certificates-java_20190909ubuntu1.2_all.deb ...
Unpacking ca-certificates-java (20190909ubuntu1.2) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../03-fonts-dejavu-extra_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-2build1) ...
Selecting previously unselected package libatk-wrapper-java.
Preparing to unpack .../04-libatk-wrapper-java_0.38.0-5build1_all.deb ...
Unpacking libatk-wrapper-java (0.38.0-5build1) ...
Selecting previously unselected package libatk-wrapper-java-jni:amd64.
Preparing to unpack .../05-libatk-wrapper-java-jni_0.38.0-5build1_amd64.deb ...
Unpacking libatk-wrapper-java-jni:amd64 (0.38.0-5build1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../06-libice-dev_2%3a1.0.10-1build2_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.10-1build2) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../07-libsm-dev_2%3a1.2.3-1build2_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.3-1build2) ...
Selecting previously unselected package libxt-dev:amd64.
Preparing to unpack .../08-libxt-dev_1%3a1.2.1-1_amd64.deb ...
Unpacking libxt-dev:amd64 (1:1.2.1-1) ...
Selecting previously unselected package openjdk-11-jre:amd64.
Preparing to unpack .../09-openjdk-11-jre_11.0.21+9-0ubuntu1~22.04_amd64.deb ...
Unpacking openjdk-11-jre:amd64 (11.0.21+9-0ubuntu1~22.04) ...
Selecting previously unselected package openjdk-11-jdk-headless:amd64.
Preparing to unpack .../10-openjdk-11-jdk-headless_11.0.21+9-0ubuntu1~22.04_amd64.deb ...
Unpacking openjdk-11-jdk-headless:amd64 (11.0.21+9-0ubuntu1~22.04) ...
Selecting previously unselected package openjdk-11-jdk:amd64.
Preparing to unpack .../11-openjdk-11-jdk_11.0.21+9-0ubuntu1~22.04_amd64.deb ...
Unpacking openjdk-11-jdk:amd64 (11.0.21+9-0ubuntu1~22.04) ...
Setting up java-common (0.72build2) ...
Setting up libice-dev:amd64 (2:1.0.10-1build2) ...
Setting up libsm-dev:amd64 (2:1.2.3-1build2) ...
Setting up libxt-dev:amd64 (1:1.2.1-1) ...
Setting up fonts-dejavu-extra (2.37-2build1) ...
Setting up libatk-wrapper-java (0.38.0-5build1) ...
Setting up libatk-wrapper-java-jni:amd64 (0.38.0-5build1) ...
Setting up openjdk-11-jre-headless:amd64 (11.0.21+9-0ubuntu1~22.04) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up openjdk-11-jre:amd64 (11.0.21+9-0ubuntu1~22.04) ...
Setting up openjdk-11-jdk-headless:amd64 (11.0.21+9-0ubuntu1~22.04) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeprscan to provide /usr/bin/jdeprscan (jdeprscan) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jfr to provide /usr/bin/jfr (jfr) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jimage to provide /usr/bin/jimage (jimage) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jlink to provide /usr/bin/jlink (jlink) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jmod to provide /usr/bin/jmod (jmod) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jshell to provide /usr/bin/jshell (jshell) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmic to provide /usr/bin/rmic (rmic) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jaotc to provide /usr/bin/jaotc (jaotc) in auto mode
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jhsdb to provide /usr/bin/jhsdb (jhsdb) in auto mode
Setting up openjdk-11-jdk:amd64 (11.0.21+9-0ubuntu1~22.04) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jconsole to provide /usr/bin/jconsole (jconsole) in auto mode
Setting up ca-certificates-java (20190909ubuntu1.2) ...
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
Adding debian:emSign_ECC_Root_CA_-_G3.pem
Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:HARICA_TLS_RSA_Root_CA_2021.pem
Adding debian:Certum_EC-384_CA.pem
Adding debian:GlobalSign_Root_E46.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
Adding debian:ssl-cert-snakeoil.pem
Adding debian:D-TRUST_BR_Root_CA_1_2020.pem
Adding debian:Certum_Trusted_Root_CA.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:Security_Communication_ECC_RootCA1.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:Hongkong_Post_Root_CA_3.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Security_Communication_RootCA3.pem
Adding debian:Certainly_Root_R1.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:Trustwave_Global_Certification_Authority.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:GTS_Root_R1.pem
Adding debian:Certigna_Root_CA.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:HiPKI_Root_CA_-_G1.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:TunTrust_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:vTrus_ECC_Root_CA.pem
Adding debian:GlobalSign_Root_CA_-_R6.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:GTS_Root_R4.pem
Adding debian:GlobalSign_Root_R46.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:ISRG_Root_X2.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:GTS_Root_R3.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:DigiCert_TLS_ECC_P384_Root_G5.pem
Adding debian:E-Tugra_Global_Root_CA_ECC_v3.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Certainly_Root_E1.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:UCA_Extended_Validation_Root.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:Telia_Root_CA_v2.pem
Adding debian:emSign_Root_CA_-_G1.pem
Adding debian:GLOBALTRUST_2020.pem
Adding debian:emSign_ECC_Root_CA_-_C3.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:HARICA_TLS_ECC_Root_CA_2021.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068_2.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:ANF_Secure_Server_Root_CA.pem
Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:certSIGN_Root_CA_G2.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:Secure_Global_CA.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:SecureTrust_CA.pem
Adding debian:DigiCert_TLS_RSA4096_Root_G5.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:NAVER_Global_Root_Certification_Authority.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:GTS_Root_R2.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:vTrus_Root_CA.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:e-Szigno_Root_CA_2017.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:E-Tugra_Global_Root_CA_RSA_v3.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:Izenpe.com.pem
Adding debian:Trustwave_Global_ECC_P256_Certification_Authority.pem
Adding debian:emSign_Root_CA_-_C1.pem
Adding debian:Trustwave_Global_ECC_P384_Certification_Authority.pem
Adding debian:D-TRUST_EV_Root_CA_1_2020.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:UCA_Global_G2_Root.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:Certigna.pem
Adding debian:Entrust_Root_Certification_Authority_-_G4.pem
done.
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.

现在通过以下命令查看安装是否成功、javac命令是否可用:

$ which javac
/usr/bin/javac
$ javac --version
javac 11.0.21

证明已经安装成功了。

再次执行命令:

./build.sh --product-name dayu210 --ccache

实际命令及结果如下:

$ ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 08:44:25
--product-name dayu210 --ccache
Current Node.js version is v14.21.1
Node.js version check passed
lockfile=false
start set ohpm
download oh-command-line-tools
ohcommandline-tools-linux.zip: Permission denied
unzip:  cannot find or open ohcommandline-tools-linux.zip, ohcommandline-tools-linux.zip.zip or ohcommandline-tools-linux.zip.ZIP.
chmod: cannot access '/home/ph/OpenHarmony_Source/prebuilts/build-tools/common/oh-command-line-tools/ohpm/bin/init': No such file or directory
init ohpm
./build.sh: line 121: /home/ph/OpenHarmony_Source/prebuilts/build-tools/common/oh-command-line-tools/ohpm/bin/init: No such file or directory
./build.sh: line 122: ohpm: command not found
ohpm version is 
./build.sh: line 123: ohpm: command not found
./build.sh: line 124: ohpm: command not found
./build.sh: line 125: ohpm: command not found
remove /home/ph/.hvigor
~/.hvigor/wrapper/tools ~/OpenHarmony_Source
install pnpm
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN tools No description
npm WARN tools No repository field.
npm WARN tools No license field.

added 1 package in 1.673s

1 package is looking for funding
  run `npm fund` for details

~/OpenHarmony_Source
start build ohos-sdk
~/OpenHarmony_Source ~/OpenHarmony_Source
building the latest ohos-sdk...
[OHOS INFO] Set cache size limit to 100.0 GB
……

笔者通过Ctrl+C终止了过程,因为可以看到上边已经有两行出现了问题:

download oh-command-line-tools
ohcommandline-tools-linux.zip: Permission denied

这次加入sudo,再次执行命令,结果如下:

$ sudo ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 08:45:25
--product-name dayu210 --ccache
Current Node.js version is v14.21.1
Node.js version check passed
lockfile=false
start set ohpm
download oh-command-line-tools
--2024-01-02 08:45:26--  https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/a6/v3/cXARnGbKTt-4sPEi3GcnJA/ohcommandline-tools-linux-2.0.0.1.zip?HW-CC-KV=V1&HW-CC-Date=20230512T075353Z&HW-CC-Expire=315360000&HW-CC-Sign=C82B51F3C9F107AB460EC26392E25B2E20EF1A6CAD10A26929769B21B8C8D5B6
Resolving contentcenter-vali-drcn.dbankcdn.cn (contentcenter-vali-drcn.dbankcdn.cn)... 39.136.88.115, 39.136.88.113, 39.136.88.117, ...
Connecting to contentcenter-vali-drcn.dbankcdn.cn (contentcenter-vali-drcn.dbankcdn.cn)|39.136.88.115|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17870081 (17M) [application/zip]
Saving to: ‘ohcommandline-tools-linux.zip’

ohcommandline-tools-linux.zip                 100%[==============================================================================================>]  17.04M  21.8MB/s    in 0.8s    

2024-01-02 08:45:27 (21.8 MB/s) - ‘ohcommandline-tools-linux.zip’ saved [17870081/17870081]

Archive:  ohcommandline-tools-linux.zip
  inflating: oh-command-line-tools/sdkmanager/conf/config.properties  
  inflating: oh-command-line-tools/sdkmanager/bin/ohsdkmgr  
  inflating: oh-command-line-tools/sdkmanager/libs/sdk-core-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/failureaccess-1.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/common-grs-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/guava-31.0.1-jre.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/common-utils-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/httpcore5-h2-5.1.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/commons-compress-1.21.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/sdk-oh-cli-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/commons-codec-1.15.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/slf4j-simple-1.7.35.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/slf4j-api-1.7.35.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/sdk-oh-core-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/common-config-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/common-country-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/sdk-cli-2.0.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/httpcore5-5.1.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/error_prone_annotations-2.7.1.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/fastjson-1.2.83.jar  
  inflating: oh-command-line-tools/sdkmanager/libs/httpclient5-5.1.jar  
  inflating: oh-command-line-tools/bin/codelinter  
  inflating: oh-command-line-tools/bin/ohpm  
  inflating: oh-command-line-tools/bin/ohsdkmgr  
  inflating: oh-command-line-tools/README.txt  
  inflating: oh-command-line-tools/codelinter/bin/codelinter.bat  
  inflating: oh-command-line-tools/codelinter/bin/codelinter  
  inflating: oh-command-line-tools/codelinter/out/lib.es2018.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2015.reflect.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2015.symbol.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2017.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2015.iterable.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2020.sharedmemory.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.esnext.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2018.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.reflect.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.symbol.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.iterable.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.sharedmemory.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.symbol.wellknown.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.intl.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2016.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.webworker.importscripts.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.string.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.regexp.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es6.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.object.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.typedarrays.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.collection.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es5.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.string.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.string.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.dom.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/index.js  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.weakref.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.object.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2016.array.include.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.symbol.wellknown.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2016.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.scripthost.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.bigint.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.intl.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.proxy.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.core.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.array.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.sharedmemory.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2020.promise.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.dom.iterable.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.intl.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.webworker.iterable.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.asyncgenerator.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.asynciterable.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.esnext.intl.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2018.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2019.symbol.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.webworker.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2017.string.d.ts  
  inflating: oh-command-line-tools/codelinter/out/parser/lib.es2015.generator.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2020.symbol.wellknown.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2020.intl.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2016.full.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.webworker.importscripts.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.esnext.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.esnext.string.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2018.regexp.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es6.d.ts  
  inflating: oh-command-line-tools/codelinter/out/lib.es2017.object.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/ets-append-config.json  
  inflating: oh-command-line-tools/codelinter/out/config/eslintConfig.json  
  inflating: oh-command-line-tools/codelinter/out/config/code-linter.json  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/shape.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/grid.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/swiper.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/path.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/image_animator.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/circle.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/datapanel.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/progress.d.ts  
  inflating: oh-command-line-tools/codelinter/out/config/component/hos/3.0.0.5/textinput.d.ts  
……

先不管最终结果如何,至少上边的问题已经解决了,看来编译也需要sudo权限。

download oh-command-line-tools
--2024-01-02 08:45:26--  https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/a6/v3/cXARnGbKTt-4sPEi3GcnJA/ohcommandline-tools-linux-2.0.0.1.zip?HW-CC-KV=V1&HW-CC-Date=20230512T075353Z&HW-CC-Expire=315360000&HW-CC-Sign=C82B51F3C9F107AB460EC26392E25B2E20EF1A6CAD10A26929769B21B8C8D5B6
Resolving contentcenter-vali-drcn.dbankcdn.cn (contentcenter-vali-drcn.dbankcdn.cn)... 39.136.88.115, 39.136.88.113, 39.136.88.117, ...
Connecting to contentcenter-vali-drcn.dbankcdn.cn (contentcenter-vali-drcn.dbankcdn.cn)|39.136.88.115|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17870081 (17M) [application/zip]
Saving to: ‘ohcommandline-tools-linux.zip’

ohcommandline-tools-linux.zip                 100%[==============================================================================================>]  17.04M  21.8MB/s    in 0.8s    

2024-01-02 08:45:27 (21.8 MB/s) - ‘ohcommandline-tools-linux.zip’ saved [17870081/17870081]

Archive:  ohcommandline-tools-linux.zip

目前编译过程还在进行中,等待本次的编译结果……

……
[OHOS INFO] [61/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrDynamicAtlas.o
[OHOS INFO] [62/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrDrawOpAtlas.o
[OHOS INFO] [63/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrEagerVertexAllocator.o
[OHOS INFO] [64/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrDirectContext.o
[OHOS INFO] [65/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrDirectContextPriv.o
[OHOS INFO] [66/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrDrawingManager.o
[OHOS INFO] [67/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrFixedClip.o
[OHOS INFO] [68/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrFinishCallbacks.o
[OHOS INFO] [69/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrGeometryProcessor.o
[OHOS INFO] [70/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrGpuBuffer.o
[OHOS INFO] [71/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrMemoryPool.o
[OHOS INFO] [72/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrGpuResource.o
[OHOS INFO] [73/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrFragmentProcessor.o
[OHOS INFO] [74/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrManagedResource.o
[OHOS INFO] [75/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrGpu.o
[OHOS INFO] [76/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrImageContext.o
[OHOS INFO] [77/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrMeshDrawTarget.o
[OHOS INFO] [78/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrPaint.o
[OHOS INFO] [79/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrOnFlushResourceProvider.o
[OHOS INFO] [80/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrOpsRenderPass.o
[OHOS INFO] [81/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrOpFlushState.o
[OHOS INFO] [82/16779] CXX clang_x64/obj/third_party/skia/src/gpu/gpu/GrPersistentCacheUtils.o
……

通过进度数字(如[82/16779])就能看出来,这时间绝对短不了。

本次编译结果出来了,还是有错误,如下:

……
[OHOS INFO] [4444/16776] ACTION //third_party/icu/icu4c:shared_icui18n_info(//build/toolchain/linux:clang_x64)
[OHOS INFO] [4445/16776] STAMP clang_x64/obj/third_party/flutter/glfw/glfw.inputdeps.stamp
[OHOS INFO] [4446/16776] ACTION //third_party/icu/icu4c:shared_icui18n__check(//build/toolchain/linux:clang_x64)
[OHOS INFO] [4447/16776] ACTION //third_party/icu/icu4c:shared_icui18n__notice(//build/toolchain/linux:clang_x64)
[OHOS INFO] [4448/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/context.o
[OHOS INFO] [4449/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/input.o
[OHOS INFO] [4450/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/init.o
[OHOS INFO] [4451/16776] CXX clang_x64/obj/third_party/flutter/skia/src/ports/ace_typeface_freetype/SkFontHost_FreeType.o
[OHOS INFO] [4452/16776] CXX clang_x64/obj/third_party/flutter/skia/src/xml/ace_xml/SkXMLWriter.o
[OHOS INFO] [4453/16776] CXX clang_x64/obj/foundation/graphic/graphic_2d/rosen/modules/glfw_render_context/src/libglfw_render_context/glfw_render_context.o
[OHOS ERROR] [4448/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/context.o
[OHOS ERROR] FAILED: clang_x64/obj/third_party/flutter/glfw/src/glfw/context.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -MMD -MF clang_x64/obj/third_party/flutter/glfw/src/glfw/context.o.d -DPREVIEW -DLINUX_PLATFORM -D_GLFW_X11 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/flutter/glfw/src -Iclang_x64/override/third_party -I../.. -Iclang_x64/gen -I../../third_party/flutter/glfw/include -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-sign-compare -Wno-missing-field-initializers -c ../../third_party/flutter/glfw/src/context.c -o clang_x64/obj/third_party/flutter/glfw/src/glfw/context.o
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/context.c:28:
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/internal.h:169:
[OHOS ERROR] ../../third_party/flutter/glfw/src/x11_platform.h:39:10: fatal error: 'X11/Xcursor/Xcursor.h' file not found
[OHOS ERROR] #include 
[OHOS ERROR]          ^~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] 1 error generated.
[OHOS ERROR] [4449/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/input.o
[OHOS ERROR] FAILED: clang_x64/obj/third_party/flutter/glfw/src/glfw/input.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -MMD -MF clang_x64/obj/third_party/flutter/glfw/src/glfw/input.o.d -DPREVIEW -DLINUX_PLATFORM -D_GLFW_X11 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/flutter/glfw/src -Iclang_x64/override/third_party -I../.. -Iclang_x64/gen -I../../third_party/flutter/glfw/include -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-sign-compare -Wno-missing-field-initializers -c ../../third_party/flutter/glfw/src/input.c -o clang_x64/obj/third_party/flutter/glfw/src/glfw/input.o
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/input.c:28:
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/internal.h:169:
[OHOS ERROR] ../../third_party/flutter/glfw/src/x11_platform.h:39:10: fatal error: 'X11/Xcursor/Xcursor.h' file not found
[OHOS ERROR] #include 
[OHOS ERROR]          ^~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] 1 error generated.
[OHOS ERROR] [4450/16776] CC clang_x64/obj/third_party/flutter/glfw/src/glfw/init.o
[OHOS ERROR] FAILED: clang_x64/obj/third_party/flutter/glfw/src/glfw/init.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -MMD -MF clang_x64/obj/third_party/flutter/glfw/src/glfw/init.o.d -DPREVIEW -DLINUX_PLATFORM -D_GLFW_X11 -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/flutter/glfw/src -Iclang_x64/override/third_party -I../.. -Iclang_x64/gen -I../../third_party/flutter/glfw/include -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-sign-compare -Wno-missing-field-initializers -c ../../third_party/flutter/glfw/src/init.c -o clang_x64/obj/third_party/flutter/glfw/src/glfw/init.o
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/init.c:28:
[OHOS ERROR] In file included from ../../third_party/flutter/glfw/src/internal.h:169:
[OHOS ERROR] ../../third_party/flutter/glfw/src/x11_platform.h:39:10: fatal error: 'X11/Xcursor/Xcursor.h' file not found
[OHOS ERROR] #include 
[OHOS ERROR]          ^~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] 1 error generated.
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/util/system_util.py", line 63, in exec_command
[OHOS ERROR]     raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /home/ph/OpenHarmony_Source/out/sdk/build.log
[OHOS ERROR] 
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR] 
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
[OHOS ERROR]     raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR] 
[OHOS ERROR] Code:      4000
[OHOS ERROR] 
[OHOS ERROR] Reason:    ninja phase failed
[OHOS ERROR] 
[OHOS ERROR] Solution:  Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs. 
[OHOS ERROR] 		Or you can try the following steps to solve this problem:
[OHOS ERROR] 		  1. cd to OHOS root path
[OHOS ERROR] 		  2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR] 		  3. repo sync
[OHOS ERROR] 		  4. repo forall -c 'git lfs pull'
[OHOS ERROR] 		  5. bash build/prebuilts_download.sh
[OHOS ERROR] 		  6. rebuild your product or component
[OHOS ERROR] 
[OHOS ERROR] 		If you still cannot solve this problem, you could post this problem on: 
[OHOS ERROR] 		  https://gitee.com/openharmony/build/issues
[OHOS ERROR] 
ohos-sdk build failed!

这次的错误集中在

[OHOS ERROR] ../../third_party/flutter/glfw/src/x11_platform.h:39:10: fatal error: 'X11/Xcursor/Xcursor.h' file not found
[OHOS ERROR] #include 
[OHOS ERROR]          ^~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] 1 error generated.

解决方法:

参见:OpenHarmony 4.0 Release 编译及报错_fatal error: 'x11/xcursor/xcursor.h' file not foun-CSDN博客

通过apt下载 libxt-dev、libx11-dev和xorg-dev,实际命令及结果分别如下:

$ sudo apt-get install libxt-dev
[sudo] password for ph: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libxt-dev is already the newest version (1:1.2.1-1).
libxt-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
$ sudo apt-get install libx11-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libx11-dev is already the newest version (2:1.7.5-1ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
$ sudo apt install xorg-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libbrotli-dev libdmx-dev libdmx1 libdrm-dev libfontconfig-dev libfontconfig1-dev libfontenc-dev libfreetype-dev libfreetype6-dev libfs-dev libfs6 libpciaccess-dev
  libpixman-1-dev libpng-dev libpng-tools libxaw7-dev libxcomposite-dev libxcursor-dev libxcvt-dev libxdamage-dev libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev
  libxinerama-dev libxkbfile-dev libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxtst-dev libxv-dev libxvmc-dev
  libxxf86dga-dev libxxf86vm-dev mesa-common-dev pkg-config uuid-dev xserver-xorg-dev
Suggested packages:
  freetype2-doc libxaw-doc libxext-doc
The following NEW packages will be installed:
  libbrotli-dev libdmx-dev libdmx1 libdrm-dev libfontconfig-dev libfontconfig1-dev libfontenc-dev libfreetype-dev libfreetype6-dev libfs-dev libfs6 libpciaccess-dev
  libpixman-1-dev libpng-dev libpng-tools libxaw7-dev libxcomposite-dev libxcursor-dev libxcvt-dev libxdamage-dev libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev
  libxinerama-dev libxkbfile-dev libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxtst-dev libxv-dev libxvmc-dev
  libxxf86dga-dev libxxf86vm-dev mesa-common-dev pkg-config uuid-dev xorg-dev xserver-xorg-dev
0 upgraded, 45 newly installed, 0 to remove and 5 not upgraded.
Need to get 5,527 kB of archives.
After this operation, 16.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libbrotli-dev amd64 1.0.9-2build6 [337 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libdmx1 amd64 1:1.1.4-2build2 [9,372 B]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libdmx-dev amd64 1:1.1.4-2build2 [33.5 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libpciaccess-dev amd64 0.16-3 [21.9 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libdrm-dev amd64 2.4.113-2~ubuntu0.22.04.1 [292 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libpng-dev amd64 1.6.37-3build5 [192 kB]
Get:7 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libfreetype-dev amd64 2.11.1+dfsg-1ubuntu0.2 [555 kB]
Get:8 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libfreetype6-dev amd64 2.11.1+dfsg-1ubuntu0.2 [8,290 B]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 uuid-dev amd64 2.37.2-4ubuntu3 [33.1 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfontconfig-dev amd64 2.13.1-4.2ubuntu5 [151 kB]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfontconfig1-dev amd64 2.13.1-4.2ubuntu5 [1,836 B]
Get:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfontenc-dev amd64 1:1.1.4-1build3 [15.4 kB]
Get:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfs6 amd64 2:1.0.8-1build2 [22.9 kB]
Get:15 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfs-dev amd64 2:1.0.8-1build2 [29.1 kB]
Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libpixman-1-dev amd64 0.40.0-1ubuntu0.22.04.1 [280 kB]
Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libpng-tools amd64 1.6.37-3build5 [28.7 kB]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxext-dev amd64 2:1.3.4-1build1 [84.7 kB]
Get:19 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxmu-headers all 2:1.1.3-3 [54.1 kB]
Get:20 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxmu-dev amd64 2:1.1.3-3 [54.6 kB]
Get:21 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libxpm-dev amd64 1:3.5.12-1ubuntu0.22.04.2 [90.7 kB]
Get:22 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxaw7-dev amd64 2:1.0.14-1 [253 kB]
Get:23 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxfixes-dev amd64 1:6.0.0-1 [12.2 kB]
Get:24 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxcomposite-dev amd64 1:0.4.5-1build2 [9,326 B]
Get:25 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxrender-dev amd64 1:0.9.10-1build4 [26.7 kB]
Get:26 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxcursor-dev amd64 1:1.2.0-2build4 [28.2 kB]
Get:27 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxcvt-dev amd64 0.1.1-3 [3,242 B]
Get:28 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxdamage-dev amd64 1:1.1.5-2build2 [5,264 B]
Get:29 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxfont-dev amd64 1:2.0.5-1build1 [128 kB]
Get:30 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxft-dev amd64 2.3.4-1 [52.4 kB]
Get:31 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxi-dev amd64 2:1.8-1build1 [193 kB]
Get:32 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxinerama-dev amd64 2:1.1.4-3 [8,104 B]
Get:33 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxkbfile-dev amd64 1:1.1.0-1build3 [85.0 kB]
Get:34 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxmuu-dev amd64 2:1.1.3-3 [7,926 B]
Get:35 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxrandr-dev amd64 2:1.5.2-1build1 [26.7 kB]
Get:36 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxres-dev amd64 2:1.2.1-1 [8,538 B]
Get:37 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxss-dev amd64 1:1.2.3-1build2 [12.3 kB]
Get:38 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxtst-dev amd64 2:1.2.3-1build4 [16.3 kB]
Get:39 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxv-dev amd64 2:1.0.11-1build2 [33.4 kB]
Get:40 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxvmc-dev amd64 2:1.0.12-2build2 [24.2 kB]
Get:41 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxxf86dga-dev amd64 2:1.1.5-0ubuntu3 [16.5 kB]
Get:42 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libxxf86vm-dev amd64 1:1.1.4-1build3 [13.9 kB]
Get:43 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 mesa-common-dev amd64 23.0.4-0ubuntu1~22.04.1 [2,010 kB]
Get:44 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 xserver-xorg-dev amd64 2:21.1.4-2ubuntu1.7~22.04.5 [203 kB]
Get:45 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 xorg-dev all 1:7.7+23ubuntu2 [4,262 B]
Fetched 5,527 kB in 1s (6,813 kB/s)    
Extracting templates from packages: 100%
Selecting previously unselected package libbrotli-dev:amd64.
(Reading database ... 213541 files and directories currently installed.)
Preparing to unpack .../00-libbrotli-dev_1.0.9-2build6_amd64.deb ...
Unpacking libbrotli-dev:amd64 (1.0.9-2build6) ...
Selecting previously unselected package libdmx1:amd64.
Preparing to unpack .../01-libdmx1_1%3a1.1.4-2build2_amd64.deb ...
Unpacking libdmx1:amd64 (1:1.1.4-2build2) ...
Selecting previously unselected package libdmx-dev:amd64.
Preparing to unpack .../02-libdmx-dev_1%3a1.1.4-2build2_amd64.deb ...
Unpacking libdmx-dev:amd64 (1:1.1.4-2build2) ...
Selecting previously unselected package libpciaccess-dev:amd64.
Preparing to unpack .../03-libpciaccess-dev_0.16-3_amd64.deb ...
Unpacking libpciaccess-dev:amd64 (0.16-3) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../04-libdrm-dev_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libpng-dev:amd64.
Preparing to unpack .../05-libpng-dev_1.6.37-3build5_amd64.deb ...
Unpacking libpng-dev:amd64 (1.6.37-3build5) ...
Selecting previously unselected package libfreetype-dev:amd64.
Preparing to unpack .../06-libfreetype-dev_2.11.1+dfsg-1ubuntu0.2_amd64.deb ...
Unpacking libfreetype-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Selecting previously unselected package libfreetype6-dev:amd64.
Preparing to unpack .../07-libfreetype6-dev_2.11.1+dfsg-1ubuntu0.2_amd64.deb ...
Unpacking libfreetype6-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Selecting previously unselected package uuid-dev:amd64.
Preparing to unpack .../08-uuid-dev_2.37.2-4ubuntu3_amd64.deb ...
Unpacking uuid-dev:amd64 (2.37.2-4ubuntu3) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../09-pkg-config_0.29.2-1ubuntu3_amd64.deb ...
Unpacking pkg-config (0.29.2-1ubuntu3) ...
Selecting previously unselected package libfontconfig-dev:amd64.
Preparing to unpack .../10-libfontconfig-dev_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig-dev:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libfontconfig1-dev:amd64.
Preparing to unpack .../11-libfontconfig1-dev_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig1-dev:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libfontenc-dev:amd64.
Preparing to unpack .../12-libfontenc-dev_1%3a1.1.4-1build3_amd64.deb ...
Unpacking libfontenc-dev:amd64 (1:1.1.4-1build3) ...
Selecting previously unselected package libfs6:amd64.
Preparing to unpack .../13-libfs6_2%3a1.0.8-1build2_amd64.deb ...
Unpacking libfs6:amd64 (2:1.0.8-1build2) ...
Selecting previously unselected package libfs-dev:amd64.
Preparing to unpack .../14-libfs-dev_2%3a1.0.8-1build2_amd64.deb ...
Unpacking libfs-dev:amd64 (2:1.0.8-1build2) ...
Selecting previously unselected package libpixman-1-dev:amd64.
Preparing to unpack .../15-libpixman-1-dev_0.40.0-1ubuntu0.22.04.1_amd64.deb ...
Unpacking libpixman-1-dev:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Selecting previously unselected package libpng-tools.
Preparing to unpack .../16-libpng-tools_1.6.37-3build5_amd64.deb ...
Unpacking libpng-tools (1.6.37-3build5) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../17-libxext-dev_2%3a1.3.4-1build1_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.4-1build1) ...
Selecting previously unselected package libxmu-headers.
Preparing to unpack .../18-libxmu-headers_2%3a1.1.3-3_all.deb ...
Unpacking libxmu-headers (2:1.1.3-3) ...
Selecting previously unselected package libxmu-dev:amd64.
Preparing to unpack .../19-libxmu-dev_2%3a1.1.3-3_amd64.deb ...
Unpacking libxmu-dev:amd64 (2:1.1.3-3) ...
Selecting previously unselected package libxpm-dev:amd64.
Preparing to unpack .../20-libxpm-dev_1%3a3.5.12-1ubuntu0.22.04.2_amd64.deb ...
Unpacking libxpm-dev:amd64 (1:3.5.12-1ubuntu0.22.04.2) ...
Selecting previously unselected package libxaw7-dev:amd64.
Preparing to unpack .../21-libxaw7-dev_2%3a1.0.14-1_amd64.deb ...
Unpacking libxaw7-dev:amd64 (2:1.0.14-1) ...
Selecting previously unselected package libxfixes-dev:amd64.
Preparing to unpack .../22-libxfixes-dev_1%3a6.0.0-1_amd64.deb ...
Unpacking libxfixes-dev:amd64 (1:6.0.0-1) ...
Selecting previously unselected package libxcomposite-dev:amd64.
Preparing to unpack .../23-libxcomposite-dev_1%3a0.4.5-1build2_amd64.deb ...
Unpacking libxcomposite-dev:amd64 (1:0.4.5-1build2) ...
Selecting previously unselected package libxrender-dev:amd64.
Preparing to unpack .../24-libxrender-dev_1%3a0.9.10-1build4_amd64.deb ...
Unpacking libxrender-dev:amd64 (1:0.9.10-1build4) ...
Selecting previously unselected package libxcursor-dev:amd64.
Preparing to unpack .../25-libxcursor-dev_1%3a1.2.0-2build4_amd64.deb ...
Unpacking libxcursor-dev:amd64 (1:1.2.0-2build4) ...
Selecting previously unselected package libxcvt-dev:amd64.
Preparing to unpack .../26-libxcvt-dev_0.1.1-3_amd64.deb ...
Unpacking libxcvt-dev:amd64 (0.1.1-3) ...
Selecting previously unselected package libxdamage-dev:amd64.
Preparing to unpack .../27-libxdamage-dev_1%3a1.1.5-2build2_amd64.deb ...
Unpacking libxdamage-dev:amd64 (1:1.1.5-2build2) ...
Selecting previously unselected package libxfont-dev.
Preparing to unpack .../28-libxfont-dev_1%3a2.0.5-1build1_amd64.deb ...
Unpacking libxfont-dev (1:2.0.5-1build1) ...
Selecting previously unselected package libxft-dev:amd64.
Preparing to unpack .../29-libxft-dev_2.3.4-1_amd64.deb ...
Unpacking libxft-dev:amd64 (2.3.4-1) ...
Selecting previously unselected package libxi-dev:amd64.
Preparing to unpack .../30-libxi-dev_2%3a1.8-1build1_amd64.deb ...
Unpacking libxi-dev:amd64 (2:1.8-1build1) ...
Selecting previously unselected package libxinerama-dev:amd64.
Preparing to unpack .../31-libxinerama-dev_2%3a1.1.4-3_amd64.deb ...
Unpacking libxinerama-dev:amd64 (2:1.1.4-3) ...
Selecting previously unselected package libxkbfile-dev:amd64.
Preparing to unpack .../32-libxkbfile-dev_1%3a1.1.0-1build3_amd64.deb ...
Unpacking libxkbfile-dev:amd64 (1:1.1.0-1build3) ...
Selecting previously unselected package libxmuu-dev:amd64.
Preparing to unpack .../33-libxmuu-dev_2%3a1.1.3-3_amd64.deb ...
Unpacking libxmuu-dev:amd64 (2:1.1.3-3) ...
Selecting previously unselected package libxrandr-dev:amd64.
Preparing to unpack .../34-libxrandr-dev_2%3a1.5.2-1build1_amd64.deb ...
Unpacking libxrandr-dev:amd64 (2:1.5.2-1build1) ...
Selecting previously unselected package libxres-dev:amd64.
Preparing to unpack .../35-libxres-dev_2%3a1.2.1-1_amd64.deb ...
Unpacking libxres-dev:amd64 (2:1.2.1-1) ...
Selecting previously unselected package libxss-dev:amd64.
Preparing to unpack .../36-libxss-dev_1%3a1.2.3-1build2_amd64.deb ...
Unpacking libxss-dev:amd64 (1:1.2.3-1build2) ...
Selecting previously unselected package libxtst-dev:amd64.
Preparing to unpack .../37-libxtst-dev_2%3a1.2.3-1build4_amd64.deb ...
Unpacking libxtst-dev:amd64 (2:1.2.3-1build4) ...
Selecting previously unselected package libxv-dev:amd64.
Preparing to unpack .../38-libxv-dev_2%3a1.0.11-1build2_amd64.deb ...
Unpacking libxv-dev:amd64 (2:1.0.11-1build2) ...
Selecting previously unselected package libxvmc-dev:amd64.
Preparing to unpack .../39-libxvmc-dev_2%3a1.0.12-2build2_amd64.deb ...
Unpacking libxvmc-dev:amd64 (2:1.0.12-2build2) ...
Selecting previously unselected package libxxf86dga-dev:amd64.
Preparing to unpack .../40-libxxf86dga-dev_2%3a1.1.5-0ubuntu3_amd64.deb ...
Unpacking libxxf86dga-dev:amd64 (2:1.1.5-0ubuntu3) ...
Selecting previously unselected package libxxf86vm-dev:amd64.
Preparing to unpack .../41-libxxf86vm-dev_1%3a1.1.4-1build3_amd64.deb ...
Unpacking libxxf86vm-dev:amd64 (1:1.1.4-1build3) ...
Selecting previously unselected package mesa-common-dev:amd64.
Preparing to unpack .../42-mesa-common-dev_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking mesa-common-dev:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package xserver-xorg-dev.
Preparing to unpack .../43-xserver-xorg-dev_2%3a21.1.4-2ubuntu1.7~22.04.5_amd64.deb ...
Unpacking xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.5) ...
Selecting previously unselected package xorg-dev.
Preparing to unpack .../44-xorg-dev_1%3a7.7+23ubuntu2_all.deb ...
Unpacking xorg-dev (1:7.7+23ubuntu2) ...
Setting up libxmu-headers (2:1.1.3-3) ...
Setting up libpixman-1-dev:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Setting up libpciaccess-dev:amd64 (0.16-3) ...
Setting up libxcvt-dev:amd64 (0.1.1-3) ...
Setting up libpng-tools (1.6.37-3build5) ...
Setting up libxxf86dga-dev:amd64 (2:1.1.5-0ubuntu3) ...
Setting up libxxf86vm-dev:amd64 (1:1.1.4-1build3) ...
Setting up libpng-dev:amd64 (1.6.37-3build5) ...
Setting up libfontenc-dev:amd64 (1:1.1.4-1build3) ...
Setting up libxfixes-dev:amd64 (1:6.0.0-1) ...
Setting up libdmx1:amd64 (1:1.1.4-2build2) ...
Setting up libdmx-dev:amd64 (1:1.1.4-2build2) ...
Setting up uuid-dev:amd64 (2.37.2-4ubuntu3) ...
Setting up libxpm-dev:amd64 (1:3.5.12-1ubuntu0.22.04.2) ...
Setting up pkg-config (0.29.2-1ubuntu3) ...
Setting up libxext-dev:amd64 (2:1.3.4-1build1) ...
Setting up libfs6:amd64 (2:1.0.8-1build2) ...
Setting up libxres-dev:amd64 (2:1.2.1-1) ...
Setting up libxi-dev:amd64 (2:1.8-1build1) ...
Setting up libxmuu-dev:amd64 (2:1.1.3-3) ...
Setting up libxrender-dev:amd64 (1:0.9.10-1build4) ...
Setting up libbrotli-dev:amd64 (1.0.9-2build6) ...
Setting up libxtst-dev:amd64 (2:1.2.3-1build4) ...
Setting up libxkbfile-dev:amd64 (1:1.1.0-1build3) ...
Setting up libxdamage-dev:amd64 (1:1.1.5-2build2) ...
Setting up libdrm-dev:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libxcomposite-dev:amd64 (1:0.4.5-1build2) ...
Setting up libxcursor-dev:amd64 (1:1.2.0-2build4) ...
Setting up libxmu-dev:amd64 (2:1.1.3-3) ...
Setting up libxss-dev:amd64 (1:1.2.3-1build2) ...
Setting up libfreetype-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Setting up libxv-dev:amd64 (2:1.0.11-1build2) ...
Setting up libxrandr-dev:amd64 (2:1.5.2-1build1) ...
Setting up libxinerama-dev:amd64 (2:1.1.4-3) ...
Setting up libfs-dev:amd64 (2:1.0.8-1build2) ...
Setting up libxaw7-dev:amd64 (2:1.0.14-1) ...
Setting up mesa-common-dev:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libxvmc-dev:amd64 (2:1.0.12-2build2) ...
Setting up libfontconfig-dev:amd64 (2.13.1-4.2ubuntu5) ...
Setting up libxfont-dev (1:2.0.5-1build1) ...
Setting up libfreetype6-dev:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Setting up libxft-dev:amd64 (2.3.4-1) ...
Setting up libfontconfig1-dev:amd64 (2.13.1-4.2ubuntu5) ...
Setting up xserver-xorg-dev (2:21.1.4-2ubuntu1.7~22.04.5) ...
Setting up xorg-dev (1:7.7+23ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
Processing triggers for man-db (2.10.2-1) ...

安装之后,查看一下是否存在,如下:

$ ls /usr/include/X11/Xcursor/Xcursor.h 
/usr/include/X11/Xcursor/Xcursor.h

再次执行命令:

./build.sh --product-name dayu210 --ccache

这一次实际命令及结果如下:

$ sudo ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 09:59:19
--product-name dayu210 --ccache
Current Node.js version is v14.21.1
Node.js version check passed
lockfile=false
start set ohpm
init ohpm
npm WARN @ohos/[email protected] No description
npm WARN @ohos/[email protected] No repository field.

up to date in 1.114s

10 packages are looking for funding
  run `npm fund` for details

ohpm version is 1.1.2
ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/"
ohpm DEBUG: config set "strict_ssl" "false"
ohpm DEBUG: config set "log_level" "debug"
remove /root/.hvigor
~/.hvigor/wrapper/tools /home/ph/OpenHarmony_Source
install pnpm
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN tools No description
npm WARN tools No repository field.
npm WARN tools No license field.

added 1 package in 1.583s

1 package is looking for funding
  run `npm fund` for details

/home/ph/OpenHarmony_Source
start build ohos-sdk
/home/ph/OpenHarmony_Source /home/ph/OpenHarmony_Source
building the latest ohos-sdk...
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] generated build prop info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/build.prop
[OHOS INFO] generated build config info to /home/ph/OpenHarmony_Source/out/preloader/ohos-sdk/build_config.json
……

在笔者电脑上经过了将近7个小时的编译,结果如下:

……
[OHOS INFO] [12943/62293] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [12944/62293] ACTION //drivers/peripheral/codec/image/jpeg:libcodec_jpeg_driver__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [12945/62293] ACTION //drivers/peripheral/codec/image/jpeg:libcodec_jpeg_driver__notice(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [12946/62293] ACTION //drivers/peripheral/display/buffer/hdi_service:liballocator_driver_1.0__check(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] [12943/62293] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux 
[OHOS ERROR] /usr/bin/env ../../device/board/hihope/dayu210/kernel/build_kernel.sh ../../kernel/linux/linux-5.10 /home/ph/OpenHarmony_Source/out/rk3588/packages/phone/images /home/ph/OpenHarmony_Source/device/board/hihope/dayu210 vendor/hihope/dayu210 /home/ph/OpenHarmony_Source HiHope rk3588 hihope enable_ramdisk
[OHOS ERROR] /home/ph/OpenHarmony_Source/kernel/linux/linux-5.10 /home/ph/OpenHarmony_Source/out/rk3588
[OHOS ERROR] cp kernel source
[OHOS ERROR] HDF patch
[OHOS ERROR] patching file arch/arm64/kernel/vmlinux.lds.S
[OHOS ERROR] Hunk #1 succeeded at 201 with fuzz 2.
[OHOS ERROR] patching file drivers/Kconfig
[OHOS ERROR] patching file drivers/Makefile
[OHOS ERROR] Hunk #1 succeeded at 192 with fuzz 1 (offset 1 line).
[OHOS ERROR] patching file drivers/hdf/Makefile
[OHOS ERROR] patching file drivers/hid/Makefile
[OHOS ERROR] patching file drivers/hid/hid-core.c
[OHOS ERROR] Hunk #2 succeeded at 1529 (offset 3 lines).
[OHOS ERROR] Hunk #3 succeeded at 1940 (offset 3 lines).
[OHOS ERROR] Hunk #4 succeeded at 2114 (offset 3 lines).
[OHOS ERROR] Hunk #5 succeeded at 2132 (offset 3 lines).
[OHOS ERROR] Hunk #6 succeeded at 2220 (offset 3 lines).
[OHOS ERROR] patching file drivers/hid/hid-input.c
[OHOS ERROR] Hunk #2 succeeded at 1433 (offset 13 lines).
[OHOS ERROR] Hunk #3 succeeded at 1892 (offset 13 lines).
[OHOS ERROR] Hunk #4 succeeded at 2013 (offset 13 lines).
[OHOS ERROR] patching file drivers/input/misc/Makefile
[OHOS ERROR] patching file drivers/input/misc/rk805-pwrkey.c
[OHOS ERROR] patching file drivers/input/mousedev.c
[OHOS ERROR] patching file drivers/usb/core/notify.c
[OHOS ERROR] patching file include/linux/hid.h
[OHOS ERROR] Hunk #1 succeeded at 624 (offset 2 lines).
[OHOS ERROR] patching file include/linux/usb.h
[OHOS ERROR] Hunk #1 succeeded at 2024 (offset 5 lines).
[OHOS ERROR] /home/ph/OpenHarmony_Source/out/kernel/src_tmp/linux-5.10
[OHOS ERROR] kernel patch
[OHOS ERROR] patching file Makefile
[OHOS ERROR] patching file arch/arm64/Makefile
[OHOS ERROR] patching file arch/arm64/boot/Makefile
[OHOS ERROR] patching file arch/arm64/kernel/cpuinfo.c
[OHOS ERROR] patching file drivers/clk/rockchip/Kconfig
[OHOS ERROR] patching file drivers/clk/rockchip/clk-cpu.c
[OHOS ERROR] patching file drivers/clk/rockchip/clk-ddr.c
[OHOS ERROR] patching file drivers/clk/rockchip/clk-half-divider.c
[OHOS ERROR] patching file drivers/clk/rockchip/clk-pll.c
[OHOS ERROR] patching file drivers/clk/rockchip/clk.c
[OHOS ERROR] patching file drivers/clk/rockchip/clk.h
[OHOS ERROR] patching file drivers/clocksource/Kconfig
[OHOS ERROR] patching file drivers/clocksource/timer-rockchip.c
[OHOS ERROR] patching file drivers/cpufreq/cpufreq-dt-platdev.c
[OHOS ERROR] patching file drivers/cpufreq/cpufreq-dt.c
[OHOS ERROR] patching file drivers/cpufreq/cpufreq.c
[OHOS ERROR] patching file drivers/cpufreq/cpufreq_userspace.c
[OHOS ERROR] patching file drivers/cpuidle/driver.c
[OHOS ERROR] patching file drivers/cpuidle/governor.c
[OHOS ERROR] patching file drivers/devfreq/devfreq.c
[OHOS ERROR] patching file drivers/devfreq/event/rockchip-dfi.c
[OHOS ERROR] patching file drivers/dma-buf/Kconfig
[OHOS ERROR] patching file drivers/dma-buf/Makefile
[OHOS ERROR] patching file drivers/dma-buf/dma-buf-sysfs-stats.c
[OHOS ERROR] patching file drivers/dma-buf/dma-buf.c
[OHOS ERROR] patching file drivers/dma-buf/dma-fence.c
[OHOS ERROR] patching file drivers/dma-buf/dma-heap.c
[OHOS ERROR] patching file drivers/dma-buf/heaps/Kconfig
[OHOS ERROR] patching file drivers/dma-buf/heaps/Makefile
[OHOS ERROR] patching file drivers/dma-buf/heaps/cma_heap.c
[OHOS ERROR] patching file drivers/dma-buf/heaps/system_heap.c
[OHOS ERROR] patching file drivers/dma-buf/sw_sync.c
[OHOS ERROR] patching file drivers/dma-buf/sync_debug.h
[OHOS ERROR] patching file drivers/gpio/gpiolib-of.c
[OHOS ERROR] patching file drivers/gpio/gpiolib-of.h
[OHOS ERROR] patching file drivers/gpu/drm/Kconfig
[OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
[OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
[OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c
[OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h
[OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi-audio.h
[OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c
[OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
[OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
[OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_helper.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_state_helper.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_uapi.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_auth.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_color_mgmt.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_debugfs.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_edid.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_file.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_fourcc.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_ioctl.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_lease.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_mipi_dsi.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_mode_config.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_modes.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_prime.c
[OHOS ERROR] patching file drivers/gpu/drm/drm_vblank.c
[OHOS ERROR] patching file drivers/gpu/drm/panel/panel-simple.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/cdn-dp-core.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/cdn-dp-core.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/inno_hdmi.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_drv.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_drv.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fb.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fb.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_gem.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_gem.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_vop.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_vop.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_lvds.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_rgb.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_rgb.h
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_vop_reg.c
[OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_vop_reg.h
[OHOS ERROR] patching file drivers/i2c/busses/i2c-rk3x.c
[OHOS ERROR] patching file drivers/i2c/i2c-core-base.c
[OHOS ERROR] patching file drivers/iio/adc/rockchip_saradc.c
[OHOS ERROR] patching file drivers/input/Makefile
[OHOS ERROR] patching file drivers/input/misc/Kconfig
[OHOS ERROR] patching file drivers/input/misc/rk805-pwrkey.c
[OHOS ERROR] Hunk #1 succeeded at 13 with fuzz 2.
[OHOS ERROR] Hunk #2 succeeded at 60 (offset 20 lines).
[OHOS ERROR] patching file drivers/iommu/Kconfig
[OHOS ERROR] patching file drivers/iommu/dma-iommu.c
[OHOS ERROR] patching file drivers/iommu/iommu.c
[OHOS ERROR] patching file drivers/iommu/iova.c
[OHOS ERROR] patching file drivers/iommu/rockchip-iommu.c
[OHOS ERROR] patching file drivers/irqchip/irq-gic-v3-its.c
[OHOS ERROR] patching file drivers/irqchip/irq-gic-v3.c
[OHOS ERROR] patching file drivers/irqchip/irq-gic-v4.c
[OHOS ERROR] patching file drivers/media/platform/Kconfig
[OHOS ERROR] patching file drivers/media/platform/Makefile
[OHOS ERROR] patching file drivers/media/usb/uvc/uvc_driver.c
[OHOS ERROR] patching file drivers/media/v4l2-core/v4l2-async.c
[OHOS ERROR] patching file drivers/mfd/rk808.c
[OHOS ERROR] patching file drivers/mmc/core/block.c
[OHOS ERROR] patching file drivers/mmc/core/block.h
[OHOS ERROR] patching file drivers/mmc/core/core.c
[OHOS ERROR] patching file drivers/mmc/core/core.h
[OHOS ERROR] patching file drivers/mmc/core/mmc.c
[OHOS ERROR] patching file drivers/mmc/core/mmc_ops.c
[OHOS ERROR] patching file drivers/mmc/core/queue.c
[OHOS ERROR] patching file drivers/mmc/core/sd.c
[OHOS ERROR] patching file drivers/mmc/core/sdio.c
[OHOS ERROR] patching file drivers/mmc/core/slot-gpio.c
[OHOS ERROR] patching file drivers/mmc/host/Kconfig
[OHOS ERROR] patching file drivers/mmc/host/Makefile
[OHOS ERROR] patching file drivers/mmc/host/cqhci.h
[OHOS ERROR] patching file drivers/mmc/host/dw_mmc-rockchip.c
[OHOS ERROR] patching file drivers/mmc/host/dw_mmc.c
[OHOS ERROR] patching file drivers/mmc/host/dw_mmc.h
[OHOS ERROR] patching file drivers/mmc/host/sdhci-of-dwcmshc.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/hwif.h
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
[OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
[OHOS ERROR] patching file drivers/nvmem/core.c
[OHOS ERROR] patching file drivers/nvmem/rockchip-efuse.c
[OHOS ERROR] patching file drivers/nvmem/rockchip-otp.c
[OHOS ERROR] patching file drivers/opp/debugfs.c
[OHOS ERROR] patching file drivers/opp/of.c
[OHOS ERROR] patching file drivers/pci/controller/Makefile
[OHOS ERROR] patching file drivers/pci/controller/dwc/pcie-designware.c
[OHOS ERROR] patching file drivers/pci/controller/dwc/pcie-designware.h
[OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip-host.c
[OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip.c
[OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip.h
[OHOS ERROR] patching file drivers/phy/rockchip/Makefile
[OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
[OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-inno-usb2.c
[OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-pcie.c
[OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-typec.c
[OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-usb.c
[OHOS ERROR] patching file drivers/pinctrl/Kconfig
[OHOS ERROR] patching file drivers/pinctrl/pinctrl-rk805.c
[OHOS ERROR] patching file drivers/pinctrl/pinctrl-rockchip.c
[OHOS ERROR] patching file drivers/power/reset/reboot-mode.c
[OHOS ERROR] patching file drivers/power/reset/syscon-reboot-mode.c
[OHOS ERROR] patching file drivers/power/supply/power_supply_core.c
[OHOS ERROR] patching file drivers/power/supply/power_supply_sysfs.c
[OHOS ERROR] patching file drivers/pwm/pwm-rockchip.c
[OHOS ERROR] patching file drivers/pwm/sysfs.c
[OHOS ERROR] patching file drivers/soc/rockchip/grf.c
[OHOS ERROR] patching file drivers/soc/rockchip/io-domain.c
[OHOS ERROR] patching file drivers/soc/rockchip/pm_domains.c
[OHOS ERROR] patching file drivers/spi/spi-rockchip.c
[OHOS ERROR] patching file drivers/spi/spidev.c
[OHOS ERROR] patching file drivers/staging/android/Makefile
[OHOS ERROR] patching file drivers/thermal/rockchip_thermal.c
[OHOS ERROR] patching file drivers/tty/serial/8250/8250.h
[OHOS ERROR] patching file drivers/tty/serial/8250/8250_core.c
[OHOS ERROR] patching file drivers/tty/serial/8250/8250_dma.c
[OHOS ERROR] patching file drivers/tty/serial/8250/8250_dw.c
[OHOS ERROR] patching file drivers/tty/serial/8250/8250_dwlib.c
[OHOS ERROR] patching file drivers/tty/serial/8250/8250_port.c
[OHOS ERROR] patching file drivers/usb/class/cdc-acm.c
[OHOS ERROR] patching file drivers/usb/class/cdc-acm.h
[OHOS ERROR] patching file drivers/usb/common/Kconfig
[OHOS ERROR] patching file drivers/usb/common/debug.c
[OHOS ERROR] patching file drivers/usb/core/config.c
[OHOS ERROR] patching file drivers/usb/core/driver.c
[OHOS ERROR] patching file drivers/usb/core/hcd.c
[OHOS ERROR] patching file drivers/usb/core/hub.c
[OHOS ERROR] patching file drivers/usb/core/quirks.c
[OHOS ERROR] patching file drivers/usb/dwc2/core.h
[OHOS ERROR] patching file drivers/usb/dwc2/gadget.c
[OHOS ERROR] patching file drivers/usb/dwc2/hcd.c
[OHOS ERROR] patching file drivers/usb/dwc2/hcd_intr.c
[OHOS ERROR] patching file drivers/usb/dwc2/hcd_queue.c
[OHOS ERROR] patching file drivers/usb/dwc2/params.c
[OHOS ERROR] patching file drivers/usb/dwc2/platform.c
[OHOS ERROR] patching file drivers/usb/dwc3/core.c
[OHOS ERROR] patching file drivers/usb/dwc3/core.h
[OHOS ERROR] patching file drivers/usb/dwc3/debug.h
[OHOS ERROR] patching file drivers/usb/dwc3/debugfs.c
[OHOS ERROR] patching file drivers/usb/dwc3/drd.c
[OHOS ERROR] patching file drivers/usb/dwc3/ep0.c
[OHOS ERROR] patching file drivers/usb/dwc3/gadget.c
[OHOS ERROR] patching file drivers/usb/dwc3/gadget.h
[OHOS ERROR] patching file drivers/usb/dwc3/trace.c
[OHOS ERROR] patching file drivers/usb/gadget/composite.c
[OHOS ERROR] patching file drivers/usb/gadget/configfs.c
[OHOS ERROR] patching file drivers/usb/gadget/epautoconf.c
[OHOS ERROR] patching file drivers/usb/gadget/function/f_fs.c
[OHOS ERROR] patching file drivers/usb/gadget/function/f_mass_storage.c
[OHOS ERROR] patching file drivers/usb/gadget/function/f_uvc.c
[OHOS ERROR] patching file drivers/usb/gadget/function/u_audio.h
[OHOS ERROR] patching file drivers/usb/gadget/function/u_ether.h
[OHOS ERROR] patching file drivers/usb/gadget/function/u_ether_configfs.h
[OHOS ERROR] patching file drivers/usb/gadget/function/u_serial.c
[OHOS ERROR] patching file drivers/usb/gadget/function/u_uac2.h
[OHOS ERROR] patching file drivers/usb/gadget/function/u_uvc.h
[OHOS ERROR] patching file drivers/usb/gadget/function/uvc.h
[OHOS ERROR] patching file drivers/usb/gadget/function/uvc_configfs.c
[OHOS ERROR] patching file drivers/usb/gadget/function/uvc_queue.c
[OHOS ERROR] patching file drivers/usb/gadget/function/uvc_v4l2.c
[OHOS ERROR] patching file drivers/usb/gadget/function/uvc_video.c
[OHOS ERROR] patching file drivers/usb/gadget/udc/Kconfig
[OHOS ERROR] patching file drivers/usb/gadget/udc/core.c
[OHOS ERROR] patching file drivers/usb/gadget/udc/trace.c
[OHOS ERROR] patching file drivers/usb/host/Makefile
[OHOS ERROR] patching file drivers/usb/host/ehci-platform.c
[OHOS ERROR] patching file drivers/usb/host/ehci.h
[OHOS ERROR] patching file drivers/usb/host/fotg210.h
[OHOS ERROR] patching file drivers/usb/host/ohci-platform.c
[OHOS ERROR] patching file drivers/usb/host/xhci-hub.c
[OHOS ERROR] patching file drivers/usb/host/xhci-mem.c
[OHOS ERROR] patching file drivers/usb/host/xhci-pci.c
[OHOS ERROR] patching file drivers/usb/host/xhci-plat.c
[OHOS ERROR] patching file drivers/usb/host/xhci-plat.h
[OHOS ERROR] patching file drivers/usb/host/xhci-ring.c
[OHOS ERROR] patching file drivers/usb/host/xhci-trace.c
[OHOS ERROR] patching file drivers/usb/host/xhci.c
[OHOS ERROR] patching file drivers/usb/host/xhci.h
[OHOS ERROR] patching file drivers/usb/serial/cp210x.c
[OHOS ERROR] patching file drivers/usb/serial/option.c
[OHOS ERROR] patching file drivers/usb/serial/qcserial.c
[OHOS ERROR] patching file drivers/usb/storage/scsiglue.c
[OHOS ERROR] patching file drivers/usb/storage/unusual_devs.h
[OHOS ERROR] patching file drivers/usb/storage/unusual_uas.h
[OHOS ERROR] patching file drivers/usb/typec/altmodes/Kconfig
[OHOS ERROR] patching file drivers/usb/typec/altmodes/displayport.c
[OHOS ERROR] patching file drivers/usb/typec/class.c
[OHOS ERROR] patching file drivers/usb/typec/ucsi/Kconfig
[OHOS ERROR] patching file drivers/video/backlight/pwm_bl.c
[OHOS ERROR] patching file drivers/video/fbdev/kyro/fbdev.c
[OHOS ERROR] patching file include/drm/bridge/analogix_dp.h
[OHOS ERROR] patching file include/drm/bridge/dw_hdmi.h
[OHOS ERROR] patching file include/drm/bridge/dw_mipi_dsi.h
[OHOS ERROR] patching file include/drm/drm_connector.h
[OHOS ERROR] patching file include/drm/drm_crtc.h
[OHOS ERROR] patching file include/drm/drm_drv.h
[OHOS ERROR] patching file include/drm/drm_edid.h
[OHOS ERROR] patching file include/drm/drm_file.h
[OHOS ERROR] patching file include/drm/drm_mipi_dsi.h
[OHOS ERROR] patching file include/drm/drm_mode_config.h
[OHOS ERROR] patching file include/drm/drm_mode_object.h
[OHOS ERROR] patching file include/drm/drm_prime.h
[OHOS ERROR] patching file include/dt-bindings/soc/rockchip,boot-mode.h
[OHOS ERROR] patching file include/linux/clk-provider.h
[OHOS ERROR] patching file include/linux/dma-buf.h
[OHOS ERROR] patching file include/linux/dma-fence.h
[OHOS ERROR] patching file include/linux/dma-heap.h
[OHOS ERROR] patching file include/linux/dma-iommu.h
[OHOS ERROR] patching file include/linux/dma-mapping.h
[OHOS ERROR] patching file include/linux/energy_model.h
[OHOS ERROR] patching file include/linux/extcon.h
[OHOS ERROR] patching file include/linux/freezer.h
[OHOS ERROR] patching file include/linux/iommu.h
[OHOS ERROR] patching file include/linux/iova.h
[OHOS ERROR] patching file include/linux/irqchip/arm-gic-v3.h
[OHOS ERROR] patching file include/linux/irqchip/arm-gic-v4.h
[OHOS ERROR] patching file include/linux/mfd/rk808.h
[OHOS ERROR] patching file include/linux/mmc/core.h
[OHOS ERROR] patching file include/linux/mmc/host.h
[OHOS ERROR] patching file include/linux/mmc/mmc.h
[OHOS ERROR] patching file include/linux/mmc/pm.h
[OHOS ERROR] patching file include/linux/mmu_context.h
[OHOS ERROR] patching file include/linux/power_supply.h
[OHOS ERROR] patching file include/linux/pwm.h
[OHOS ERROR] patching file include/linux/reboot-mode.h
[OHOS ERROR] patching file include/linux/reboot.h
[OHOS ERROR] patching file include/linux/sched.h
[OHOS ERROR] patching file include/linux/stmmac.h
[OHOS ERROR] patching file include/linux/usb/composite.h
[OHOS ERROR] patching file include/linux/usb/gadget.h
[OHOS ERROR] patching file include/linux/usb/hcd.h
[OHOS ERROR] patching file include/linux/usb/otg.h
[OHOS ERROR] patching file include/linux/usb/pd.h
[OHOS ERROR] patching file include/linux/usb/pd_ext_sdb.h
[OHOS ERROR] patching file include/linux/usb/pd_vdo.h
[OHOS ERROR] patching file include/linux/usb/phy.h
[OHOS ERROR] patching file include/linux/usb/quirks.h
[OHOS ERROR] patching file include/linux/usb/tcpm.h
[OHOS ERROR] patching file include/linux/usb/typec.h
[OHOS ERROR] patching file include/linux/usb/typec_altmode.h
[OHOS ERROR] patching file include/linux/usb/typec_tbt.h
[OHOS ERROR] patching file include/linux/usb/usbnet.h
[OHOS ERROR] patching file include/media/v4l2-async.h
[OHOS ERROR] patching file include/soc/rockchip/rockchip_sip.h
[OHOS ERROR] patching file include/sound/hdmi-codec.h
[OHOS ERROR] patching file include/sound/hwdep.h
[OHOS ERROR] patching file include/sound/pcm_iec958.h
[OHOS ERROR] patching file include/uapi/drm/drm_fourcc.h
[OHOS ERROR] patching file include/uapi/linux/dma-buf.h
[OHOS ERROR] patching file include/uapi/linux/media-bus-format.h
[OHOS ERROR] patching file include/uapi/linux/serial_reg.h
[OHOS ERROR] patching file include/uapi/linux/usb/g_uvc.h
[OHOS ERROR] patching file include/uapi/linux/usb/video.h
[OHOS ERROR] patching file include/uapi/linux/v4l2-controls.h
[OHOS ERROR] patching file include/uapi/linux/videodev2.h
[OHOS ERROR] patching file init/Kconfig
[OHOS ERROR] patching file init/initramfs.c
[OHOS ERROR] patching file init/main.c
[OHOS ERROR] patching file ipc/msg.c
[OHOS ERROR] patching file ipc/namespace.c
[OHOS ERROR] patching file ipc/sem.c
[OHOS ERROR] patching file ipc/shm.c
[OHOS ERROR] patching file ipc/util.c
[OHOS ERROR] patching file kernel/cgroup/legacy_freezer.c
[OHOS ERROR] patching file kernel/cpu.c
[OHOS ERROR] patching file kernel/irq/generic-chip.c
[OHOS ERROR] patching file kernel/power/Makefile
[OHOS ERROR] patching file kernel/power/energy_model.c
[OHOS ERROR] patching file kernel/power/power.h
[OHOS ERROR] patching file kernel/power/process.c
[OHOS ERROR] patching file kernel/power/suspend.c
[OHOS ERROR] patching file kernel/reboot.c
[OHOS ERROR] patching file kernel/sched/core.c
[OHOS ERROR] patching file kernel/sched/fair.c
[OHOS ERROR] patching file kernel/sched/loadavg.c
[OHOS ERROR] patching file kernel/sched/pelt.c
[OHOS ERROR] patching file kernel/sched/rt.c
[OHOS ERROR] patching file kernel/sched/sched-pelt.h
[OHOS ERROR] patching file kernel/sched/sched.h
[OHOS ERROR] patching file kernel/sched/topology.c
[OHOS ERROR] patching file kernel/sched/wait.c
[OHOS ERROR] patching file mm/memblock.c
[OHOS ERROR] patching file net/bluetooth/l2cap_sock.c
[OHOS ERROR] patching file net/bluetooth/sco.c
[OHOS ERROR] patching file scripts/Makefile.lib
[OHOS ERROR] patching file scripts/kconfig/parser.y
[OHOS ERROR] patching file security/selinux/hooks.c
[OHOS ERROR] patching file security/selinux/ss/avtab.h
[OHOS ERROR] patching file security/selinux/ss/context.h
[OHOS ERROR] patching file sound/soc/rockchip/Kconfig
[OHOS ERROR] patching file sound/soc/rockchip/Makefile
[OHOS ERROR] patching file sound/soc/rockchip/rockchip_i2s.h
[OHOS ERROR] patching file sound/soc/rockchip/rockchip_pdm.h
[OHOS ERROR]   HOSTCC  scripts/basic/fixdep
[OHOS ERROR]   HOSTCC  scripts/kconfig/conf.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/confdata.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/expr.o
[OHOS ERROR]   LEX     scripts/kconfig/lexer.lex.c
[OHOS ERROR]   YACC    scripts/kconfig/parser.tab.[ch]
[OHOS ERROR]   HOSTCC  scripts/kconfig/lexer.lex.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/parser.tab.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/preprocess.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/symbol.o
[OHOS ERROR]   HOSTCC  scripts/kconfig/util.o
[OHOS ERROR]   HOSTLD  scripts/kconfig/conf
[OHOS ERROR] drivers/hdf/khdf/model/audio/Kconfig:96:warning: ignoring type redefinition of 'DRM_DW_HDMI_I2S_AUDIO' from 'tristate' to 'bool'
[OHOS ERROR] drivers/hdf/khdf/model/network/wifi/bus/Kconfig:25:warning: defaults for choice values not supported
[OHOS ERROR] drivers/hdf/khdf/model/network/wifi/bus/Kconfig:32:warning: defaults for choice values not supported
[OHOS ERROR] #
[OHOS ERROR] # configuration written to .config
[OHOS ERROR] #
[OHOS ERROR]   HOSTCC  scripts/dtc/dtc.o
[OHOS ERROR]   HOSTCC  scripts/dtc/flattree.o
[OHOS ERROR]   HOSTCC  scripts/dtc/fstree.o
[OHOS ERROR]   HOSTCC  scripts/dtc/data.o
[OHOS ERROR]   HOSTCC  scripts/dtc/livetree.o
[OHOS ERROR]   HOSTCC  scripts/dtc/treesource.o
[OHOS ERROR]   UPD     include/config/kernel.release
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/errno.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/ioctl.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/ioctls.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/ipcbuf.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/msgbuf.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/poll.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/resource.h
[OHOS ERROR]   UPD     include/generated/uapi/linux/version.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/sembuf.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/shmbuf.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/siginfo.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/socket.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/sockios.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/stat.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/swab.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/termbits.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/termios.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/uapi/asm/types.h
[OHOS ERROR]   HOSTCC  scripts/dtc/srcpos.o
[OHOS ERROR]   HOSTCC  scripts/dtc/checks.o
[OHOS ERROR]   UPD     include/generated/utsrelease.h
[OHOS ERROR]   HOSTCC  scripts/dtc/util.o
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/early_ioremap.h
[OHOS ERROR]   LEX     scripts/dtc/dtc-lexer.lex.c
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/mcs_spinlock.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/qrwlock.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/qspinlock.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/set_memory.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/user.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/bugs.h
[OHOS ERROR]   YACC    scripts/dtc/dtc-parser.tab.[ch]
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/delay.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/div64.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/dma-mapping.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/dma.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/emergency-restart.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/hw_irq.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/irq_regs.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/kdebug.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/kmap_types.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/local.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/local64.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/mm-arch-hooks.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/mmiowb.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/msi.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/serial.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/switch_to.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/trace_clock.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/unaligned.h
[OHOS ERROR]   WRAP    arch/arm64/include/generated/asm/vga.h
[OHOS ERROR]   HOSTCC  scripts/dtc/dtc-parser.tab.o
[OHOS ERROR]   HOSTCC  scripts/dtc/dtc-lexer.lex.o
[OHOS ERROR]   HOSTLD  scripts/dtc/dtc
[OHOS ERROR]   DTC     vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
[OHOS ERROR]   HOSTCC  scripts/kallsyms
[OHOS ERROR]   HOSTCC  scripts/recordmcount
[OHOS ERROR]   HOSTCC  scripts/selinux/genheaders/genheaders
[OHOS ERROR]   HOSTCC  scripts/sorttable
[OHOS ERROR]   HOSTCC  scripts/asn1_compiler
[OHOS ERROR]   HOSTCC  scripts/selinux/mdp/mdp
[OHOS ERROR]   HOSTCC  scripts/extract-cert
[OHOS ERROR] scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
[OHOS ERROR]    21 | #include 
[OHOS ERROR]       |          ^~~~~~~~~~~~~~~
[OHOS ERROR] compilation terminated.
[OHOS ERROR] make[2]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
[OHOS ERROR] make[2]: *** Waiting for unfinished jobs....
[OHOS ERROR] make[1]: *** [Makefile:1248: scripts] Error 2
[OHOS ERROR] make: *** [arch/arm64/Makefile:205: rk3588-bearkey-bq3588c1-linux.img] Error 2

还是存在问题。不过本回先到这里吧,内容较多较长了,放到下一回再继续解决吧。

你可能感兴趣的:(HarmonyOS,harmonyos,开发板,RK3588)