Buildroot 编译报错
Posted: 2026-01-06 15:46
os: Ubuntu 22.04.5 LTS
sdk版本:Luckfox_Lyra_SDK_250815.tar.gz
流程:
1 ./build.sh lunch 依次选择 [4] RK3506B_Luckfox_Lyra_Zero_W、 [1] SPI_NAND
2 ./build.sh
错误如下:
Buildroot config changed!
You might need to clean it before building:
rm -rf /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox
Done in 5s (error code: 2)
Failed to build rockchip_rk3506_luckfox:
# 2026-01-06 23:36:29
2026-01-06T23:36:29 make: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:32 RKPARTYBOX_CONF_OPTS is
2026-01-06T23:36:33 /usr/bin/make -j1 O=/home/leo/rk/buildroot/output/rockchip_rk3506_luckfox HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2026-01-06T23:36:33 make[1]: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33 GEN /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox/Makefile
2026-01-06T23:36:33 make[1]: Leaving directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33
2026-01-06T23:36:33 Your PATH contains spaces, TABs, and/or newline (\n) characters.
2026-01-06T23:36:33 This doesn't work. Fix you PATH.
2026-01-06T23:36:33 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
2026-01-06T23:36:33 make: Leaving directory '/home/leo/rk/buildroot'
Please check details in /home/leo/rk/output/sessions/2026-01-06_23-35-08/br-rockchip_rk3506_luckfox_2026-01-06_23-36-29.log
ERROR: Running /home/leo/rk/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
"$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$IMAGE_DIR"
ERROR: call stack:
mk-rootfs.sh: build_buildroot(16)
mk-rootfs.sh: build_hook(311)
mk-rootfs.sh: main(340)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 21:
"$RK_SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
99-all.sh: build_all(21)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
sdk版本:Luckfox_Lyra_SDK_250815.tar.gz
流程:
1 ./build.sh lunch 依次选择 [4] RK3506B_Luckfox_Lyra_Zero_W、 [1] SPI_NAND
2 ./build.sh
错误如下:
Buildroot config changed!
You might need to clean it before building:
rm -rf /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox
Done in 5s (error code: 2)
Failed to build rockchip_rk3506_luckfox:
# 2026-01-06 23:36:29
2026-01-06T23:36:29 make: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:32 RKPARTYBOX_CONF_OPTS is
2026-01-06T23:36:33 /usr/bin/make -j1 O=/home/leo/rk/buildroot/output/rockchip_rk3506_luckfox HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
2026-01-06T23:36:33 make[1]: Entering directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33 GEN /home/leo/rk/buildroot/output/rockchip_rk3506_luckfox/Makefile
2026-01-06T23:36:33 make[1]: Leaving directory '/home/leo/rk/buildroot'
2026-01-06T23:36:33
2026-01-06T23:36:33 Your PATH contains spaces, TABs, and/or newline (\n) characters.
2026-01-06T23:36:33 This doesn't work. Fix you PATH.
2026-01-06T23:36:33 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
2026-01-06T23:36:33 make: Leaving directory '/home/leo/rk/buildroot'
Please check details in /home/leo/rk/output/sessions/2026-01-06_23-35-08/br-rockchip_rk3506_luckfox_2026-01-06_23-36-29.log
ERROR: Running /home/leo/rk/device/rockchip/common/scripts/mk-rootfs.sh - build_buildroot failed!
ERROR: exit code 1 from line 16:
"$RK_SCRIPTS_DIR/mk-buildroot.sh" $RK_BUILDROOT_CFG "$IMAGE_DIR"
ERROR: call stack:
mk-rootfs.sh: build_buildroot(16)
mk-rootfs.sh: build_hook(311)
mk-rootfs.sh: main(340)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - build_all failed!
ERROR: exit code 1 from line 21:
"$RK_SCRIPTS_DIR/mk-rootfs.sh"
ERROR: call stack:
99-all.sh: build_all(21)
99-all.sh: build_hook(136)
build-helper: try_func(63)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)
ERROR: Running /home/leo/rk/device/rockchip/common/build-hooks/99-all.sh - try_func build_hook all failed!
ERROR: exit code 1 from line 67:
build_hook
ERROR: call stack:
build-helper: try_func(67)
build-helper: try_hook(96)
build-helper: source(165)
99-all.sh: main(147)