当前位置: 首页 > news >正文

编译鸿蒙6.0release版本出错

编译bash build/build_scripts/env_setup.sh出错

Installing /home/tools/qemu-5.2.0/pc-bios/keymaps/sv to /usr/local/share/qemu/keymaps

npm ERR! code E404

npm ERR! 404 Not Found - GET https://repo.harmonyos.com/npm/@ohos%2fhpm-cli

npm ERR! 404

npm ERR! 404 '@ohos/hpm-cli@latest' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2026-01-30T01_24_15_648Z-debug.log

处理:个编译的时候会自己构建,不是很影响

编译bash build.sh --product-name rk3568 --ccache报错,缺少libnl是一个网络链接库,编译时需要先安装或编译该依赖

[OHOS INFO] [GN] histreamer plugin: audio_server_sink = false

[OHOS INFO] [GN] histreamer plugin: lite_aac_decoder = false

[OHOS INFO] [GN] histreamer plugin: std_video_surface_sink = false

[OHOS INFO] [GN] histreamer plugin: std_video_capture = false

[OHOS INFO] [GN] histreamer plugin: file_fd_sink = false

[OHOS INFO] [GN] histreamer plugin: codec_adapter = true

[OHOS INFO] [GN] imf_enable: true

[OHOS ERROR] [GN] ERROR at //third_party/libnl/BUILD.gn:13:1: Script returned non-zero exit code.

[OHOS ERROR] [GN] exec_script("install.sh", [ "$libnl_path" ])

[OHOS ERROR] [GN] ^----------

[OHOS ERROR] [GN] Current dir: /home/g/oh60code/out/rk3568/

[OHOS ERROR] [GN] Command: /usr/bin/env /home/g/oh60code/third_party/libnl/install.sh /home/g/oh60code/third_party/libnl

[OHOS ERROR] [GN] Returned 1 and printed out:

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] libnl-libnl3_11_0/

[OHOS ERROR] [GN] libnl-libnl3_11_0/.clang-format

[OHOS ERROR] [GN] libnl-libnl3_11_0/.flake8

[OHOS ERROR] [GN] libnl-libnl3_11_0/.git-blame-ignore-revs

[OHOS ERROR] [GN] libnl-libnl3_11_0/.github/

[OHOS ERROR] [GN] libnl-libnl3_11_0/.github/workflows/

[OHOS ERROR] [GN] libnl-libnl3_11_0/.github/workflows/ci.yml

[OHOS ERROR] [GN] libnl-libnl3_11_0/.gitignore

[OHOS ERROR] [GN] libnl-libnl3_11_0/.indent.pro

[OHOS ERROR] [GN] libnl-libnl3_11_0/COPYING

[OHOS ERROR] [GN] libnl-libnl3_11_0/ChangeLog

[OHOS ERROR] [GN] libnl-libnl3_11_0/Makefile.am

[OHOS ERROR] [GN] libnl-libnl3_11_0/autogen.sh

[OHOS ERROR] [GN] libnl-libnl3_11_0/configure.ac

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/AUTHORS

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/COPYING

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/Doxyfile.in

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/DoxygenLayout.xml

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/Makefile.am

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/README

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/api/

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/api/.gitignore

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/autogen.sh

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/configure.ac

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/core.txt

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/doxygen-link.py

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/gen-tags.sh

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/addressing.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/attribute_hdr.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classful_qdisc.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classless_qdisc.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/classless_qdisc_nbands.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/README

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/1.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/10.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/11.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/12.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/13.png

[OHOS ERROR] [GN] libnl-libnl3_11_0/doc/images/icons/callouts/14.png

[OHOS ERROR] [GN] Traceback (most recent call last):

[OHOS ERROR] [GN] File "/home/g/oh60code/build/hb/containers/status.py", line 47, in wrapper

[OHOS ERROR] [GN] return func(*args, **kwargs)

[OHOS ERROR] [GN] ^^^^^^^^^^^^^^^^^^^^^

[OHOS ERROR] [GN] File "/home/g/oh60code/build/hb/services/gn.py", line 133, in _execute_gn_gen_cmd

[OHOS ERROR] [GN] SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)

[OHOS ERROR] [GN] File "/home/g/oh60code/build/hb/util/system_util.py", line 129, in exec_command

