[build.sh:error] Running build_clean failed! [build.sh:error] exit code 2 from line 1341:
Posted: 2024-12-27 4:08
使用./build.sh 和 ./build.sh clean 会出现问题,环境wsl2 ,ub22
make: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv'
rm -rf /mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot/fit
pushd /mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot;make CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- distclean >/dev/null;popd
/mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot /mnt/f/fq/luckfox-pico/sysdrv
rm: cannot remove 'SPL': Is a directory
make[1]: *** [Makefile
clean] Error 1
/mnt/f/fq/luckfox-pico/sysdrv
make O=/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel -C /mnt/f/fq/luckfox-pico/sysdrv/source/kernel ARCH=arm CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- distclean
make[1]: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv/source/kernel'
make[2]: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel'
make[3]: *** /mnt/f/fq/luckfox-pico/sysdrv/source/kernel/Documentation/Kbuild: Is a directory. Stop.
make[2]: *** [/mnt/f/fq/luckfox-pico/sysdrv/source/kernel/Makefile
_clean_Documentation] Error 2
make[2]: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel'
make[1]: *** [Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:516: kernel_clean] Error 2
make: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv'
[build.sh:error] Running build_clean failed!
[build.sh:error] exit code 2 from line 1341:
[build.sh:info] make distclean -C ${SDK_SYSDRV_DIR}
make: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv'
rm -rf /mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot/fit
pushd /mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot;make CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- distclean >/dev/null;popd
/mnt/f/fq/luckfox-pico/sysdrv/source/uboot/u-boot /mnt/f/fq/luckfox-pico/sysdrv
rm: cannot remove 'SPL': Is a directory
make[1]: *** [Makefile
/mnt/f/fq/luckfox-pico/sysdrv
make O=/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel -C /mnt/f/fq/luckfox-pico/sysdrv/source/kernel ARCH=arm CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf- distclean
make[1]: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv/source/kernel'
make[2]: Entering directory '/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel'
make[3]: *** /mnt/f/fq/luckfox-pico/sysdrv/source/kernel/Documentation/Kbuild: Is a directory. Stop.
make[2]: *** [/mnt/f/fq/luckfox-pico/sysdrv/source/kernel/Makefile
make[2]: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv/source/objs_kernel'
make[1]: *** [Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv/source/kernel'
make: *** [Makefile:516: kernel_clean] Error 2
make: Leaving directory '/mnt/f/fq/luckfox-pico/sysdrv'
[build.sh:error] Running build_clean failed!
[build.sh:error] exit code 2 from line 1341:
[build.sh:info] make distclean -C ${SDK_SYSDRV_DIR}