当前位置:   article > 正文

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

rk3588移植鸿蒙

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

上一篇讲到在执行以下命令时再次出现了错误:

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

错误如下:

  1. ……
  2. [OHOS INFO] [12943/62293] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
  3. [OHOS INFO] [12944/62293] ACTION //drivers/peripheral/codec/image/jpeg:libcodec_jpeg_driver__check(//build/toolchain/ohos:ohos_clang_arm64)
  4. [OHOS INFO] [12945/62293] ACTION //drivers/peripheral/codec/image/jpeg:libcodec_jpeg_driver__notice(//build/toolchain/ohos:ohos_clang_arm64)
  5. [OHOS INFO] [12946/62293] ACTION //drivers/peripheral/display/buffer/hdi_service:liballocator_driver_1.0__check(//build/toolchain/ohos:ohos_clang_arm64)
  6. [OHOS ERROR] [12943/62293] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
  7. [OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux
  8. [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
  9. [OHOS ERROR] /home/ph/OpenHarmony_Source/kernel/linux/linux-5.10 /home/ph/OpenHarmony_Source/out/rk3588
  10. [OHOS ERROR] cp kernel source
  11. [OHOS ERROR] HDF patch
  12. [OHOS ERROR] patching file arch/arm64/kernel/vmlinux.lds.S
  13. [OHOS ERROR] Hunk #1 succeeded at 201 with fuzz 2.
  14. [OHOS ERROR] patching file drivers/Kconfig
  15. [OHOS ERROR] patching file drivers/Makefile
  16. [OHOS ERROR] Hunk #1 succeeded at 192 with fuzz 1 (offset 1 line).
  17. [OHOS ERROR] patching file drivers/hdf/Makefile
  18. [OHOS ERROR] patching file drivers/hid/Makefile
  19. [OHOS ERROR] patching file drivers/hid/hid-core.c
  20. [OHOS ERROR] Hunk #2 succeeded at 1529 (offset 3 lines).
  21. [OHOS ERROR] Hunk #3 succeeded at 1940 (offset 3 lines).
  22. [OHOS ERROR] Hunk #4 succeeded at 2114 (offset 3 lines).
  23. [OHOS ERROR] Hunk #5 succeeded at 2132 (offset 3 lines).
  24. [OHOS ERROR] Hunk #6 succeeded at 2220 (offset 3 lines).
  25. [OHOS ERROR] patching file drivers/hid/hid-input.c
  26. [OHOS ERROR] Hunk #2 succeeded at 1433 (offset 13 lines).
  27. [OHOS ERROR] Hunk #3 succeeded at 1892 (offset 13 lines).
  28. [OHOS ERROR] Hunk #4 succeeded at 2013 (offset 13 lines).
  29. [OHOS ERROR] patching file drivers/input/misc/Makefile
  30. [OHOS ERROR] patching file drivers/input/misc/rk805-pwrkey.c
  31. [OHOS ERROR] patching file drivers/input/mousedev.c
  32. [OHOS ERROR] patching file drivers/usb/core/notify.c
  33. [OHOS ERROR] patching file include/linux/hid.h
  34. [OHOS ERROR] Hunk #1 succeeded at 624 (offset 2 lines).
  35. [OHOS ERROR] patching file include/linux/usb.h
  36. [OHOS ERROR] Hunk #1 succeeded at 2024 (offset 5 lines).
  37. [OHOS ERROR] /home/ph/OpenHarmony_Source/out/kernel/src_tmp/linux-5.10
  38. [OHOS ERROR] kernel patch
  39. [OHOS ERROR] patching file Makefile
  40. [OHOS ERROR] patching file arch/arm64/Makefile
  41. [OHOS ERROR] patching file arch/arm64/boot/Makefile
  42. [OHOS ERROR] patching file arch/arm64/kernel/cpuinfo.c
  43. [OHOS ERROR] patching file drivers/clk/rockchip/Kconfig
  44. [OHOS ERROR] patching file drivers/clk/rockchip/clk-cpu.c
  45. [OHOS ERROR] patching file drivers/clk/rockchip/clk-ddr.c
  46. [OHOS ERROR] patching file drivers/clk/rockchip/clk-half-divider.c
  47. [OHOS ERROR] patching file drivers/clk/rockchip/clk-pll.c
  48. [OHOS ERROR] patching file drivers/clk/rockchip/clk.c
  49. [OHOS ERROR] patching file drivers/clk/rockchip/clk.h
  50. [OHOS ERROR] patching file drivers/clocksource/Kconfig
  51. [OHOS ERROR] patching file drivers/clocksource/timer-rockchip.c
  52. [OHOS ERROR] patching file drivers/cpufreq/cpufreq-dt-platdev.c
  53. [OHOS ERROR] patching file drivers/cpufreq/cpufreq-dt.c
  54. [OHOS ERROR] patching file drivers/cpufreq/cpufreq.c
  55. [OHOS ERROR] patching file drivers/cpufreq/cpufreq_userspace.c
  56. [OHOS ERROR] patching file drivers/cpuidle/driver.c
  57. [OHOS ERROR] patching file drivers/cpuidle/governor.c
  58. [OHOS ERROR] patching file drivers/devfreq/devfreq.c
  59. [OHOS ERROR] patching file drivers/devfreq/event/rockchip-dfi.c
  60. [OHOS ERROR] patching file drivers/dma-buf/Kconfig
  61. [OHOS ERROR] patching file drivers/dma-buf/Makefile
  62. [OHOS ERROR] patching file drivers/dma-buf/dma-buf-sysfs-stats.c
  63. [OHOS ERROR] patching file drivers/dma-buf/dma-buf.c
  64. [OHOS ERROR] patching file drivers/dma-buf/dma-fence.c
  65. [OHOS ERROR] patching file drivers/dma-buf/dma-heap.c
  66. [OHOS ERROR] patching file drivers/dma-buf/heaps/Kconfig
  67. [OHOS ERROR] patching file drivers/dma-buf/heaps/Makefile
  68. [OHOS ERROR] patching file drivers/dma-buf/heaps/cma_heap.c
  69. [OHOS ERROR] patching file drivers/dma-buf/heaps/system_heap.c
  70. [OHOS ERROR] patching file drivers/dma-buf/sw_sync.c
  71. [OHOS ERROR] patching file drivers/dma-buf/sync_debug.h
  72. [OHOS ERROR] patching file drivers/gpio/gpiolib-of.c
  73. [OHOS ERROR] patching file drivers/gpio/gpiolib-of.h
  74. [OHOS ERROR] patching file drivers/gpu/drm/Kconfig
  75. [OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
  76. [OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
  77. [OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c
  78. [OHOS ERROR] patching file drivers/gpu/drm/bridge/analogix/analogix_dp_reg.h
  79. [OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi-audio.h
  80. [OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c
  81. [OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
  82. [OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-hdmi.h
  83. [OHOS ERROR] patching file drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
  84. [OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_helper.c
  85. [OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_state_helper.c
  86. [OHOS ERROR] patching file drivers/gpu/drm/drm_atomic_uapi.c
  87. [OHOS ERROR] patching file drivers/gpu/drm/drm_auth.c
  88. [OHOS ERROR] patching file drivers/gpu/drm/drm_color_mgmt.c
  89. [OHOS ERROR] patching file drivers/gpu/drm/drm_debugfs.c
  90. [OHOS ERROR] patching file drivers/gpu/drm/drm_edid.c
  91. [OHOS ERROR] patching file drivers/gpu/drm/drm_file.c
  92. [OHOS ERROR] patching file drivers/gpu/drm/drm_fourcc.c
  93. [OHOS ERROR] patching file drivers/gpu/drm/drm_ioctl.c
  94. [OHOS ERROR] patching file drivers/gpu/drm/drm_lease.c
  95. [OHOS ERROR] patching file drivers/gpu/drm/drm_mipi_dsi.c
  96. [OHOS ERROR] patching file drivers/gpu/drm/drm_mode_config.c
  97. [OHOS ERROR] patching file drivers/gpu/drm/drm_modes.c
  98. [OHOS ERROR] patching file drivers/gpu/drm/drm_prime.c
  99. [OHOS ERROR] patching file drivers/gpu/drm/drm_vblank.c
  100. [OHOS ERROR] patching file drivers/gpu/drm/panel/panel-simple.c
  101. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
  102. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/cdn-dp-core.c
  103. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/cdn-dp-core.h
  104. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
  105. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
  106. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/inno_hdmi.c
  107. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_drv.c
  108. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_drv.h
  109. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fb.c
  110. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fb.h
  111. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
  112. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_gem.c
  113. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_gem.h
  114. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_vop.c
  115. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_drm_vop.h
  116. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_lvds.c
  117. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_rgb.c
  118. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_rgb.h
  119. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_vop_reg.c
  120. [OHOS ERROR] patching file drivers/gpu/drm/rockchip/rockchip_vop_reg.h
  121. [OHOS ERROR] patching file drivers/i2c/busses/i2c-rk3x.c
  122. [OHOS ERROR] patching file drivers/i2c/i2c-core-base.c
  123. [OHOS ERROR] patching file drivers/iio/adc/rockchip_saradc.c
  124. [OHOS ERROR] patching file drivers/input/Makefile
  125. [OHOS ERROR] patching file drivers/input/misc/Kconfig
  126. [OHOS ERROR] patching file drivers/input/misc/rk805-pwrkey.c
  127. [OHOS ERROR] Hunk #1 succeeded at 13 with fuzz 2.
  128. [OHOS ERROR] Hunk #2 succeeded at 60 (offset 20 lines).
  129. [OHOS ERROR] patching file drivers/iommu/Kconfig
  130. [OHOS ERROR] patching file drivers/iommu/dma-iommu.c
  131. [OHOS ERROR] patching file drivers/iommu/iommu.c
  132. [OHOS ERROR] patching file drivers/iommu/iova.c
  133. [OHOS ERROR] patching file drivers/iommu/rockchip-iommu.c
  134. [OHOS ERROR] patching file drivers/irqchip/irq-gic-v3-its.c
  135. [OHOS ERROR] patching file drivers/irqchip/irq-gic-v3.c
  136. [OHOS ERROR] patching file drivers/irqchip/irq-gic-v4.c
  137. [OHOS ERROR] patching file drivers/media/platform/Kconfig
  138. [OHOS ERROR] patching file drivers/media/platform/Makefile
  139. [OHOS ERROR] patching file drivers/media/usb/uvc/uvc_driver.c
  140. [OHOS ERROR] patching file drivers/media/v4l2-core/v4l2-async.c
  141. [OHOS ERROR] patching file drivers/mfd/rk808.c
  142. [OHOS ERROR] patching file drivers/mmc/core/block.c
  143. [OHOS ERROR] patching file drivers/mmc/core/block.h
  144. [OHOS ERROR] patching file drivers/mmc/core/core.c
  145. [OHOS ERROR] patching file drivers/mmc/core/core.h
  146. [OHOS ERROR] patching file drivers/mmc/core/mmc.c
  147. [OHOS ERROR] patching file drivers/mmc/core/mmc_ops.c
  148. [OHOS ERROR] patching file drivers/mmc/core/queue.c
  149. [OHOS ERROR] patching file drivers/mmc/core/sd.c
  150. [OHOS ERROR] patching file drivers/mmc/core/sdio.c
  151. [OHOS ERROR] patching file drivers/mmc/core/slot-gpio.c
  152. [OHOS ERROR] patching file drivers/mmc/host/Kconfig
  153. [OHOS ERROR] patching file drivers/mmc/host/Makefile
  154. [OHOS ERROR] patching file drivers/mmc/host/cqhci.h
  155. [OHOS ERROR] patching file drivers/mmc/host/dw_mmc-rockchip.c
  156. [OHOS ERROR] patching file drivers/mmc/host/dw_mmc.c
  157. [OHOS ERROR] patching file drivers/mmc/host/dw_mmc.h
  158. [OHOS ERROR] patching file drivers/mmc/host/sdhci-of-dwcmshc.c
  159. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
  160. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c
  161. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
  162. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
  163. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
  164. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c
  165. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/hwif.h
  166. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
  167. [OHOS ERROR] patching file drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
  168. [OHOS ERROR] patching file drivers/nvmem/core.c
  169. [OHOS ERROR] patching file drivers/nvmem/rockchip-efuse.c
  170. [OHOS ERROR] patching file drivers/nvmem/rockchip-otp.c
  171. [OHOS ERROR] patching file drivers/opp/debugfs.c
  172. [OHOS ERROR] patching file drivers/opp/of.c
  173. [OHOS ERROR] patching file drivers/pci/controller/Makefile
  174. [OHOS ERROR] patching file drivers/pci/controller/dwc/pcie-designware.c
  175. [OHOS ERROR] patching file drivers/pci/controller/dwc/pcie-designware.h
  176. [OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip-host.c
  177. [OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip.c
  178. [OHOS ERROR] patching file drivers/pci/controller/pcie-rockchip.h
  179. [OHOS ERROR] patching file drivers/phy/rockchip/Makefile
  180. [OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
  181. [OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-inno-usb2.c
  182. [OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-pcie.c
  183. [OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-typec.c
  184. [OHOS ERROR] patching file drivers/phy/rockchip/phy-rockchip-usb.c
  185. [OHOS ERROR] patching file drivers/pinctrl/Kconfig
  186. [OHOS ERROR] patching file drivers/pinctrl/pinctrl-rk805.c
  187. [OHOS ERROR] patching file drivers/pinctrl/pinctrl-rockchip.c
  188. [OHOS ERROR] patching file drivers/power/reset/reboot-mode.c
  189. [OHOS ERROR] patching file drivers/power/reset/syscon-reboot-mode.c
  190. [OHOS ERROR] patching file drivers/power/supply/power_supply_core.c
  191. [OHOS ERROR] patching file drivers/power/supply/power_supply_sysfs.c
  192. [OHOS ERROR] patching file drivers/pwm/pwm-rockchip.c
  193. [OHOS ERROR] patching file drivers/pwm/sysfs.c
  194. [OHOS ERROR] patching file drivers/soc/rockchip/grf.c
  195. [OHOS ERROR] patching file drivers/soc/rockchip/io-domain.c
  196. [OHOS ERROR] patching file drivers/soc/rockchip/pm_domains.c
  197. [OHOS ERROR] patching file drivers/spi/spi-rockchip.c
  198. [OHOS ERROR] patching file drivers/spi/spidev.c
  199. [OHOS ERROR] patching file drivers/staging/android/Makefile
  200. [OHOS ERROR] patching file drivers/thermal/rockchip_thermal.c
  201. [OHOS ERROR] patching file drivers/tty/serial/8250/8250.h
  202. [OHOS ERROR] patching file drivers/tty/serial/8250/8250_core.c
  203. [OHOS ERROR] patching file drivers/tty/serial/8250/8250_dma.c
  204. [OHOS ERROR] patching file drivers/tty/serial/8250/8250_dw.c
  205. [OHOS ERROR] patching file drivers/tty/serial/8250/8250_dwlib.c
  206. [OHOS ERROR] patching file drivers/tty/serial/8250/8250_port.c
  207. [OHOS ERROR] patching file drivers/usb/class/cdc-acm.c
  208. [OHOS ERROR] patching file drivers/usb/class/cdc-acm.h
  209. [OHOS ERROR] patching file drivers/usb/common/Kconfig
  210. [OHOS ERROR] patching file drivers/usb/common/debug.c
  211. [OHOS ERROR] patching file drivers/usb/core/config.c
  212. [OHOS ERROR] patching file drivers/usb/core/driver.c
  213. [OHOS ERROR] patching file drivers/usb/core/hcd.c
  214. [OHOS ERROR] patching file drivers/usb/core/hub.c
  215. [OHOS ERROR] patching file drivers/usb/core/quirks.c
  216. [OHOS ERROR] patching file drivers/usb/dwc2/core.h
  217. [OHOS ERROR] patching file drivers/usb/dwc2/gadget.c
  218. [OHOS ERROR] patching file drivers/usb/dwc2/hcd.c
  219. [OHOS ERROR] patching file drivers/usb/dwc2/hcd_intr.c
  220. [OHOS ERROR] patching file drivers/usb/dwc2/hcd_queue.c
  221. [OHOS ERROR] patching file drivers/usb/dwc2/params.c
  222. [OHOS ERROR] patching file drivers/usb/dwc2/platform.c
  223. [OHOS ERROR] patching file drivers/usb/dwc3/core.c
  224. [OHOS ERROR] patching file drivers/usb/dwc3/core.h
  225. [OHOS ERROR] patching file drivers/usb/dwc3/debug.h
  226. [OHOS ERROR] patching file drivers/usb/dwc3/debugfs.c
  227. [OHOS ERROR] patching file drivers/usb/dwc3/drd.c
  228. [OHOS ERROR] patching file drivers/usb/dwc3/ep0.c
  229. [OHOS ERROR] patching file drivers/usb/dwc3/gadget.c
  230. [OHOS ERROR] patching file drivers/usb/dwc3/gadget.h
  231. [OHOS ERROR] patching file drivers/usb/dwc3/trace.c
  232. [OHOS ERROR] patching file drivers/usb/gadget/composite.c
  233. [OHOS ERROR] patching file drivers/usb/gadget/configfs.c
  234. [OHOS ERROR] patching file drivers/usb/gadget/epautoconf.c
  235. [OHOS ERROR] patching file drivers/usb/gadget/function/f_fs.c
  236. [OHOS ERROR] patching file drivers/usb/gadget/function/f_mass_storage.c
  237. [OHOS ERROR] patching file drivers/usb/gadget/function/f_uvc.c
  238. [OHOS ERROR] patching file drivers/usb/gadget/function/u_audio.h
  239. [OHOS ERROR] patching file drivers/usb/gadget/function/u_ether.h
  240. [OHOS ERROR] patching file drivers/usb/gadget/function/u_ether_configfs.h
  241. [OHOS ERROR] patching file drivers/usb/gadget/function/u_serial.c
  242. [OHOS ERROR] patching file drivers/usb/gadget/function/u_uac2.h
  243. [OHOS ERROR] patching file drivers/usb/gadget/function/u_uvc.h
  244. [OHOS ERROR] patching file drivers/usb/gadget/function/uvc.h
  245. [OHOS ERROR] patching file drivers/usb/gadget/function/uvc_configfs.c
  246. [OHOS ERROR] patching file drivers/usb/gadget/function/uvc_queue.c
  247. [OHOS ERROR] patching file drivers/usb/gadget/function/uvc_v4l2.c
  248. [OHOS ERROR] patching file drivers/usb/gadget/function/uvc_video.c
  249. [OHOS ERROR] patching file drivers/usb/gadget/udc/Kconfig
  250. [OHOS ERROR] patching file drivers/usb/gadget/udc/core.c
  251. [OHOS ERROR] patching file drivers/usb/gadget/udc/trace.c
  252. [OHOS ERROR] patching file drivers/usb/host/Makefile
  253. [OHOS ERROR] patching file drivers/usb/host/ehci-platform.c
  254. [OHOS ERROR] patching file drivers/usb/host/ehci.h
  255. [OHOS ERROR] patching file drivers/usb/host/fotg210.h
  256. [OHOS ERROR] patching file drivers/usb/host/ohci-platform.c
  257. [OHOS ERROR] patching file drivers/usb/host/xhci-hub.c
  258. [OHOS ERROR] patching file drivers/usb/host/xhci-mem.c
  259. [OHOS ERROR] patching file drivers/usb/host/xhci-pci.c
  260. [OHOS ERROR] patching file drivers/usb/host/xhci-plat.c
  261. [OHOS ERROR] patching file drivers/usb/host/xhci-plat.h
  262. [OHOS ERROR] patching file drivers/usb/host/xhci-ring.c
  263. [OHOS ERROR] patching file drivers/usb/host/xhci-trace.c
  264. [OHOS ERROR] patching file drivers/usb/host/xhci.c
  265. [OHOS ERROR] patching file drivers/usb/host/xhci.h
  266. [OHOS ERROR] patching file drivers/usb/serial/cp210x.c
  267. [OHOS ERROR] patching file drivers/usb/serial/option.c
  268. [OHOS ERROR] patching file drivers/usb/serial/qcserial.c
  269. [OHOS ERROR] patching file drivers/usb/storage/scsiglue.c
  270. [OHOS ERROR] patching file drivers/usb/storage/unusual_devs.h
  271. [OHOS ERROR] patching file drivers/usb/storage/unusual_uas.h
  272. [OHOS ERROR] patching file drivers/usb/typec/altmodes/Kconfig
  273. [OHOS ERROR] patching file drivers/usb/typec/altmodes/displayport.c
  274. [OHOS ERROR] patching file drivers/usb/typec/class.c
  275. [OHOS ERROR] patching file drivers/usb/typec/ucsi/Kconfig
  276. [OHOS ERROR] patching file drivers/video/backlight/pwm_bl.c
  277. [OHOS ERROR] patching file drivers/video/fbdev/kyro/fbdev.c
  278. [OHOS ERROR] patching file include/drm/bridge/analogix_dp.h
  279. [OHOS ERROR] patching file include/drm/bridge/dw_hdmi.h
  280. [OHOS ERROR] patching file include/drm/bridge/dw_mipi_dsi.h
  281. [OHOS ERROR] patching file include/drm/drm_connector.h
  282. [OHOS ERROR] patching file include/drm/drm_crtc.h
  283. [OHOS ERROR] patching file include/drm/drm_drv.h
  284. [OHOS ERROR] patching file include/drm/drm_edid.h
  285. [OHOS ERROR] patching file include/drm/drm_file.h
  286. [OHOS ERROR] patching file include/drm/drm_mipi_dsi.h
  287. [OHOS ERROR] patching file include/drm/drm_mode_config.h
  288. [OHOS ERROR] patching file include/drm/drm_mode_object.h
  289. [OHOS ERROR] patching file include/drm/drm_prime.h
  290. [OHOS ERROR] patching file include/dt-bindings/soc/rockchip,boot-mode.h
  291. [OHOS ERROR] patching file include/linux/clk-provider.h
  292. [OHOS ERROR] patching file include/linux/dma-buf.h
  293. [OHOS ERROR] patching file include/linux/dma-fence.h
  294. [OHOS ERROR] patching file include/linux/dma-heap.h
  295. [OHOS ERROR] patching file include/linux/dma-iommu.h
  296. [OHOS ERROR] patching file include/linux/dma-mapping.h
  297. [OHOS ERROR] patching file include/linux/energy_model.h
  298. [OHOS ERROR] patching file include/linux/extcon.h
  299. [OHOS ERROR] patching file include/linux/freezer.h
  300. [OHOS ERROR] patching file include/linux/iommu.h
  301. [OHOS ERROR] patching file include/linux/iova.h
  302. [OHOS ERROR] patching file include/linux/irqchip/arm-gic-v3.h
  303. [OHOS ERROR] patching file include/linux/irqchip/arm-gic-v4.h
  304. [OHOS ERROR] patching file include/linux/mfd/rk808.h
  305. [OHOS ERROR] patching file include/linux/mmc/core.h
  306. [OHOS ERROR] patching file include/linux/mmc/host.h
  307. [OHOS ERROR] patching file include/linux/mmc/mmc.h
  308. [OHOS ERROR] patching file include/linux/mmc/pm.h
  309. [OHOS ERROR] patching file include/linux/mmu_context.h
  310. [OHOS ERROR] patching file include/linux/power_supply.h
  311. [OHOS ERROR] patching file include/linux/pwm.h
  312. [OHOS ERROR] patching file include/linux/reboot-mode.h
  313. [OHOS ERROR] patching file include/linux/reboot.h
  314. [OHOS ERROR] patching file include/linux/sched.h
  315. [OHOS ERROR] patching file include/linux/stmmac.h
  316. [OHOS ERROR] patching file include/linux/usb/composite.h
  317. [OHOS ERROR] patching file include/linux/usb/gadget.h
  318. [OHOS ERROR] patching file include/linux/usb/hcd.h
  319. [OHOS ERROR] patching file include/linux/usb/otg.h
  320. [OHOS ERROR] patching file include/linux/usb/pd.h
  321. [OHOS ERROR] patching file include/linux/usb/pd_ext_sdb.h
  322. [OHOS ERROR] patching file include/linux/usb/pd_vdo.h
  323. [OHOS ERROR] patching file include/linux/usb/phy.h
  324. [OHOS ERROR] patching file include/linux/usb/quirks.h
  325. [OHOS ERROR] patching file include/linux/usb/tcpm.h
  326. [OHOS ERROR] patching file include/linux/usb/typec.h
  327. [OHOS ERROR] patching file include/linux/usb/typec_altmode.h
  328. [OHOS ERROR] patching file include/linux/usb/typec_tbt.h
  329. [OHOS ERROR] patching file include/linux/usb/usbnet.h
  330. [OHOS ERROR] patching file include/media/v4l2-async.h
  331. [OHOS ERROR] patching file include/soc/rockchip/rockchip_sip.h
  332. [OHOS ERROR] patching file include/sound/hdmi-codec.h
  333. [OHOS ERROR] patching file include/sound/hwdep.h
  334. [OHOS ERROR] patching file include/sound/pcm_iec958.h
  335. [OHOS ERROR] patching file include/uapi/drm/drm_fourcc.h
  336. [OHOS ERROR] patching file include/uapi/linux/dma-buf.h
  337. [OHOS ERROR] patching file include/uapi/linux/media-bus-format.h
  338. [OHOS ERROR] patching file include/uapi/linux/serial_reg.h
  339. [OHOS ERROR] patching file include/uapi/linux/usb/g_uvc.h
  340. [OHOS ERROR] patching file include/uapi/linux/usb/video.h
  341. [OHOS ERROR] patching file include/uapi/linux/v4l2-controls.h
  342. [OHOS ERROR] patching file include/uapi/linux/videodev2.h
  343. [OHOS ERROR] patching file init/Kconfig
  344. [OHOS ERROR] patching file init/initramfs.c
  345. [OHOS ERROR] patching file init/main.c
  346. [OHOS ERROR] patching file ipc/msg.c
  347. [OHOS ERROR] patching file ipc/namespace.c
  348. [OHOS ERROR] patching file ipc/sem.c
  349. [OHOS ERROR] patching file ipc/shm.c
  350. [OHOS ERROR] patching file ipc/util.c
  351. [OHOS ERROR] patching file kernel/cgroup/legacy_freezer.c
  352. [OHOS ERROR] patching file kernel/cpu.c
  353. [OHOS ERROR] patching file kernel/irq/generic-chip.c
  354. [OHOS ERROR] patching file kernel/power/Makefile
  355. [OHOS ERROR] patching file kernel/power/energy_model.c
  356. [OHOS ERROR] patching file kernel/power/power.h
  357. [OHOS ERROR] patching file kernel/power/process.c
  358. [OHOS ERROR] patching file kernel/power/suspend.c
  359. [OHOS ERROR] patching file kernel/reboot.c
  360. [OHOS ERROR] patching file kernel/sched/core.c
  361. [OHOS ERROR] patching file kernel/sched/fair.c
  362. [OHOS ERROR] patching file kernel/sched/loadavg.c
  363. [OHOS ERROR] patching file kernel/sched/pelt.c
  364. [OHOS ERROR] patching file kernel/sched/rt.c
  365. [OHOS ERROR] patching file kernel/sched/sched-pelt.h
  366. [OHOS ERROR] patching file kernel/sched/sched.h
  367. [OHOS ERROR] patching file kernel/sched/topology.c
  368. [OHOS ERROR] patching file kernel/sched/wait.c
  369. [OHOS ERROR] patching file mm/memblock.c
  370. [OHOS ERROR] patching file net/bluetooth/l2cap_sock.c
  371. [OHOS ERROR] patching file net/bluetooth/sco.c
  372. [OHOS ERROR] patching file scripts/Makefile.lib
  373. [OHOS ERROR] patching file scripts/kconfig/parser.y
  374. [OHOS ERROR] patching file security/selinux/hooks.c
  375. [OHOS ERROR] patching file security/selinux/ss/avtab.h
  376. [OHOS ERROR] patching file security/selinux/ss/context.h
  377. [OHOS ERROR] patching file sound/soc/rockchip/Kconfig
  378. [OHOS ERROR] patching file sound/soc/rockchip/Makefile
  379. [OHOS ERROR] patching file sound/soc/rockchip/rockchip_i2s.h
  380. [OHOS ERROR] patching file sound/soc/rockchip/rockchip_pdm.h
  381. [OHOS ERROR] HOSTCC scripts/basic/fixdep
  382. [OHOS ERROR] HOSTCC scripts/kconfig/conf.o
  383. [OHOS ERROR] HOSTCC scripts/kconfig/confdata.o
  384. [OHOS ERROR] HOSTCC scripts/kconfig/expr.o
  385. [OHOS ERROR] LEX scripts/kconfig/lexer.lex.c
  386. [OHOS ERROR] YACC scripts/kconfig/parser.tab.[ch]
  387. [OHOS ERROR] HOSTCC scripts/kconfig/lexer.lex.o
  388. [OHOS ERROR] HOSTCC scripts/kconfig/parser.tab.o
  389. [OHOS ERROR] HOSTCC scripts/kconfig/preprocess.o
  390. [OHOS ERROR] HOSTCC scripts/kconfig/symbol.o
  391. [OHOS ERROR] HOSTCC scripts/kconfig/util.o
  392. [OHOS ERROR] HOSTLD scripts/kconfig/conf
  393. [OHOS ERROR] drivers/hdf/khdf/model/audio/Kconfig:96:warning: ignoring type redefinition of 'DRM_DW_HDMI_I2S_AUDIO' from 'tristate' to 'bool'
  394. [OHOS ERROR] drivers/hdf/khdf/model/network/wifi/bus/Kconfig:25:warning: defaults for choice values not supported
  395. [OHOS ERROR] drivers/hdf/khdf/model/network/wifi/bus/Kconfig:32:warning: defaults for choice values not supported
  396. [OHOS ERROR] #
  397. [OHOS ERROR] # configuration written to .config
  398. [OHOS ERROR] #
  399. [OHOS ERROR] HOSTCC scripts/dtc/dtc.o
  400. [OHOS ERROR] HOSTCC scripts/dtc/flattree.o
  401. [OHOS ERROR] HOSTCC scripts/dtc/fstree.o
  402. [OHOS ERROR] HOSTCC scripts/dtc/data.o
  403. [OHOS ERROR] HOSTCC scripts/dtc/livetree.o
  404. [OHOS ERROR] HOSTCC scripts/dtc/treesource.o
  405. [OHOS ERROR] UPD include/config/kernel.release
  406. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
  407. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/errno.h
  408. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/ioctl.h
  409. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/ioctls.h
  410. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h
  411. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h
  412. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/poll.h
  413. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/resource.h
  414. [OHOS ERROR] UPD include/generated/uapi/linux/version.h
  415. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/sembuf.h
  416. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h
  417. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/siginfo.h
  418. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/socket.h
  419. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/sockios.h
  420. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/stat.h
  421. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/swab.h
  422. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/termbits.h
  423. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/termios.h
  424. [OHOS ERROR] WRAP arch/arm64/include/generated/uapi/asm/types.h
  425. [OHOS ERROR] HOSTCC scripts/dtc/srcpos.o
  426. [OHOS ERROR] HOSTCC scripts/dtc/checks.o
  427. [OHOS ERROR] UPD include/generated/utsrelease.h
  428. [OHOS ERROR] HOSTCC scripts/dtc/util.o
  429. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/early_ioremap.h
  430. [OHOS ERROR] LEX scripts/dtc/dtc-lexer.lex.c
  431. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
  432. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/qrwlock.h
  433. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/qspinlock.h
  434. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/set_memory.h
  435. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/user.h
  436. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/bugs.h
  437. [OHOS ERROR] YACC scripts/dtc/dtc-parser.tab.[ch]
  438. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/delay.h
  439. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/div64.h
  440. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/dma-mapping.h
  441. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/dma.h
  442. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/emergency-restart.h
  443. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/hw_irq.h
  444. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/irq_regs.h
  445. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/kdebug.h
  446. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/kmap_types.h
  447. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/local.h
  448. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/local64.h
  449. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
  450. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/mmiowb.h
  451. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/msi.h
  452. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/serial.h
  453. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/switch_to.h
  454. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/trace_clock.h
  455. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/unaligned.h
  456. [OHOS ERROR] WRAP arch/arm64/include/generated/asm/vga.h
  457. [OHOS ERROR] HOSTCC scripts/dtc/dtc-parser.tab.o
  458. [OHOS ERROR] HOSTCC scripts/dtc/dtc-lexer.lex.o
  459. [OHOS ERROR] HOSTLD scripts/dtc/dtc
  460. [OHOS ERROR] DTC vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
  461. [OHOS ERROR] HOSTCC scripts/kallsyms
  462. [OHOS ERROR] HOSTCC scripts/recordmcount
  463. [OHOS ERROR] HOSTCC scripts/selinux/genheaders/genheaders
  464. [OHOS ERROR] HOSTCC scripts/sorttable
  465. [OHOS ERROR] HOSTCC scripts/asn1_compiler
  466. [OHOS ERROR] HOSTCC scripts/selinux/mdp/mdp
  467. [OHOS ERROR] HOSTCC scripts/extract-cert
  468. [OHOS ERROR] scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
  469. [OHOS ERROR] 21 | #include <openssl/bio.h>
  470. [OHOS ERROR] | ^~~~~~~~~~~~~~~
  471. [OHOS ERROR] compilation terminated.
  472. [OHOS ERROR] make[2]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
  473. [OHOS ERROR] make[2]: *** Waiting for unfinished jobs....
  474. [OHOS ERROR] make[1]: *** [Makefile:1248: scripts] Error 2
  475. [OHOS ERROR] make: *** [arch/arm64/Makefile:205: rk3588-bearkey-bq3588c1-linux.img] Error 2

解决方法:

通过apt下载安装openssl,实际命令及结果如下:

  1. $ sudo apt install openssl
  2. [sudo] password for ph:
  3. Reading package lists... Done
  4. Building dependency tree... Done
  5. Reading state information... Done
  6. openssl is already the newest version (3.0.2-0ubuntu1.12).
  7. openssl set to manually installed.
  8. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

说明openssl已经安装,问题还不在这。还通过apt下载安装libssl-dev。实际命令及结果如下:

  1. $ sudo apt install libssl-dev
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. Suggested packages:
  6. libssl-doc
  7. The following NEW packages will be installed:
  8. libssl-dev
  9. 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
  10. Need to get 2,373 kB of archives.
  11. After this operation, 12.4 MB of additional disk space will be used.
  12. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.12 [2,373 kB]
  13. Fetched 2,373 kB in 0s (7,590 kB/s)
  14. Selecting previously unselected package libssl-dev:amd64.
  15. (Reading database ... 215071 files and directories currently installed.)
  16. Preparing to unpack .../libssl-dev_3.0.2-0ubuntu1.12_amd64.deb ...
  17. Unpacking libssl-dev:amd64 (3.0.2-0ubuntu1.12) ...
  18. Setting up libssl-dev:amd64 (3.0.2-0ubuntu1.12) ...

libssl-dev包安装后,在/usr/include/下就会有openssl文件夹以及其下的bio.h等文件了。

重新执行编译命令,实际命令及结果如下:

  1. $ sudo ./build.sh --product-name dayu210 --ccache
  2. ++++++++++++++++++++++++++++++++++++++++
  3. The system shell is bash 5.1.16(1)-release
  4. ++++++++++++++++++++++++++++++++++++++++
  5. 2024-01-02 19:15:24
  6. --product-name dayu210 --ccache
  7. Current Node.js version is v14.21.1
  8. Node.js version check passed
  9. lockfile=false
  10. start set ohpm
  11. init ohpm
  12. npm WARN @ohos/ohpm@1.1.2 No description
  13. npm WARN @ohos/ohpm@1.1.2 No repository field.
  14. up to date in 1.206s
  15. 10 packages are looking for funding
  16. run `npm fund` for details
  17. ohpm version is 1.1.2
  18. ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/"
  19. ohpm DEBUG: config set "strict_ssl" "false"
  20. ohpm DEBUG: config set "log_level" "debug"
  21. remove /root/.hvigor
  22. ~/.hvigor/wrapper/tools /home/ph/OpenHarmony_Source
  23. install pnpm
  24. npm notice created a lockfile as package-lock.json. You should commit this file.
  25. npm WARN tools No description
  26. npm WARN tools No repository field.
  27. npm WARN tools No license field.
  28. added 1 package in 1.72s
  29. 1 package is looking for funding
  30. run `npm fund` for details
  31. /home/ph/OpenHarmony_Source
  32. default-jdk is not installed. please install it.
  33. libtinfo5 is not installed. please install it.
  34. genext2fs is not installed. please install it.
  35. u-boot-tools is not installed. please install it.
  36. mtools is not installed. please install it.
  37. mtd-utils is not installed. please install it.
  38. scons is not installed. please install it.
  39. gcc-arm-none-eabi is not installed. please install it.
  40. gcc-arm-linux-gnueabi is not installed. please install it.
  41. Missing dependencies, please check!
  42. [OHOS INFO] Set cache size limit to 100.0 GB
  43. ……
  44. ……

经过了一段时间,最终仍旧出现了错误:

  1. ……
  2. [OHOS INFO] [13156/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_switch.o
  3. [OHOS INFO] [13157/51410] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
  4. [OHOS INFO] [13158/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tab_content.o
  5. [OHOS INFO] [13159/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tab_bar.o
  6. [OHOS INFO] [13160/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tabs.o
  7. [OHOS INFO] [13161/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_text.o
  8. [OHOS INFO] [13162/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_textarea.o
  9. [OHOS ERROR] [13157/51410] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
  10. [OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux
  11. [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
  12. [OHOS ERROR] /home/ph/OpenHarmony_Source/kernel/linux/linux-5.10 /home/ph/OpenHarmony_Source/out/rk3588
  13. [OHOS ERROR] cp kernel source
  14. [OHOS ERROR] HDF patch
  15. [OHOS ERROR] patching file arch/arm64/kernel/vmlinux.lds.S
  16. [OHOS ERROR] Hunk #1 succeeded at 201 with fuzz 2.
  17. ……
  18. [OHOS ERROR] LD [M] drivers/media/tuners/tuner-xc2028.ko
  19. [OHOS ERROR] LD [M] drivers/media/tuners/xc4000.ko
  20. [OHOS ERROR] LD [M] drivers/media/tuners/xc5000.ko
  21. [OHOS ERROR] make: *** [arch/arm64/Makefile:205: rk3588-bearkey-bq3588c1-linux.img] Error 2
  22. [OHOS ERROR] Traceback (most recent call last):
  23. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
  24. [OHOS ERROR] SystemUtil.exec_command(
  25. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/util/system_util.py", line 63, in exec_command
  26. [OHOS ERROR] raise OHOSException(
  27. [OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /home/ph/OpenHarmony_Source/out/rk3588/build.log
  28. [OHOS ERROR]
  29. [OHOS ERROR] During handling of the above exception, another exception occurred:
  30. [OHOS ERROR]
  31. [OHOS ERROR] Traceback (most recent call last):
  32. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/containers/status.py", line 47, in wrapper
  33. [OHOS ERROR] return func(*args, **kwargs)
  34. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 67, in run
  35. [OHOS ERROR] raise exception
  36. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 65, in run
  37. [OHOS ERROR] super().run()
  38. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 72, in run
  39. [OHOS ERROR] raise exception
  40. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 70, in run
  41. [OHOS ERROR] self._target_compilation()
  42. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
  43. [OHOS ERROR] self.target_compiler.run()
  44. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 38, in run
  45. [OHOS ERROR] self._execute_ninja_cmd()
  46. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
  47. [OHOS ERROR] raise OHOSException('ninja phase failed', '4000')
  48. [OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
  49. [OHOS ERROR]
  50. [OHOS ERROR] Code: 4000
  51. [OHOS ERROR]
  52. [OHOS ERROR] Reason: ninja phase failed
  53. [OHOS ERROR]
  54. [OHOS ERROR] Solution: Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
  55. [OHOS ERROR] Or you can try the following steps to solve this problem:
  56. [OHOS ERROR] 1. cd to OHOS root path
  57. [OHOS ERROR] 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
  58. [OHOS ERROR] 3. repo sync
  59. [OHOS ERROR] 4. repo forall -c 'git lfs pull'
  60. [OHOS ERROR] 5. bash build/prebuilts_download.sh
  61. [OHOS ERROR] 6. rebuild your product or component
  62. [OHOS ERROR]
  63. [OHOS ERROR] If you still cannot solve this problem, you could post this problem on:
  64. [OHOS ERROR] https://gitee.com/openharmony/build/issues
  65. [OHOS ERROR]
  66. =====build error=====

根据华为开发者论坛中的说法,需要先通过apt下载安装liblz4-tool,实际命令及结果如下:

  1. $ sudo apt install liblz4-tool
  2. [sudo] password for ph:
  3. Reading package lists... Done
  4. Building dependency tree... Done
  5. Reading state information... Done
  6. The following additional packages will be installed:
  7. lz4
  8. The following NEW packages will be installed:
  9. liblz4-tool lz4
  10. 0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
  11. Need to get 92.4 kB of archives.
  12. After this operation, 249 kB of additional disk space will be used.
  13. Do you want to continue? [Y/n] y
  14. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 lz4 amd64 1.9.3-2build2 [90.0 kB]
  15. Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 liblz4-tool all 1.9.3-2build2 [2,342 B]
  16. Fetched 92.4 kB in 0s (330 kB/s)
  17. Selecting previously unselected package lz4.
  18. (Reading database ... 215219 files and directories currently installed.)
  19. Preparing to unpack .../lz4_1.9.3-2build2_amd64.deb ...
  20. Unpacking lz4 (1.9.3-2build2) ...
  21. Selecting previously unselected package liblz4-tool.
  22. Preparing to unpack .../liblz4-tool_1.9.3-2build2_all.deb ...
  23. Unpacking liblz4-tool (1.9.3-2build2) ...
  24. Setting up lz4 (1.9.3-2build2) ...
  25. Setting up liblz4-tool (1.9.3-2build2) ...
  26. Processing triggers for man-db (2.10.2-1) ...

再次执行编译,仍然有错误:

  1. ……
  2. [OHOS INFO] [4404/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_menu.o
  3. [OHOS INFO] [4405/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_navigation_menu.o
  4. [OHOS INFO] [4406/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_picker_dialog.o
  5. [OHOS INFO] [4407/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_option.o
  6. [OHOS INFO] [4408/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_piece.o
  7. [OHOS ERROR] [4403/43232] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
  8. [OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux
  9. [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
  10. [OHOS ERROR] /home/ph/OpenHarmony_Source/kernel/linux/linux-5.10 /home/ph/OpenHarmony_Source/out/rk3588
  11. [OHOS ERROR] cp kernel source
  12. [OHOS ERROR] HDF patch
  13. [OHOS ERROR] patching file arch/arm64/kernel/vmlinux.lds.S
  14. [OHOS ERROR] Hunk #1 succeeded at 201 with fuzz 2.
  15. [OHOS ERROR] patching file drivers/Kconfig
  16. [OHOS ERROR] patching file drivers/Makefile
  17. [OHOS ERROR] Hunk #1 succeeded at 192 with fuzz 1 (offset 1 line).
  18. ……
  19. [OHOS ERROR] E/write_file(1416): #### [zhq] src_path: vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
  20. [OHOS ERROR] E/write_file(1416): #### [zhq] src_path: logo.bmp
  21. [OHOS ERROR] E/write_file(1416): #### [zhq] src_path: logo_kernel.bmp
  22. [OHOS ERROR] dtb vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
  23. [OHOS ERROR] logo logo.bmp
  24. [OHOS ERROR] logo_kernel logo_kernel.bmp
  25. [OHOS ERROR] Image: resource.img (with rk3588-bearkey-bq3588c1-linux.dtb logo.bmp logo_kernel.bmp) is ready
  26. [OHOS ERROR] /home/ph/OpenHarmony_Source/out/rk3588
  27. [OHOS ERROR] blocks = 4096 block_size 16384
  28. [OHOS ERROR] ../kernel/src_tmp/linux-5.10/make-boot.sh: line 35: genext2fs: command not found
  29. [OHOS ERROR] Traceback (most recent call last):
  30. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 49, in _execute_ninja_cmd
  31. [OHOS ERROR] SystemUtil.exec_command(
  32. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/util/system_util.py", line 63, in exec_command
  33. [OHOS ERROR] raise OHOSException(
  34. [OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /home/ph/OpenHarmony_Source/out/rk3588/build.log
  35. [OHOS ERROR]
  36. [OHOS ERROR] During handling of the above exception, another exception occurred:
  37. [OHOS ERROR]
  38. [OHOS ERROR] Traceback (most recent call last):
  39. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/containers/status.py", line 47, in wrapper
  40. [OHOS ERROR] return func(*args, **kwargs)
  41. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 67, in run
  42. [OHOS ERROR] raise exception
  43. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 65, in run
  44. [OHOS ERROR] super().run()
  45. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 72, in run
  46. [OHOS ERROR] raise exception
  47. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/interface/build_module_interface.py", line 70, in run
  48. [OHOS ERROR] self._target_compilation()
  49. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
  50. [OHOS ERROR] self.target_compiler.run()
  51. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 38, in run
  52. [OHOS ERROR] self._execute_ninja_cmd()
  53. [OHOS ERROR] File "/home/ph/OpenHarmony_Source/build/hb/services/ninja.py", line 52, in _execute_ninja_cmd
  54. [OHOS ERROR] raise OHOSException('ninja phase failed', '4000')
  55. [OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
  56. [OHOS ERROR]
  57. [OHOS ERROR] Code: 4000
  58. [OHOS ERROR]
  59. [OHOS ERROR] Reason: ninja phase failed
  60. [OHOS ERROR]
  61. [OHOS ERROR] Solution: Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
  62. [OHOS ERROR] Or you can try the following steps to solve this problem:
  63. [OHOS ERROR] 1. cd to OHOS root path
  64. [OHOS ERROR] 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
  65. [OHOS ERROR] 3. repo sync
  66. [OHOS ERROR] 4. repo forall -c 'git lfs pull'
  67. [OHOS ERROR] 5. bash build/prebuilts_download.sh
  68. [OHOS ERROR] 6. rebuild your product or component
  69. [OHOS ERROR]
  70. [OHOS ERROR] If you still cannot solve this problem, you could post this problem on:
  71. [OHOS ERROR] https://gitee.com/openharmony/build/issues
  72. [OHOS ERROR]
  73. =====build error=====

这次根据提示,直接看一下out/rk3588/build.log的内容,看看错误到底在哪里。

这个文件当前有20508行,需要具体定位。经过一番仔细查找定位,最终锁定在这一行:

../kernel/src_tmp/linux-5.10/make-boot.sh: line 35: genext2fs: command not found

此时不由得联想到,本文的上边有一段提示:

  1. $ sudo ./build.sh --product-name dayu210 --ccache
  2. ++++++++++++++++++++++++++++++++++++++++
  3. The system shell is bash 5.1.16(1)-release
  4. ++++++++++++++++++++++++++++++++++++++++
  5. 2024-01-02 19:15:24
  6. --product-name dayu210 --ccache
  7. Current Node.js version is v14.21.1
  8. Node.js version check passed
  9. lockfile=false
  10. start set ohpm
  11. init ohpm
  12. npm WARN @ohos/ohpm@1.1.2 No description
  13. npm WARN @ohos/ohpm@1.1.2 No repository field.
  14. up to date in 1.206s
  15. 10 packages are looking for funding
  16. run `npm fund` for details
  17. ohpm version is 1.1.2
  18. ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/"
  19. ohpm DEBUG: config set "strict_ssl" "false"
  20. ohpm DEBUG: config set "log_level" "debug"
  21. remove /root/.hvigor
  22. ~/.hvigor/wrapper/tools /home/ph/OpenHarmony_Source
  23. install pnpm
  24. npm notice created a lockfile as package-lock.json. You should commit this file.
  25. npm WARN tools No description
  26. npm WARN tools No repository field.
  27. npm WARN tools No license field.
  28. added 1 package in 1.72s
  29. 1 package is looking for funding
  30. run `npm fund` for details
  31. /home/ph/OpenHarmony_Source
  32. default-jdk is not installed. please install it.
  33. libtinfo5 is not installed. please install it.
  34. genext2fs is not installed. please install it.
  35. u-boot-tools is not installed. please install it.
  36. mtools is not installed. please install it.
  37. mtd-utils is not installed. please install it.
  38. scons is not installed. please install it.
  39. gcc-arm-none-eabi is not installed. please install it.
  40. gcc-arm-linux-gnueabi is not installed. please install it.
  41. Missing dependencies, please check!
  42. [OHOS INFO] Set cache size limit to 100.0 GB
  43. ……
  44. ……

最下边的这一段中提示了有一些包需要安装,其中就包括这个genext2fs。这回索性就把上边提示缺少的包一把都安装上,省得以后再一个一个往出蹦错误,都下载安装完之后再尝试编译。

一个一个通过apt进行下载安装。

  • genext2fs

实际命令及结果如下:

  1. $ sudo apt install genext2fs
  2. [sudo] password for ph:
  3. Reading package lists... Done
  4. Building dependency tree... Done
  5. Reading state information... Done
  6. The following NEW packages will be installed:
  7. genext2fs
  8. 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
  9. Need to get 31.1 kB of archives.
  10. After this operation, 81.9 kB of additional disk space will be used.
  11. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 genext2fs amd64 1.5.0-2 [31.1 kB]
  12. Fetched 31.1 kB in 0s (151 kB/s)
  13. Selecting previously unselected package genext2fs.
  14. (Reading database ... 217174 files and directories currently installed.)
  15. Preparing to unpack .../genext2fs_1.5.0-2_amd64.deb ...
  16. Unpacking genext2fs (1.5.0-2) ...
  17. Setting up genext2fs (1.5.0-2) ...
  18. Processing triggers for man-db (2.10.2-1) ...
  • default-jdk

实际命令及结果如下:

  1. $ sudo apt install default-jdk
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6. default-jdk-headless default-jre default-jre-headless
  7. The following NEW packages will be installed:
  8. default-jdk default-jdk-headless default-jre default-jre-headless
  9. 0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
  10. Need to get 5,788 B of archives.
  11. After this operation, 38.9 kB of additional disk space will be used.
  12. Do you want to continue? [Y/n] y
  13. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jre-headless amd64 2:1.11-72build2 [3,042 B]
  14. Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jre amd64 2:1.11-72build2 [896 B]
  15. Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jdk-headless amd64 2:1.11-72build2 [942 B]
  16. Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jdk amd64 2:1.11-72build2 [908 B]
  17. Fetched 5,788 B in 0s (21.6 kB/s)
  18. Selecting previously unselected package default-jre-headless.
  19. (Reading database ... 217179 files and directories currently installed.)
  20. Preparing to unpack .../default-jre-headless_2%3a1.11-72build2_amd64.deb ...
  21. Unpacking default-jre-headless (2:1.11-72build2) ...
  22. Selecting previously unselected package default-jre.
  23. Preparing to unpack .../default-jre_2%3a1.11-72build2_amd64.deb ...
  24. Unpacking default-jre (2:1.11-72build2) ...
  25. Selecting previously unselected package default-jdk-headless.
  26. Preparing to unpack .../default-jdk-headless_2%3a1.11-72build2_amd64.deb ...
  27. Unpacking default-jdk-headless (2:1.11-72build2) ...
  28. Selecting previously unselected package default-jdk.
  29. Preparing to unpack .../default-jdk_2%3a1.11-72build2_amd64.deb ...
  30. Unpacking default-jdk (2:1.11-72build2) ...
  31. Setting up default-jre-headless (2:1.11-72build2) ...
  32. Setting up default-jre (2:1.11-72build2) ...
  33. Setting up default-jdk-headless (2:1.11-72build2) ...
  34. Setting up default-jdk (2:1.11-72build2) ...
  • libtinfo5

实际命令及结果如下:

  1. $ sudo apt install libtinfo5
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following NEW packages will be installed:
  6. libtinfo5
  7. 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
  8. Need to get 100 kB of archives.
  9. After this operation, 557 kB of additional disk space will be used.
  10. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libtinfo5 amd64 6.3-2ubuntu0.1 [100 kB]
  11. Fetched 100 kB in 0s (476 kB/s)
  12. Selecting previously unselected package libtinfo5:amd64.
  13. (Reading database ... 217186 files and directories currently installed.)
  14. Preparing to unpack .../libtinfo5_6.3-2ubuntu0.1_amd64.deb ...
  15. Unpacking libtinfo5:amd64 (6.3-2ubuntu0.1) ...
  16. Setting up libtinfo5:amd64 (6.3-2ubuntu0.1) ...
  17. Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
  • u-boot-tools

实际命令及结果如下:

  1. $ sudo apt install u-boot-tools
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6. device-tree-compiler libfdt1 libubootenv-tool libubootenv0.1
  7. The following NEW packages will be installed:
  8. device-tree-compiler libfdt1 libubootenv-tool libubootenv0.1 u-boot-tools
  9. 0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
  10. Need to get 467 kB of archives.
  11. After this operation, 1,368 kB of additional disk space will be used.
  12. Do you want to continue? [Y/n] y
  13. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libubootenv0.1 amd64 0.3.2-1build1 [12.0 kB]
  14. Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libubootenv-tool amd64 0.3.2-1build1 [7,304 B]
  15. Get:3 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 u-boot-tools amd64 2022.01+dfsg-2ubuntu2.5 [200 kB]
  16. Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfdt1 amd64 1.6.1-1 [20.0 kB]
  17. Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 device-tree-compiler amd64 1.6.1-1 [228 kB]
  18. Fetched 467 kB in 0s (1,504 kB/s)
  19. Selecting previously unselected package libubootenv0.1:amd64.
  20. (Reading database ... 217193 files and directories currently installed.)
  21. Preparing to unpack .../libubootenv0.1_0.3.2-1build1_amd64.deb ...
  22. Unpacking libubootenv0.1:amd64 (0.3.2-1build1) ...
  23. Selecting previously unselected package libubootenv-tool.
  24. Preparing to unpack .../libubootenv-tool_0.3.2-1build1_amd64.deb ...
  25. Unpacking libubootenv-tool (0.3.2-1build1) ...
  26. Selecting previously unselected package u-boot-tools.
  27. Preparing to unpack .../u-boot-tools_2022.01+dfsg-2ubuntu2.5_amd64.deb ...
  28. Unpacking u-boot-tools (2022.01+dfsg-2ubuntu2.5) ...
  29. Selecting previously unselected package libfdt1:amd64.
  30. Preparing to unpack .../libfdt1_1.6.1-1_amd64.deb ...
  31. Unpacking libfdt1:amd64 (1.6.1-1) ...
  32. Selecting previously unselected package device-tree-compiler.
  33. Preparing to unpack .../device-tree-compiler_1.6.1-1_amd64.deb ...
  34. Unpacking device-tree-compiler (1.6.1-1) ...
  35. Setting up libfdt1:amd64 (1.6.1-1) ...
  36. Setting up libubootenv0.1:amd64 (0.3.2-1build1) ...
  37. Setting up device-tree-compiler (1.6.1-1) ...
  38. Setting up u-boot-tools (2022.01+dfsg-2ubuntu2.5) ...
  39. Setting up libubootenv-tool (0.3.2-1build1) ...
  40. Processing triggers for man-db (2.10.2-1) ...
  41. Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
  • mtools

实际命令及结果如下:

  1. $ sudo apt install mtools
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. Suggested packages:
  6. floppyd
  7. The following NEW packages will be installed:
  8. mtools
  9. 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
  10. Need to get 201 kB of archives.
  11. After this operation, 413 kB of additional disk space will be used.
  12. Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 mtools amd64 4.0.33-1+really4.0.32-1build1 [201 kB]
  13. Fetched 201 kB in 1s (134 kB/s)
  14. Selecting previously unselected package mtools.
  15. (Reading database ... 217264 files and directories currently installed.)
  16. Preparing to unpack .../mtools_4.0.33-1+really4.0.32-1build1_amd64.deb ...
  17. Unpacking mtools (4.0.33-1+really4.0.32-1build1) ...
  18. Setting up mtools (4.0.33-1+really4.0.32-1build1) ...
  19. Processing triggers for install-info (6.8-4build1) ...
  20. Processing triggers for man-db (2.10.2-1) ...
  • mtd-utils

实际命令及结果如下:

  1. $ sudo apt install mtd-utils
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6. libiniparser1
  7. The following NEW packages will be installed:
  8. libiniparser1 mtd-utils
  9. 0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
  10. Need to get 285 kB of archives.
  11. After this operation, 1,331 kB of additional disk space will be used.
  12. Do you want to continue? [Y/n] y
  13. Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libiniparser1 amd64 4.1-4ubuntu4.1 [11.2 kB]
  14. Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 mtd-utils amd64 1:2.1.4-1 [273 kB]
  15. Fetched 285 kB in 0s (1,092 kB/s)
  16. Selecting previously unselected package libiniparser1:amd64.
  17. (Reading database ... 217340 files and directories currently installed.)
  18. Preparing to unpack .../libiniparser1_4.1-4ubuntu4.1_amd64.deb ...
  19. Unpacking libiniparser1:amd64 (4.1-4ubuntu4.1) ...
  20. Selecting previously unselected package mtd-utils.
  21. Preparing to unpack .../mtd-utils_1%3a2.1.4-1_amd64.deb ...
  22. Unpacking mtd-utils (1:2.1.4-1) ...
  23. Setting up libiniparser1:amd64 (4.1-4ubuntu4.1) ...
  24. Setting up mtd-utils (1:2.1.4-1) ...
  25. Processing triggers for man-db (2.10.2-1) ...
  26. Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
  • scons

实际命令及结果如下:

  1. $ sudo apt install scons
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following NEW packages will be installed:
  6. scons
  7. 0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
  8. Need to get 469 kB of archives.
  9. After this operation, 2,316 kB of additional disk space will be used.
  10. Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 scons all 4.0.1+dfsg-2 [469 kB]
  11. Fetched 469 kB in 1s (846 kB/s)
  12. Selecting previously unselected package scons.
  13. (Reading database ... 217399 files and directories currently installed.)
  14. Preparing to unpack .../scons_4.0.1+dfsg-2_all.deb ...
  15. Unpacking scons (4.0.1+dfsg-2) ...
  16. Setting up scons (4.0.1+dfsg-2) ...
  17. Processing triggers for man-db (2.10.2-1) ...
  • gcc-arm-none-eabi

实际命令及结果如下:

  1. $ sudo apt install gcc-arm-none-eabi
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6. binutils-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-dev libstdc++-arm-none-eabi-newlib
  7. Suggested packages:
  8. libnewlib-doc
  9. The following NEW packages will be installed:
  10. binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-dev libstdc++-arm-none-eabi-newlib
  11. 0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
  12. Need to get 442 MB of archives.
  13. After this operation, 2,575 MB of additional disk space will be used.
  14. Do you want to continue? [Y/n] y
  15. Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 binutils-arm-none-eabi amd64 2.38-3ubuntu1+15build1 [3,040 kB]
  16. Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 gcc-arm-none-eabi amd64 15:10.3-2021.07-4 [47.7 MB]
  17. Get:3 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 libstdc++-arm-none-eabi-dev all 15:10.3-2021.07-4+17 [1,049 kB]
  18. Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libnewlib-dev all 3.3.0-1.3 [137 kB]
  19. Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libnewlib-arm-none-eabi all 3.3.0-1.3 [43.2 MB]
  20. Get:6 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 libstdc++-arm-none-eabi-newlib all 15:10.3-2021.07-4+17 [347 MB]
  21. Fetched 442 MB in 16s (27.9 MB/s)
  22. Selecting previously unselected package binutils-arm-none-eabi.
  23. (Reading database ... 217630 files and directories currently installed.)
  24. Preparing to unpack .../0-binutils-arm-none-eabi_2.38-3ubuntu1+15build1_amd64.deb ...
  25. Unpacking binutils-arm-none-eabi (2.38-3ubuntu1+15build1) ...
  26. Selecting previously unselected package gcc-arm-none-eabi.
  27. Preparing to unpack .../1-gcc-arm-none-eabi_15%3a10.3-2021.07-4_amd64.deb ...
  28. Unpacking gcc-arm-none-eabi (15:10.3-2021.07-4) ...
  29. Selecting previously unselected package libstdc++-arm-none-eabi-dev.
  30. Preparing to unpack .../2-libstdc++-arm-none-eabi-dev_15%3a10.3-2021.07-4+17_all.deb ...
  31. Unpacking libstdc++-arm-none-eabi-dev (15:10.3-2021.07-4+17) ...
  32. Selecting previously unselected package libnewlib-dev.
  33. Preparing to unpack .../3-libnewlib-dev_3.3.0-1.3_all.deb ...
  34. Unpacking libnewlib-dev (3.3.0-1.3) ...
  35. Selecting previously unselected package libnewlib-arm-none-eabi.
  36. Preparing to unpack .../4-libnewlib-arm-none-eabi_3.3.0-1.3_all.deb ...
  37. Unpacking libnewlib-arm-none-eabi (3.3.0-1.3) ...
  38. Selecting previously unselected package libstdc++-arm-none-eabi-newlib.
  39. Preparing to unpack .../5-libstdc++-arm-none-eabi-newlib_15%3a10.3-2021.07-4+17_all.deb ...
  40. Unpacking libstdc++-arm-none-eabi-newlib (15:10.3-2021.07-4+17) ...
  41. Setting up binutils-arm-none-eabi (2.38-3ubuntu1+15build1) ...
  42. Setting up gcc-arm-none-eabi (15:10.3-2021.07-4) ...
  43. Setting up libnewlib-dev (3.3.0-1.3) ...
  44. Setting up libnewlib-arm-none-eabi (3.3.0-1.3) ...
  45. Setting up libstdc++-arm-none-eabi-dev (15:10.3-2021.07-4+17) ...
  46. Setting up libstdc++-arm-none-eabi-newlib (15:10.3-2021.07-4+17) ...
  47. Processing triggers for ccache (4.5.1-1) ...
  48. Updating symlinks in /usr/lib/ccache ...
  49. Processing triggers for man-db (2.10.2-1) ...
  50. Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
  • gcc-arm-linux-gnueabi

实际命令及结果如下:

  1. $ sudo apt install gcc-arm-linux-gnueabi
  2. Reading package lists... Done
  3. Building dependency tree... Done
  4. Reading state information... Done
  5. The following additional packages will be installed:
  6. binutils-arm-linux-gnueabi cpp-11-arm-linux-gnueabi cpp-arm-linux-gnueabi gcc-11-arm-linux-gnueabi gcc-11-arm-linux-gnueabi-base gcc-11-cross-base gcc-12-cross-base
  7. libasan6-armel-cross libatomic1-armel-cross libc6-armel-cross libc6-dev-armel-cross libgcc-11-dev-armel-cross libgcc-s1-armel-cross libgomp1-armel-cross libstdc++6-armel-cross
  8. libubsan1-armel-cross linux-libc-dev-armel-cross
  9. Suggested packages:
  10. binutils-doc gcc-11-locales cpp-doc gcc-11-doc autoconf automake libtool gdb-arm-linux-gnueabi gcc-doc
  11. The following packages will be REMOVED:
  12. gcc-multilib
  13. The following NEW packages will be installed:
  14. binutils-arm-linux-gnueabi cpp-11-arm-linux-gnueabi cpp-arm-linux-gnueabi gcc-11-arm-linux-gnueabi gcc-11-arm-linux-gnueabi-base gcc-11-cross-base gcc-12-cross-base
  15. gcc-arm-linux-gnueabi libasan6-armel-cross libatomic1-armel-cross libc6-armel-cross libc6-dev-armel-cross libgcc-11-dev-armel-cross libgcc-s1-armel-cross libgomp1-armel-cross
  16. libstdc++6-armel-cross libubsan1-armel-cross linux-libc-dev-armel-cross
  17. 0 upgraded, 18 newly installed, 1 to remove and 5 not upgraded.
  18. Need to get 38.4 MB of archives.
  19. After this operation, 123 MB of additional disk space will be used.
  20. Do you want to continue? [Y/n] y
  21. Get:1 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 gcc-11-arm-linux-gnueabi-base amd64 11.4.0-1ubuntu1~22.04cross1 [20.5 kB]
  22. Get:2 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 cpp-11-arm-linux-gnueabi amd64 11.4.0-1ubuntu1~22.04cross1 [8,864 kB]
  23. Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 cpp-arm-linux-gnueabi amd64 4:11.2.0-1ubuntu1 [3,474 B]
  24. Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 binutils-arm-linux-gnueabi amd64 2.38-4ubuntu2.4 [3,495 kB]
  25. Get:5 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11-cross-base all 11.4.0-1ubuntu1~22.04cross1 [15.5 kB]
  26. Get:6 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-12-cross-base all 12.3.0-1ubuntu1~22.04cross1 [15.7 kB]
  27. Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libc6-armel-cross all 2.35-0ubuntu1cross3 [1,015 kB]
  28. Get:8 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgcc-s1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [46.4 kB]
  29. Get:9 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgomp1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [119 kB]
  30. Get:10 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libatomic1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [10.3 kB]
  31. Get:11 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libasan6-armel-cross all 11.4.0-1ubuntu1~22.04cross1 [2,251 kB]
  32. Get:12 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libstdc++6-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [573 kB]
  33. Get:13 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libubsan1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [975 kB]
  34. Get:14 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgcc-11-dev-armel-cross all 11.4.0-1ubuntu1~22.04cross1 [845 kB]
  35. Get:15 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 gcc-11-arm-linux-gnueabi amd64 11.4.0-1ubuntu1~22.04cross1 [17.6 MB]
  36. Get:16 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 gcc-arm-linux-gnueabi amd64 4:11.2.0-1ubuntu1 [1,230 B]
  37. Get:17 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 linux-libc-dev-armel-cross all 5.15.0-22.22cross3 [1,203 kB]
  38. Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libc6-dev-armel-cross all 2.35-0ubuntu1cross3 [1,398 kB]
  39. Fetched 38.4 MB in 2s (19.5 MB/s)
  40. (Reading database ... 221717 files and directories currently installed.)
  41. Removing gcc-multilib (4:11.2.0-1ubuntu1) ...
  42. Selecting previously unselected package gcc-11-arm-linux-gnueabi-base:amd64.
  43. (Reading database ... 221715 files and directories currently installed.)
  44. Preparing to unpack .../00-gcc-11-arm-linux-gnueabi-base_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
  45. Unpacking gcc-11-arm-linux-gnueabi-base:amd64 (11.4.0-1ubuntu1~22.04cross1) ...
  46. Selecting previously unselected package cpp-11-arm-linux-gnueabi.
  47. Preparing to unpack .../01-cpp-11-arm-linux-gnueabi_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
  48. Unpacking cpp-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
  49. Selecting previously unselected package cpp-arm-linux-gnueabi.
  50. Preparing to unpack .../02-cpp-arm-linux-gnueabi_4%3a11.2.0-1ubuntu1_amd64.deb ...
  51. Unpacking cpp-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
  52. Selecting previously unselected package binutils-arm-linux-gnueabi.
  53. Preparing to unpack .../03-binutils-arm-linux-gnueabi_2.38-4ubuntu2.4_amd64.deb ...
  54. Unpacking binutils-arm-linux-gnueabi (2.38-4ubuntu2.4) ...
  55. Selecting previously unselected package gcc-11-cross-base.
  56. Preparing to unpack .../04-gcc-11-cross-base_11.4.0-1ubuntu1~22.04cross1_all.deb ...
  57. Unpacking gcc-11-cross-base (11.4.0-1ubuntu1~22.04cross1) ...
  58. Selecting previously unselected package gcc-12-cross-base.
  59. Preparing to unpack .../05-gcc-12-cross-base_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  60. Unpacking gcc-12-cross-base (12.3.0-1ubuntu1~22.04cross1) ...
  61. Selecting previously unselected package libc6-armel-cross.
  62. Preparing to unpack .../06-libc6-armel-cross_2.35-0ubuntu1cross3_all.deb ...
  63. Unpacking libc6-armel-cross (2.35-0ubuntu1cross3) ...
  64. Selecting previously unselected package libgcc-s1-armel-cross.
  65. Preparing to unpack .../07-libgcc-s1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  66. Unpacking libgcc-s1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  67. Selecting previously unselected package libgomp1-armel-cross.
  68. Preparing to unpack .../08-libgomp1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  69. Unpacking libgomp1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  70. Selecting previously unselected package libatomic1-armel-cross.
  71. Preparing to unpack .../09-libatomic1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  72. Unpacking libatomic1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  73. Selecting previously unselected package libasan6-armel-cross.
  74. Preparing to unpack .../10-libasan6-armel-cross_11.4.0-1ubuntu1~22.04cross1_all.deb ...
  75. Unpacking libasan6-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
  76. Selecting previously unselected package libstdc++6-armel-cross.
  77. Preparing to unpack .../11-libstdc++6-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  78. Unpacking libstdc++6-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  79. Selecting previously unselected package libubsan1-armel-cross.
  80. Preparing to unpack .../12-libubsan1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
  81. Unpacking libubsan1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  82. Selecting previously unselected package libgcc-11-dev-armel-cross.
  83. Preparing to unpack .../13-libgcc-11-dev-armel-cross_11.4.0-1ubuntu1~22.04cross1_all.deb ...
  84. Unpacking libgcc-11-dev-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
  85. Selecting previously unselected package gcc-11-arm-linux-gnueabi.
  86. Preparing to unpack .../14-gcc-11-arm-linux-gnueabi_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
  87. Unpacking gcc-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
  88. Selecting previously unselected package gcc-arm-linux-gnueabi.
  89. Preparing to unpack .../15-gcc-arm-linux-gnueabi_4%3a11.2.0-1ubuntu1_amd64.deb ...
  90. Unpacking gcc-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
  91. Selecting previously unselected package linux-libc-dev-armel-cross.
  92. Preparing to unpack .../16-linux-libc-dev-armel-cross_5.15.0-22.22cross3_all.deb ...
  93. Unpacking linux-libc-dev-armel-cross (5.15.0-22.22cross3) ...
  94. Selecting previously unselected package libc6-dev-armel-cross.
  95. Preparing to unpack .../17-libc6-dev-armel-cross_2.35-0ubuntu1cross3_all.deb ...
  96. Unpacking libc6-dev-armel-cross (2.35-0ubuntu1cross3) ...
  97. Setting up binutils-arm-linux-gnueabi (2.38-4ubuntu2.4) ...
  98. Setting up gcc-11-arm-linux-gnueabi-base:amd64 (11.4.0-1ubuntu1~22.04cross1) ...
  99. Setting up gcc-12-cross-base (12.3.0-1ubuntu1~22.04cross1) ...
  100. Setting up cpp-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
  101. Setting up linux-libc-dev-armel-cross (5.15.0-22.22cross3) ...
  102. Setting up cpp-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
  103. Setting up libc6-armel-cross (2.35-0ubuntu1cross3) ...
  104. Setting up gcc-11-cross-base (11.4.0-1ubuntu1~22.04cross1) ...
  105. Setting up libc6-dev-armel-cross (2.35-0ubuntu1cross3) ...
  106. Setting up libgomp1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  107. Setting up libgcc-s1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  108. Setting up libstdc++6-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  109. Setting up libatomic1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  110. Setting up libubsan1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
  111. Setting up libasan6-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
  112. Setting up libgcc-11-dev-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
  113. Setting up gcc-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
  114. Setting up gcc-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
  115. Processing triggers for ccache (4.5.1-1) ...
  116. Updating symlinks in /usr/lib/ccache ...
  117. Processing triggers for man-db (2.10.2-1) ...
  118. Processing triggers for libc-bin (2.35-0ubuntu3.5) ...

这样就把上边提示缺少的依赖包都下载安装了。再次执行以下命令进行编译:

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

实际命令及结果如下:

  1. $ sudo ./build.sh --product-name dayu210 --ccache
  2. ++++++++++++++++++++++++++++++++++++++++
  3. The system shell is bash 5.1.16(1)-release
  4. ++++++++++++++++++++++++++++++++++++++++
  5. 2024-01-02 23:23:43
  6. --product-name dayu210 --ccache
  7. Current Node.js version is v14.21.1
  8. Node.js version check passed
  9. lockfile=false
  10. start set ohpm
  11. init ohpm
  12. npm WARN @ohos/ohpm@1.1.2 No description
  13. npm WARN @ohos/ohpm@1.1.2 No repository field.
  14. up to date in 1.254s
  15. 10 packages are looking for funding
  16. run `npm fund` for details
  17. ohpm version is 1.1.2
  18. ohpm DEBUG: config set "registry" "https://repo.harmonyos.com/ohpm/"
  19. ohpm DEBUG: config set "strict_ssl" "false"
  20. ohpm DEBUG: config set "log_level" "debug"
  21. remove /root/.hvigor
  22. ~/.hvigor/wrapper/tools /home/ph/OpenHarmony_Source
  23. install pnpm
  24. npm notice created a lockfile as package-lock.json. You should commit this file.
  25. npm WARN tools No description
  26. npm WARN tools No repository field.
  27. npm WARN tools No license field.
  28. added 1 package in 1.735s
  29. 1 package is looking for funding
  30. run `npm fund` for details
  31. /home/ph/OpenHarmony_Source
  32. [OHOS INFO] Set cache size limit to 100.0 GB
  33. [OHOS INFO] generated build prop info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build.prop
  34. [OHOS INFO] generated build config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build_config.json
  35. [OHOS INFO] generated product parts info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/parts.json
  36. [OHOS INFO] generated parts config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/parts_config.json
  37. [OHOS INFO] generated build gnargs prop info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build_gnargs.prop
  38. [OHOS INFO] generated features info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/features.json
  39. [OHOS INFO] generated syscap info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/syscap.json
  40. [OHOS INFO] generated exclusion modules info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/exclusion_modules.json
  41. [OHOS INFO] generated platforms build info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/platforms.build
  42. [OHOS INFO] generated subsystem config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/subsystem_config.json
  43. [OHOS INFO] generated system capability info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/systemcapability.json
  44. [OHOS INFO] generated compile_standard_whitelist info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/compile_standard_whitelist.json
  45. [OHOS INFO] Checking all build args...
  46. ……
  47. ……

从昨晚(22点半左右)到现在(8点半左右)还没有结束。不管最终结果如何,这次不像之前编译过程,1~2个小时就提示错误而中止。看来通过下载安装以上包,之前遇到的以及假使不安以上装包未来可能遇到的大多数坑已经被填了。

现在静待最终编译结果吧。这将放到下一回中继续跟进。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/219737
推荐阅读
相关标签
  

闽ICP备14008679号