在构建 gcc 时,我收到此错误:
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../.././gcc/tsystem.h:96,
from ../.././gcc/crtstuff.c:68:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc'
我正在从源代码构建 gcc 4.1。我想我必须安装build-essential
. 但是,在 ubuntu 12.04 中安装该软件包会自动下载并安装 gcc 4.6,我不希望这样。
还有其他方法吗?