最新 k230_linux_sdk 编译出错

Viewed 64

问题描述


checking whether mknod can create fifo without root privileges... configure: error: in /home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig/build/host-tar-1.35': configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) checking whether mknod can create fifo without root privileges... configure: error: in /home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig/build/host-tar-1.35':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details
make[2]: *** [package/pkg-generic.mk:263: /home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig/build/host-tar-1.35/.stamp_configured] Error 1
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig'
make: *** [Makefile:26: buildroot] Error 2
root@k230:~/k230_linux_sdk# echo $FORCE_UNSAFE_CONFIGUREFORCE_UNSAFE_CONFIGURE
1

提示要求 FORCE_UNSAFE_CONFIGUREFORCE_UNSAFE_CONFIGURE设为1,我已经设置了还是出错

硬件板卡


CANMV_K230 _LP4 V3.0

软件版本


k230_linux_sdk

3 Answers

第一次编译慢,后面就快了,第一次会从github下载源码,如果第一次特别慢的话可以增加BR2_PRIMARY_SITE配置,见readme提示
image.png

export FORCE_UNSAFE_CONFIGURE=1
或者以非root用户编译

已经设置了, 最后就是我查参数的命令

root@k230:~/k230_linux_sdk# echo $FORCE_UNSAFE_CONFIGUREFORCE_UNSAFE_CONFIGURE
1

FORCE_UNSAFE_CONFIGUREFORCE_UNSAFE_CONFIGURE 的值是1

不折腾了,不用docker 直接编译了, 系统真大,干了大半天
INFO: hdimage(sysimage-sdcard.img): adding primary partition '[MBR]' ...
INFO: hdimage(sysimage-sdcard.img): adding primary partition '[GPT header]' ...
INFO: hdimage(sysimage-sdcard.img): adding primary partition '[GPT array]' ...
INFO: hdimage(sysimage-sdcard.img): adding primary partition '[GPT backup]' ...
INFO: hdimage(sysimage-sdcard.img): writing GPT
INFO: hdimage(sysimage-sdcard.img): writing protective MBR
INFO: hdimage(sysimage-sdcard.img): writing MBR
INFO: cmd: "rm -rf "/home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig/images/genimage.tmp/"" (stderr):
make[1]: Leaving directory '/home/ubuntu/k230_linux_sdk/output/k230_canmv_v3_defconfig'
ubuntu@ubuntu2004:~/k230_linux_sdk$