[OHOS ERROR] [GN] LogUtil.get_failed_log(log_path)

[OHOS ERROR] [GN] File "/home/g/oh60code/build/hb/util/log_util.py", line 207, in get_failed_log

[OHOS ERROR] [GN] LogUtil.get_gn_failed_log(log_path)

[OHOS ERROR] [GN] File "/home/g/oh60code/build/hb/util/log_util.py", line 153, in get_gn_failed_log

[OHOS ERROR] [GN] raise OHOSException(

[OHOS ERROR] [GN] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /home/g/oh60code/out/rk3568/error.log, and for more build information in /home/g/oh60code/out/rk3568/build.log

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Code: 3000

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Reason: GN Failed! Please check error in /home/g/oh60code/out/rk3568/error.log, and for more build information in /home/g/oh60code/out/rk3568/build.log

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Error Type: UNKNOWN

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Description: An unknown error occurred while executing 'gn gen'.

[OHOS ERROR] [GN]

[OHOS ERROR] [GN] Solution: There is no solution available. You can check the 'gn_error.log' in the output directory for more information

[OHOS ERROR] [GN]

=====build error=====

处理:安装依赖的库sudoapt-getupdatesudoapt-getinstall-ybison flex libssl-dev libreadline-dev\

libncurses5-dev autoconf automake libtool pkg-config

[OHOS ERROR] [NINJA] [67123/104891] CXX obj/device/soc/rockchip/rk3568/hardware/display/src/display_device/libdisplay_composer_vdi_impl/display_composer_vdi_impl.o

[OHOS ERROR] [NINJA] FAILED: obj/device/soc/rockchip/rk3568/hardware/display/src/display_device/libdisplay_composer_vdi_impl/display_composer_vdi_impl.o

[OHOS ERROR] [NINJA] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/device/soc/rockchip/rk3568/hardware/display/src/display_device/libdisplay_composer_vdi_impl/display_composer_vdi_impl.o.d -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DOHOS_PLATFORM -I../../device/soc/rockchip/rk3568/hardware/display/src/display_device -I../../drivers/peripheral/display/utils/include -I../../drivers/interface/display/composer -I../../drivers/peripheral/display/composer/hdi_service/include -I../../drivers/interface/display/composer/hdifd_parcelable -Iobj/third_party/musl/usr/include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../commonlibrary/c_utils/base/include -I../../foundation/communication/ipc/interfaces/innerkits/ipc_core/include -I../../third_party/bounds_checking_function/include -Igen/drivers/interface -Igen/drivers/interface/display/composer -I../../drivers/hdf_core/adapter/uhdf2/ipc/include -I../../drivers/hdf_core/interfaces/inner_api/utils -I../../drivers/hdf_core/interfaces/inner_api/osal/uhdf -I../../drivers/hdf_core/interfaces/inner_api/hdi -I../../foundation/graphic/graphic_surface/interfaces/inner_api/utils -I../../base/hiviewdfx/hilog/interfaces/native/innerkits/include -I../../foundation/communication/ipc/dl_deps -I../../foundation/communication/ipc/ipc/native/src/core/dbinder/include -I../../foundation/communication/ipc/ipc/native/src/core/framework/include -I../../foundation/communication/ipc/ipc/native/src/core/invoker/include -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fsplit-lto-unit -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -fstack-protector-strong -mfpu=neon -mthumb -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=sizeof-array-div -Wno-error=implicit-fallthrough -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=sign-compare -Wno-error=int-in-bool-context -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-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -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 -DCONFIG_STANDARD_SYSTEM -DBUILD_PUBLIC_VERSION -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -c ../../device/soc/rockchip/rk3568/hardware/display/src/display_device/display_composer_vdi_impl.cpp -o obj/device/soc/rockchip/rk3568/hardware/display/src/display_device/libdisplay_composer_vdi_impl/display_composer_vdi_impl.o

[OHOS ERROR] [NINJA] In file included from ../../device/soc/rockchip/rk3568/hardware/display/src/display_device/display_composer_vdi_impl.cpp:16:

[OHOS ERROR] [NINJA] In file included from ../../device/soc/rockchip/rk3568/hardware/display/src/display_device/display_composer_vdi_impl.h:22:

[OHOS ERROR] [NINJA] In file included from ../../drivers/peripheral/display/composer/hdi_service/include/idisplay_composer_vdi.h:22:

[OHOS ERROR] [NINJA] ../../drivers/interface/display/composer/v1_3/include/idisplay_composer_interface.h:20:10: fatal error: 'v1_3/display_composer_type.h' file not found

[OHOS ERROR] [NINJA] #include "v1_3/display_composer_type.h"

[OHOS ERROR] [NINJA] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[OHOS ERROR] [NINJA] 1 error generated.

[OHOS INFO] User Cpu%: 0.0%

[OHOS INFO] System Cpu%: 13.0%

[OHOS INFO] Idle CPU%: 87.0%

[OHOS INFO] Total Memory: 15.5GB

[OHOS INFO] Free Memory: 4.4GB

[OHOS INFO] Swap Memory: 4.0GB

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /usr/lib/modules/6.6.87.2-microsoft-standard-WSL2

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 4.0K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wsl

[OHOS INFO] Filesystem: drivers, Size: 199G, Used: 152G, Available: 48G, Use%: 77%, Mounted on: /usr/lib/wsl/drivers

[OHOS INFO] Filesystem: /dev/sde, Size: 1007G, Used: 131G, Available: 826G, Use%: 14%, Mounted on: /

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 92K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /usr/lib/wsl/lib

[OHOS INFO] Filesystem: rootfs, Size: 7.8G, Used: 2.7M, Available: 7.8G, Use%: 1%, Mounted on: /init

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 500K, Available: 7.8G, Use%: 1%, Mounted on: /run

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /run/lock

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 0, Available: 7.8G, Use%: 0%, Mounted on: /run/shm

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 76K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg/versions.txt

[OHOS INFO] Filesystem: none, Size: 7.8G, Used: 76K, Available: 7.8G, Use%: 1%, Mounted on: /mnt/wslg/doc

[OHOS INFO] Filesystem: C:\, Size: 199G, Used: 152G, Available: 48G, Use%: 77%, Mounted on: /mnt/c

[OHOS INFO] Filesystem: D:\, Size: 702G, Used: 547G, Available: 155G, Use%: 78%, Mounted on: /mnt/d

[OHOS INFO] Filesystem: F:\, Size: 53G, Used: 46G, Available: 7.0G, Use%: 87%, Mounted on: /mnt/f

[OHOS INFO] Filesystem: G:\, Size: 466G, Used: 328G, Available: 138G, Use%: 71%, Mounted on: /mnt/g

[OHOS INFO] Filesystem: tmpfs, Size: 1.6G, Used: 0, Available: 1.6G, Use%: 0%, Mounted on: /run/user/1000

[OHOS ERROR] [NINJA] Traceback (most recent call last):

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/containers/status.py", line 47, in wrapper

[OHOS ERROR] [NINJA] return func(*args, **kwargs)

[OHOS ERROR] [NINJA] ^^^^^^^^^^^^^^^^^^^^^

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/ohos_build_module.py", line 70, in run

[OHOS ERROR] [NINJA] raise exception

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/ohos_build_module.py", line 67, in run

[OHOS ERROR] [NINJA] super().run()

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/interface/build_module_interface.py", line 70, in run

[OHOS ERROR] [NINJA] raise exception

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/interface/build_module_interface.py", line 68, in run

[OHOS ERROR] [NINJA] self._ninja()

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/util/timer_util.py", line 30, in inner

[OHOS ERROR] [NINJA] res = func(*arg, **kwarg)

[OHOS ERROR] [NINJA] ^^^^^^^^^^^^^^^^^^^

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/interface/build_module_interface.py", line 125, in _ninja

[OHOS ERROR] [NINJA] self._target_compilation()

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/modules/ohos_build_module.py", line 112, in _target_compilation

[OHOS ERROR] [NINJA] self.target_compiler.run()

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/services/ninja.py", line 39, in run

[OHOS ERROR] [NINJA] self._execute_ninja_cmd()

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/services/ninja.py", line 70, in _execute_ninja_cmd

[OHOS ERROR] [NINJA] SystemUtil.exec_command(

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/util/system_util.py", line 129, in exec_command

[OHOS ERROR] [NINJA] LogUtil.get_failed_log(log_path)

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/util/log_util.py", line 209, in get_failed_log

[OHOS ERROR] [NINJA] LogUtil.get_compiler_failed_log(log_path)

[OHOS ERROR] [NINJA] File "/home/g/oh60code/build/hb/util/log_util.py", line 196, in get_compiler_failed_log

[OHOS ERROR] [NINJA] raise OHOSException(

[OHOS ERROR] [NINJA] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/g/oh60code/out/rk3568/error.log, and for more build information in /home/g/oh60code/out/rk3568/build.log

[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Code: 4000

[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Reason: COMPILE Failed! Please check error in /home/g/oh60code/out/rk3568/error.log, and for more build information in /home/g/oh60code/out/rk3568/build.log

[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Error Type: Ninja build error

[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Description: An unknown error occurred while executing 'ninja -C'.

[OHOS ERROR] [NINJA]

[OHOS ERROR] [NINJA] Solution: no solution

[OHOS ERROR] [NINJA]

=====build error=====

g@DESKTOP-KREHPF1:~/oh60code$

缺少一个头文件,

处理:拉取代码,更新代码,直接拉取就好,然后重新编译,

http://www.jsqmd.com/news/338108/

相关文章:

  • 科技成果转化的破局之道——构建区域创新生态的新引擎
  • 上海留学中介排名TOP10,口碑甄选不踩雷 - 博客湾
  • SpaceX正式收购xAI,计划在太空建设数据中心
  • ARM SCP-firmware build flow - ENGINEER
  • node: 安装@vue/cli
  • 稳定币算法革命:从数学公式到数字货币的“价格锚”
  • Mozilla Firefox 浏览器新增一键禁用生成式 AI 功能选项
  • 2026年市场优秀的法兰生产厂家选哪家,双相钢法兰/压力容器法兰/非标法兰/高温合金法兰/不锈钢法兰,法兰厂家排行 - 品牌推荐师
  • 2026年PEEK材料厂家权威推荐:江苏亨博复合材料有限公司,PEEK纯料/玻纤改性/陶瓷改性/耐磨改性粒子源头精选 - 品牌推荐官
  • application.yml或者yaml文件不显示绿色问题
  • 2026女性专属植发机构十大品牌排名 发际线/高颅顶/鬓角美学种植优选榜 - 极欧测评
  • 基于STM32的天气查询系统设计
  • 跨链收益革命:一站式DeFi资管协议如何重塑加密财富管理?
  • 南京市英语雅思培训机构推荐、2026权威测评出国雅思辅导机构口碑榜单 - 老周说教育
  • 徐州市英语雅思培训机构推荐、2026权威测评出国雅思辅导机构口碑榜单 - 老周说教育
  • 基于STM32的太阳能自动寻光充电系统设计
  • 香港留学中介TOP10测评:港申专项服务与辅导实力解析 - 博客湾
  • 【连续五届EI稳定检索、高录用】第六届物联网与智慧城市国际学术会议(IoTSC 2026)
  • 【VUE】window.open进行post提交 - 谷粒
  • 2026植发1000-5000个毛囊/性价比高/价格实惠优惠的植发机构十大品牌排名推荐 全民信赖榜 - 极欧测评
  • 上海十大留学机构揭秘:打造个人申请竞争力 - 博客湾
  • 实测才敢推!9个AI论文工具深度测评,自考毕业论文写作必备
  • 吐血推荐!9个AI论文平台深度测评,专科生毕业论文写作必备神器
  • 盘点双片钉箱机优质厂家,2026年市场口碑参考,国内热门的双片钉箱机供应商有哪些解析品牌实力与甄选要点 - 品牌推荐师
  • 苏州市英语雅思培训机构推荐:2026权威测评出国雅思辅导机构口碑榜单 - 老周说教育
  • 2026年连续挤压机厂家推荐排行榜:铝扁线/铜材/高速连续挤压机,铝管/铜排挤压生产线专业实力与创新技术深度解析 - 品牌企业推荐师(官方)
  • 乐山市英语雅思培训机构推荐;2026权威测评出国雅思辅导机构口碑榜单 - 老周说教育
  • 文件保密有哪些方法?学会这六个文件保密方法,全方位守护文件安全
  • 三种 Badcase 精度验证便捷的方案详解与 hbm_infer 部署实录
  • 【运维自动化-标准运维】快捷键使用技巧(上)