错误日志
openwrt/build_dir/host/tar-1.32':
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
Makefile:31: recipe for target 'openwrt/build_dir/host/tar-1.32/.configured' failed
make[3]: *** [openwrt/build_dir/host/tar-1.32/.configured] Error 1
make[3]: Leaving directory 'openwrt/tools/tar'
time: tools/tar/compile#10.09#5.21#20.13
ERROR: tools/tar failed to build.
tools/Makefile:159: recipe for target 'tools/tar/compile' failed
make[2]: *** [tools/tar/compile] Error 1
make[2]: Leaving directory 'openwrt'
tools/Makefile:157: recipe for target 'openwrt/staging_dir/host/stamp/.tools_compile_yyyynyynnyyyynyyyyyyynyynnyyyynyyyyyyyyyyyyyyyynynnyyyyyyy' failed
make[1]: *** [openwrt/staging_dir/host/stamp/.tools_compile_yyyynyynnyyyynyyyyyyynyynnyyyynyyyyyyyyyyyyyyyynynnyyyyyyy] Error 2
make[1]: Leaving directory 'openwrt'
openwrt/include/toplevel.mk:228: recipe for target 'world'
解决方案
export FORCE_UNSAFE_CONFIGURE=1
或者
sudo make FORCE_UNSAFE_CONFIGURE=1 -j1 V=s