首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >asm/errno.h:没有这样的文件或目录

问asm/errno.h:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2013-02-10 15:16:52
回答 11查看 68.1K关注 0票数 43

在构建gcc的过程中,我得到了这个错误:

代码语言:javascript
复制
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,我不希望这样。

还有别的办法吗?

EN

回答 11

Stack Overflow用户

发布于 2014-04-25 04:22:18

我想你想要的包是linux-libc-dev。我在构建32-on-64时遇到了这个问题;所以我需要linux-libc-dev:i386。

票数 48
EN

Stack Overflow用户

发布于 2014-10-21 03:11:39

这对我很有效:

代码语言:javascript
复制
ln -s /usr/include/asm-generic /usr/include/asm
票数 36
EN

Stack Overflow用户

发布于 2016-08-04 02:38:22

这对我很有效:

代码语言:javascript
复制
sudo ln -s /usr/include/asm-generic /usr/include/asm

原因是,在一些发行版中,GCC希望被称为/usr/include/asm的东西被重命名为/usr/include/asm-generic。

票数 23
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14795608

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档