Ubuntu编译报错:fatal error: bits/libc-header-start.h: No such file or directory
具体报错如下:
from host/minilua.c:33:
/usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
26 | #include <bits/libc-header-start.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:692:
解决方案:
sudo apt-get install gcc-multilib
后面编译,仍有报错:
make[4]: Entering directory '/mnt/d/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/LuaJIT-2.1.0-beta3/src'
HOSTCC host/minilua.o
HOSTLINK host/minilua
DYNASM host/buildvm_arch.h
host/minilua: 1: Syntax error: "(" unexpected
解决方案,直接进入对应目录:
cd /mnt/d/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/LuaJIT-2.1.0-beta3/src
手动执行:
make
可解决。
标签:No,libc,header,host,报错,error,directory From: https://www.cnblogs.com/adam-ma/p/18004384