错误1:
error: you should not run configure as root (setFORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See
`config.log’ for more details
在网上查到的方法是:
在/etc/profile中添加
export FORCE_UNSAFE_CONFIGURE=1
貌似没啥用。
我的解决方法是:
sudo su root
make FORCE_UNSAFE_CONFIGURE=1
错误2
Cannot execute cross-compiler
‘/home/xxx/xxx/xxx/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc’ make: ***
[package/pkg-generic.mk:231:/home/xxx/xxx/xxx/xxx/xxx/buildroot-2019.02.6/output/build/toolchain-external-custom/.stamp_configured]
错误 1
原因,编译器没有执行权限(因为切换到了root用户),找到gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf目录,执行
chmod 700 gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/* -R
另外出现package/pkg-generic.mk:228:xxx/xxx/xxxx/的情况是buildroot选择的内核头为4.1.x,而交叉编译器里的内核头为4.0.x。
后面就没有遇到其他情况了

4880




被折叠的 条评论
为什么被折叠?



