lede icon indicating copy to clipboard operation
lede copied to clipboard

x86编译出错

Open ookinasiawase opened this issue 3 years ago • 7 comments

反馈bug/问题模板,提建议请删除

checking whether mkfifo rejects trailing slashes... yes
checking whether mkfifoat rejects trailing slashes... yes
checking whether mknod can create fifo without root privileges... configure: error: in `/root/openwrt/lede/build_dir/host/tar-1.34':
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[3]: *** [Makefile:32: /root/openwrt/lede/build_dir/host/tar-1.34/.configured] Error 1
make[3]: Leaving directory '/root/openwrt/lede/tools/tar'
time: tools/tar/compile#12.71#4.42#20.69
    ERROR: tools/tar failed to build.
make[2]: *** [tools/Makefile:173: tools/tar/compile] Error 1
make[2]: Leaving directory '/root/openwrt/lede'
make[1]: *** [tools/Makefile:169: /root/openwrt/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnyyynynyyyyyyynyynnyynynyyyyyyyyyyyyyyyyyynynnyyyyyyyyyn] Error 2
make[1]: Leaving directory '/root/openwrt/lede'
make: *** [/root/openwrt/lede/include/toplevel.mk:230: world] Error 2

有人遇到上面问题吗,求解

执行 make V=s -j$(nproc) 出错。

ookinasiawase avatar Oct 21 '22 08:10 ookinasiawase

不要用root用户编译

misaka36 avatar Oct 21 '22 08:10 misaka36

configure: error: you should not run configure as root

ecrasy avatar Oct 21 '22 09:10 ecrasy

configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) 不要用root用户,要不就设置FORCE_UNSAFE_CONFIGURE=1到环境

1582130940 avatar Oct 21 '22 10:10 1582130940

反馈bug/问题模板,提建议请删除

checking whether mkfifo rejects trailing slashes... yes
checking whether mkfifoat rejects trailing slashes... yes
checking whether mknod can create fifo without root privileges... configure: error: in `/root/openwrt/lede/build_dir/host/tar-1.34':
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[3]: *** [Makefile:32: /root/openwrt/lede/build_dir/host/tar-1.34/.configured] Error 1
make[3]: Leaving directory '/root/openwrt/lede/tools/tar'
time: tools/tar/compile#12.71#4.42#20.69
    ERROR: tools/tar failed to build.
make[2]: *** [tools/Makefile:173: tools/tar/compile] Error 1
make[2]: Leaving directory '/root/openwrt/lede'
make[1]: *** [tools/Makefile:169: /root/openwrt/lede/staging_dir/host/stamp/.tools_compile_nyyynyynnyyynynyyyyyyynyynnyynynyyyyyyyyyyyyyyyyyynynnyyyyyyyyyn] Error 2
make[1]: Leaving directory '/root/openwrt/lede'
make: *** [/root/openwrt/lede/include/toplevel.mk:230: world] Error 2

有人遇到上面问题吗,求解

执行 make V=s -j$(nproc) 出错。

exprot FORCE_UNSAFE_CONFIGURE=1 就可以编译了

shenyz avatar Oct 27 '22 00:10 shenyz

exprot FORCE_UNSAFE_CONFIGURE=1

exprot FORCE_UNSAFE_CONFIGURE=1 加在哪里?

ookinasiawase avatar Oct 27 '22 02:10 ookinasiawase

exprot FORCE_UNSAFE_CONFIGURE=1

exprot FORCE_UNSAFE_CONFIGURE=1 加在哪里?

直接在编译的界面运行这条命令就可以了

shenyz avatar Oct 27 '22 08:10 shenyz

感谢,另外改正一下命令是export FORCE_UNSAFE_CONFIGURE=1

billylicn avatar Feb 21 '24 15:02 billylicn