接前一篇文章:玩转贝启科技BQ3588C开源鸿蒙系统开发板 ------ 编译构建及此过程中的踩坑填坑(1)
上一篇讲到在执行以下命令时再次出现了错误:
bash
$ sudo ./build.sh --product-name dayu210 --ccache
错误如下:
bash
......
[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 <openssl/bio.h>
[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
解决方法:
通过apt下载安装openssl,实际命令及结果如下:
bash
$ sudo apt install openssl
[sudo] password for ph:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
openssl is already the newest version (3.0.2-0ubuntu1.12).
openssl set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
说明openssl已经安装,问题还不在这。还通过apt下载安装libssl-dev。实际命令及结果如下:
bash
$ sudo apt install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
libssl-doc
The following NEW packages will be installed:
libssl-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2,373 kB of archives.
After this operation, 12.4 MB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.12 [2,373 kB]
Fetched 2,373 kB in 0s (7,590 kB/s)
Selecting previously unselected package libssl-dev:amd64.
(Reading database ... 215071 files and directories currently installed.)
Preparing to unpack .../libssl-dev_3.0.2-0ubuntu1.12_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.2-0ubuntu1.12) ...
Setting up libssl-dev:amd64 (3.0.2-0ubuntu1.12) ...
libssl-dev包安装后,在/usr/include/下就会有openssl文件夹以及其下的bio.h等文件了。
重新执行编译命令,实际命令及结果如下:
bash
$ sudo ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 19:15:24
--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/ohpm@1.1.2 No description
npm WARN @ohos/ohpm@1.1.2 No repository field.
up to date in 1.206s
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.72s
1 package is looking for funding
run `npm fund` for details
/home/ph/OpenHarmony_Source
default-jdk is not installed. please install it.
libtinfo5 is not installed. please install it.
genext2fs is not installed. please install it.
u-boot-tools is not installed. please install it.
mtools is not installed. please install it.
mtd-utils is not installed. please install it.
scons is not installed. please install it.
gcc-arm-none-eabi is not installed. please install it.
gcc-arm-linux-gnueabi is not installed. please install it.
Missing dependencies, please check!
[OHOS INFO] Set cache size limit to 100.0 GB
......
......
经过了一段时间,最终仍旧出现了错误:
bash
......
[OHOS INFO] [13156/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_switch.o
[OHOS INFO] [13157/51410] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS INFO] [13158/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tab_content.o
[OHOS INFO] [13159/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tab_bar.o
[OHOS INFO] [13160/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_tabs.o
[OHOS INFO] [13161/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_text.o
[OHOS INFO] [13162/51410] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_textarea.o
[OHOS ERROR] [13157/51410] 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] LD [M] drivers/media/tuners/tuner-xc2028.ko
[OHOS ERROR] LD [M] drivers/media/tuners/xc4000.ko
[OHOS ERROR] LD [M] drivers/media/tuners/xc5000.ko
[OHOS ERROR] make: *** [arch/arm64/Makefile:205: rk3588-bearkey-bq3588c1-linux.img] Error 2
[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/rk3588/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]
=====build error=====
根据华为开发者论坛中的说法,需要先通过apt下载安装liblz4-tool,实际命令及结果如下:
bash
$ sudo apt install liblz4-tool
[sudo] password for ph:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
lz4
The following NEW packages will be installed:
liblz4-tool lz4
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 92.4 kB of archives.
After this operation, 249 kB 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 lz4 amd64 1.9.3-2build2 [90.0 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 liblz4-tool all 1.9.3-2build2 [2,342 B]
Fetched 92.4 kB in 0s (330 kB/s)
Selecting previously unselected package lz4.
(Reading database ... 215219 files and directories currently installed.)
Preparing to unpack .../lz4_1.9.3-2build2_amd64.deb ...
Unpacking lz4 (1.9.3-2build2) ...
Selecting previously unselected package liblz4-tool.
Preparing to unpack .../liblz4-tool_1.9.3-2build2_all.deb ...
Unpacking liblz4-tool (1.9.3-2build2) ...
Setting up lz4 (1.9.3-2build2) ...
Setting up liblz4-tool (1.9.3-2build2) ...
Processing triggers for man-db (2.10.2-1) ...
再次执行编译,仍然有错误:
bash
......
[OHOS INFO] [4404/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_menu.o
[OHOS INFO] [4405/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_navigation_menu.o
[OHOS INFO] [4406/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_picker_dialog.o
[OHOS INFO] [4407/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_option.o
[OHOS INFO] [4408/43232] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_piece.o
[OHOS ERROR] [4403/43232] 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] E/write_file(1416): #### [zhq] src_path: vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
[OHOS ERROR] E/write_file(1416): #### [zhq] src_path: logo.bmp
[OHOS ERROR] E/write_file(1416): #### [zhq] src_path: logo_kernel.bmp
[OHOS ERROR] dtb vendor/arch/arm64/boot/dts/rockchip/rk3588-bearkey-bq3588c1-linux.dtb
[OHOS ERROR] logo logo.bmp
[OHOS ERROR] logo_kernel logo_kernel.bmp
[OHOS ERROR] Image: resource.img (with rk3588-bearkey-bq3588c1-linux.dtb logo.bmp logo_kernel.bmp) is ready
[OHOS ERROR] /home/ph/OpenHarmony_Source/out/rk3588
[OHOS ERROR] blocks = 4096 block_size 16384
[OHOS ERROR] ../kernel/src_tmp/linux-5.10/make-boot.sh: line 35: genext2fs: command not found
[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/rk3588/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]
=====build error=====
这次根据提示,直接看一下out/rk3588/build.log的内容,看看错误到底在哪里。
这个文件当前有20508行,需要具体定位。经过一番仔细查找定位,最终锁定在这一行:
bash
../kernel/src_tmp/linux-5.10/make-boot.sh: line 35: genext2fs: command not found
此时不由得联想到,本文的上边有一段提示:
bash
$ sudo ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 19:15:24
--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/ohpm@1.1.2 No description
npm WARN @ohos/ohpm@1.1.2 No repository field.
up to date in 1.206s
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.72s
1 package is looking for funding
run `npm fund` for details
/home/ph/OpenHarmony_Source
default-jdk is not installed. please install it.
libtinfo5 is not installed. please install it.
genext2fs is not installed. please install it.
u-boot-tools is not installed. please install it.
mtools is not installed. please install it.
mtd-utils is not installed. please install it.
scons is not installed. please install it.
gcc-arm-none-eabi is not installed. please install it.
gcc-arm-linux-gnueabi is not installed. please install it.
Missing dependencies, please check!
[OHOS INFO] Set cache size limit to 100.0 GB
......
......
最下边的这一段中提示了有一些包需要安装,其中就包括这个genext2fs。这回索性就把上边提示缺少的包一把都安装上,省得以后再一个一个往出蹦错误,都下载安装完之后再尝试编译。
一个一个通过apt进行下载安装。
- genext2fs
实际命令及结果如下:
bash
$ sudo apt install genext2fs
[sudo] password for ph:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
genext2fs
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 31.1 kB of archives.
After this operation, 81.9 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 genext2fs amd64 1.5.0-2 [31.1 kB]
Fetched 31.1 kB in 0s (151 kB/s)
Selecting previously unselected package genext2fs.
(Reading database ... 217174 files and directories currently installed.)
Preparing to unpack .../genext2fs_1.5.0-2_amd64.deb ...
Unpacking genext2fs (1.5.0-2) ...
Setting up genext2fs (1.5.0-2) ...
Processing triggers for man-db (2.10.2-1) ...
- default-jdk
实际命令及结果如下:
bash
$ sudo apt install default-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
default-jdk-headless default-jre default-jre-headless
The following NEW packages will be installed:
default-jdk default-jdk-headless default-jre default-jre-headless
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 5,788 B of archives.
After this operation, 38.9 kB 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 default-jre-headless amd64 2:1.11-72build2 [3,042 B]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jre amd64 2:1.11-72build2 [896 B]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jdk-headless amd64 2:1.11-72build2 [942 B]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 default-jdk amd64 2:1.11-72build2 [908 B]
Fetched 5,788 B in 0s (21.6 kB/s)
Selecting previously unselected package default-jre-headless.
(Reading database ... 217179 files and directories currently installed.)
Preparing to unpack .../default-jre-headless_2%3a1.11-72build2_amd64.deb ...
Unpacking default-jre-headless (2:1.11-72build2) ...
Selecting previously unselected package default-jre.
Preparing to unpack .../default-jre_2%3a1.11-72build2_amd64.deb ...
Unpacking default-jre (2:1.11-72build2) ...
Selecting previously unselected package default-jdk-headless.
Preparing to unpack .../default-jdk-headless_2%3a1.11-72build2_amd64.deb ...
Unpacking default-jdk-headless (2:1.11-72build2) ...
Selecting previously unselected package default-jdk.
Preparing to unpack .../default-jdk_2%3a1.11-72build2_amd64.deb ...
Unpacking default-jdk (2:1.11-72build2) ...
Setting up default-jre-headless (2:1.11-72build2) ...
Setting up default-jre (2:1.11-72build2) ...
Setting up default-jdk-headless (2:1.11-72build2) ...
Setting up default-jdk (2:1.11-72build2) ...
- libtinfo5
实际命令及结果如下:
bash
$ sudo apt install libtinfo5
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
libtinfo5
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 100 kB of archives.
After this operation, 557 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libtinfo5 amd64 6.3-2ubuntu0.1 [100 kB]
Fetched 100 kB in 0s (476 kB/s)
Selecting previously unselected package libtinfo5:amd64.
(Reading database ... 217186 files and directories currently installed.)
Preparing to unpack .../libtinfo5_6.3-2ubuntu0.1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.3-2ubuntu0.1) ...
Setting up libtinfo5:amd64 (6.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
- u-boot-tools
实际命令及结果如下:
bash
$ sudo apt install u-boot-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
device-tree-compiler libfdt1 libubootenv-tool libubootenv0.1
The following NEW packages will be installed:
device-tree-compiler libfdt1 libubootenv-tool libubootenv0.1 u-boot-tools
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 467 kB of archives.
After this operation, 1,368 kB 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 libubootenv0.1 amd64 0.3.2-1build1 [12.0 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libubootenv-tool amd64 0.3.2-1build1 [7,304 B]
Get:3 http://cn.archive.ubuntu.com/ubuntu jammy-updates/main amd64 u-boot-tools amd64 2022.01+dfsg-2ubuntu2.5 [200 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 libfdt1 amd64 1.6.1-1 [20.0 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 device-tree-compiler amd64 1.6.1-1 [228 kB]
Fetched 467 kB in 0s (1,504 kB/s)
Selecting previously unselected package libubootenv0.1:amd64.
(Reading database ... 217193 files and directories currently installed.)
Preparing to unpack .../libubootenv0.1_0.3.2-1build1_amd64.deb ...
Unpacking libubootenv0.1:amd64 (0.3.2-1build1) ...
Selecting previously unselected package libubootenv-tool.
Preparing to unpack .../libubootenv-tool_0.3.2-1build1_amd64.deb ...
Unpacking libubootenv-tool (0.3.2-1build1) ...
Selecting previously unselected package u-boot-tools.
Preparing to unpack .../u-boot-tools_2022.01+dfsg-2ubuntu2.5_amd64.deb ...
Unpacking u-boot-tools (2022.01+dfsg-2ubuntu2.5) ...
Selecting previously unselected package libfdt1:amd64.
Preparing to unpack .../libfdt1_1.6.1-1_amd64.deb ...
Unpacking libfdt1:amd64 (1.6.1-1) ...
Selecting previously unselected package device-tree-compiler.
Preparing to unpack .../device-tree-compiler_1.6.1-1_amd64.deb ...
Unpacking device-tree-compiler (1.6.1-1) ...
Setting up libfdt1:amd64 (1.6.1-1) ...
Setting up libubootenv0.1:amd64 (0.3.2-1build1) ...
Setting up device-tree-compiler (1.6.1-1) ...
Setting up u-boot-tools (2022.01+dfsg-2ubuntu2.5) ...
Setting up libubootenv-tool (0.3.2-1build1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
- mtools
实际命令及结果如下:
bash
$ sudo apt install mtools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
floppyd
The following NEW packages will be installed:
mtools
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 201 kB of archives.
After this operation, 413 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 mtools amd64 4.0.33-1+really4.0.32-1build1 [201 kB]
Fetched 201 kB in 1s (134 kB/s)
Selecting previously unselected package mtools.
(Reading database ... 217264 files and directories currently installed.)
Preparing to unpack .../mtools_4.0.33-1+really4.0.32-1build1_amd64.deb ...
Unpacking mtools (4.0.33-1+really4.0.32-1build1) ...
Setting up mtools (4.0.33-1+really4.0.32-1build1) ...
Processing triggers for install-info (6.8-4build1) ...
Processing triggers for man-db (2.10.2-1) ...
- mtd-utils
实际命令及结果如下:
bash
$ sudo apt install mtd-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libiniparser1
The following NEW packages will be installed:
libiniparser1 mtd-utils
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 285 kB of archives.
After this operation, 1,331 kB 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-updates/main amd64 libiniparser1 amd64 4.1-4ubuntu4.1 [11.2 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 mtd-utils amd64 1:2.1.4-1 [273 kB]
Fetched 285 kB in 0s (1,092 kB/s)
Selecting previously unselected package libiniparser1:amd64.
(Reading database ... 217340 files and directories currently installed.)
Preparing to unpack .../libiniparser1_4.1-4ubuntu4.1_amd64.deb ...
Unpacking libiniparser1:amd64 (4.1-4ubuntu4.1) ...
Selecting previously unselected package mtd-utils.
Preparing to unpack .../mtd-utils_1%3a2.1.4-1_amd64.deb ...
Unpacking mtd-utils (1:2.1.4-1) ...
Setting up libiniparser1:amd64 (4.1-4ubuntu4.1) ...
Setting up mtd-utils (1:2.1.4-1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
- scons
实际命令及结果如下:
bash
$ sudo apt install scons
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
scons
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 469 kB of archives.
After this operation, 2,316 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 scons all 4.0.1+dfsg-2 [469 kB]
Fetched 469 kB in 1s (846 kB/s)
Selecting previously unselected package scons.
(Reading database ... 217399 files and directories currently installed.)
Preparing to unpack .../scons_4.0.1+dfsg-2_all.deb ...
Unpacking scons (4.0.1+dfsg-2) ...
Setting up scons (4.0.1+dfsg-2) ...
Processing triggers for man-db (2.10.2-1) ...
- gcc-arm-none-eabi
实际命令及结果如下:
bash
$ sudo apt install gcc-arm-none-eabi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
binutils-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-dev libstdc++-arm-none-eabi-newlib
Suggested packages:
libnewlib-doc
The following NEW packages will be installed:
binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi libnewlib-dev libstdc++-arm-none-eabi-dev libstdc++-arm-none-eabi-newlib
0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
Need to get 442 MB of archives.
After this operation, 2,575 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/universe amd64 binutils-arm-none-eabi amd64 2.38-3ubuntu1+15build1 [3,040 kB]
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]
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]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libnewlib-dev all 3.3.0-1.3 [137 kB]
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]
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]
Fetched 442 MB in 16s (27.9 MB/s)
Selecting previously unselected package binutils-arm-none-eabi.
(Reading database ... 217630 files and directories currently installed.)
Preparing to unpack .../0-binutils-arm-none-eabi_2.38-3ubuntu1+15build1_amd64.deb ...
Unpacking binutils-arm-none-eabi (2.38-3ubuntu1+15build1) ...
Selecting previously unselected package gcc-arm-none-eabi.
Preparing to unpack .../1-gcc-arm-none-eabi_15%3a10.3-2021.07-4_amd64.deb ...
Unpacking gcc-arm-none-eabi (15:10.3-2021.07-4) ...
Selecting previously unselected package libstdc++-arm-none-eabi-dev.
Preparing to unpack .../2-libstdc++-arm-none-eabi-dev_15%3a10.3-2021.07-4+17_all.deb ...
Unpacking libstdc++-arm-none-eabi-dev (15:10.3-2021.07-4+17) ...
Selecting previously unselected package libnewlib-dev.
Preparing to unpack .../3-libnewlib-dev_3.3.0-1.3_all.deb ...
Unpacking libnewlib-dev (3.3.0-1.3) ...
Selecting previously unselected package libnewlib-arm-none-eabi.
Preparing to unpack .../4-libnewlib-arm-none-eabi_3.3.0-1.3_all.deb ...
Unpacking libnewlib-arm-none-eabi (3.3.0-1.3) ...
Selecting previously unselected package libstdc++-arm-none-eabi-newlib.
Preparing to unpack .../5-libstdc++-arm-none-eabi-newlib_15%3a10.3-2021.07-4+17_all.deb ...
Unpacking libstdc++-arm-none-eabi-newlib (15:10.3-2021.07-4+17) ...
Setting up binutils-arm-none-eabi (2.38-3ubuntu1+15build1) ...
Setting up gcc-arm-none-eabi (15:10.3-2021.07-4) ...
Setting up libnewlib-dev (3.3.0-1.3) ...
Setting up libnewlib-arm-none-eabi (3.3.0-1.3) ...
Setting up libstdc++-arm-none-eabi-dev (15:10.3-2021.07-4+17) ...
Setting up libstdc++-arm-none-eabi-newlib (15:10.3-2021.07-4+17) ...
Processing triggers for ccache (4.5.1-1) ...
Updating symlinks in /usr/lib/ccache ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
- gcc-arm-linux-gnueabi
实际命令及结果如下:
bash
$ sudo apt install gcc-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
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
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
libubsan1-armel-cross linux-libc-dev-armel-cross
Suggested packages:
binutils-doc gcc-11-locales cpp-doc gcc-11-doc autoconf automake libtool gdb-arm-linux-gnueabi gcc-doc
The following packages will be REMOVED:
gcc-multilib
The following NEW packages will be installed:
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
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
libstdc++6-armel-cross libubsan1-armel-cross linux-libc-dev-armel-cross
0 upgraded, 18 newly installed, 1 to remove and 5 not upgraded.
Need to get 38.4 MB of archives.
After this operation, 123 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
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]
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]
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]
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]
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]
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]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libc6-armel-cross all 2.35-0ubuntu1cross3 [1,015 kB]
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]
Get:9 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgomp1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [119 kB]
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]
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]
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]
Get:13 http://cn.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libubsan1-armel-cross all 12.3.0-1ubuntu1~22.04cross1 [975 kB]
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]
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]
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]
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]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libc6-dev-armel-cross all 2.35-0ubuntu1cross3 [1,398 kB]
Fetched 38.4 MB in 2s (19.5 MB/s)
(Reading database ... 221717 files and directories currently installed.)
Removing gcc-multilib (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package gcc-11-arm-linux-gnueabi-base:amd64.
(Reading database ... 221715 files and directories currently installed.)
Preparing to unpack .../00-gcc-11-arm-linux-gnueabi-base_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
Unpacking gcc-11-arm-linux-gnueabi-base:amd64 (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package cpp-11-arm-linux-gnueabi.
Preparing to unpack .../01-cpp-11-arm-linux-gnueabi_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
Unpacking cpp-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package cpp-arm-linux-gnueabi.
Preparing to unpack .../02-cpp-arm-linux-gnueabi_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking cpp-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package binutils-arm-linux-gnueabi.
Preparing to unpack .../03-binutils-arm-linux-gnueabi_2.38-4ubuntu2.4_amd64.deb ...
Unpacking binutils-arm-linux-gnueabi (2.38-4ubuntu2.4) ...
Selecting previously unselected package gcc-11-cross-base.
Preparing to unpack .../04-gcc-11-cross-base_11.4.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking gcc-11-cross-base (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package gcc-12-cross-base.
Preparing to unpack .../05-gcc-12-cross-base_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking gcc-12-cross-base (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libc6-armel-cross.
Preparing to unpack .../06-libc6-armel-cross_2.35-0ubuntu1cross3_all.deb ...
Unpacking libc6-armel-cross (2.35-0ubuntu1cross3) ...
Selecting previously unselected package libgcc-s1-armel-cross.
Preparing to unpack .../07-libgcc-s1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libgcc-s1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libgomp1-armel-cross.
Preparing to unpack .../08-libgomp1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libgomp1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libatomic1-armel-cross.
Preparing to unpack .../09-libatomic1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libatomic1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libasan6-armel-cross.
Preparing to unpack .../10-libasan6-armel-cross_11.4.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libasan6-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libstdc++6-armel-cross.
Preparing to unpack .../11-libstdc++6-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libstdc++6-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libubsan1-armel-cross.
Preparing to unpack .../12-libubsan1-armel-cross_12.3.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libubsan1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package libgcc-11-dev-armel-cross.
Preparing to unpack .../13-libgcc-11-dev-armel-cross_11.4.0-1ubuntu1~22.04cross1_all.deb ...
Unpacking libgcc-11-dev-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package gcc-11-arm-linux-gnueabi.
Preparing to unpack .../14-gcc-11-arm-linux-gnueabi_11.4.0-1ubuntu1~22.04cross1_amd64.deb ...
Unpacking gcc-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
Selecting previously unselected package gcc-arm-linux-gnueabi.
Preparing to unpack .../15-gcc-arm-linux-gnueabi_4%3a11.2.0-1ubuntu1_amd64.deb ...
Unpacking gcc-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
Selecting previously unselected package linux-libc-dev-armel-cross.
Preparing to unpack .../16-linux-libc-dev-armel-cross_5.15.0-22.22cross3_all.deb ...
Unpacking linux-libc-dev-armel-cross (5.15.0-22.22cross3) ...
Selecting previously unselected package libc6-dev-armel-cross.
Preparing to unpack .../17-libc6-dev-armel-cross_2.35-0ubuntu1cross3_all.deb ...
Unpacking libc6-dev-armel-cross (2.35-0ubuntu1cross3) ...
Setting up binutils-arm-linux-gnueabi (2.38-4ubuntu2.4) ...
Setting up gcc-11-arm-linux-gnueabi-base:amd64 (11.4.0-1ubuntu1~22.04cross1) ...
Setting up gcc-12-cross-base (12.3.0-1ubuntu1~22.04cross1) ...
Setting up cpp-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
Setting up linux-libc-dev-armel-cross (5.15.0-22.22cross3) ...
Setting up cpp-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
Setting up libc6-armel-cross (2.35-0ubuntu1cross3) ...
Setting up gcc-11-cross-base (11.4.0-1ubuntu1~22.04cross1) ...
Setting up libc6-dev-armel-cross (2.35-0ubuntu1cross3) ...
Setting up libgomp1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Setting up libgcc-s1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Setting up libstdc++6-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Setting up libatomic1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Setting up libubsan1-armel-cross (12.3.0-1ubuntu1~22.04cross1) ...
Setting up libasan6-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
Setting up libgcc-11-dev-armel-cross (11.4.0-1ubuntu1~22.04cross1) ...
Setting up gcc-11-arm-linux-gnueabi (11.4.0-1ubuntu1~22.04cross1) ...
Setting up gcc-arm-linux-gnueabi (4:11.2.0-1ubuntu1) ...
Processing triggers for ccache (4.5.1-1) ...
Updating symlinks in /usr/lib/ccache ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
这样就把上边提示缺少的依赖包都下载安装了。再次执行以下命令进行编译:
bash
sudo ./build.sh --product-name dayu210 --ccache
实际命令及结果如下:
bash
$ sudo ./build.sh --product-name dayu210 --ccache
++++++++++++++++++++++++++++++++++++++++
The system shell is bash 5.1.16(1)-release
++++++++++++++++++++++++++++++++++++++++
2024-01-02 23:23:43
--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/ohpm@1.1.2 No description
npm WARN @ohos/ohpm@1.1.2 No repository field.
up to date in 1.254s
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.735s
1 package is looking for funding
run `npm fund` for details
/home/ph/OpenHarmony_Source
[OHOS INFO] Set cache size limit to 100.0 GB
[OHOS INFO] generated build prop info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build.prop
[OHOS INFO] generated build config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build_config.json
[OHOS INFO] generated product parts info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/parts.json
[OHOS INFO] generated parts config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/parts_config.json
[OHOS INFO] generated build gnargs prop info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/build_gnargs.prop
[OHOS INFO] generated features info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/features.json
[OHOS INFO] generated syscap info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/syscap.json
[OHOS INFO] generated exclusion modules info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/exclusion_modules.json
[OHOS INFO] generated platforms build info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/platforms.build
[OHOS INFO] generated subsystem config info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/subsystem_config.json
[OHOS INFO] generated system capability info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/systemcapability.json
[OHOS INFO] generated compile_standard_whitelist info to /home/ph/OpenHarmony_Source/out/preloader/dayu210/compile_standard_whitelist.json
[OHOS INFO] Checking all build args...
......
......
从昨晚(22点半左右)到现在(8点半左右)还没有结束。不管最终结果如何,这次不像之前编译过程,1~2个小时就提示错误而中止。看来通过下载安装以上包,之前遇到的以及假使不安以上装包未来可能遇到的大多数坑已经被填了。
现在静待最终编译结果吧。这将放到下一回中继续跟进。