VPS编译时,报错信息如下:
make[5]: *** [Makefile:2345: s-automata] Error 137
make[5]: Leaving directory '/home/abc/lede/build_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/gcc-8.4.0-initial/gcc'
make[4]: *** [Makefile:4251: all-gcc] Error 2
make[4]: Leaving directory '/home/abc/lede/build_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/gcc-8.4.0-initial'
make[3]: *** [Makefile:37: /home/abc/lede/build_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/gcc-8.4.0-initial/.built] Error 2
make[3]: Leaving directory '/home/abc/lede/toolchain/gcc/initial'
time: toolchain/gcc/initial/compile#192.37#21.61#218.34
ERROR: toolchain/gcc/initial failed to build.
make[2]: *** [toolchain/Makefile:97: toolchain/gcc/initial/compile] Error 1
make[2]: Leaving directory '/home/abc/lede'
make[1]: *** [toolchain/Makefile:93: /home/abc/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/abc/lede'
make: *** [/home/abc/lede/include/toplevel.mk:230: world] Error 2
问题描述:机器内存不足,若是VM虚拟机,可直接修改内存(修改至2G以上),若是VPS虚拟机,可增大Swap临时内存,办法参考:https://www.anidays.com/2021/29/