Fatal Error Asm/errno.h Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: no such file or directory Overflow the company Business Learn more about hiring developers or posting ads with us Stack asm/system.h no such file or directory Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community asm/current.h: no such file or directory of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up asm/errno.h: No such file or directory up vote 18 down vote favorite 1 While building gcc, I include/uapi/linux/types.h:4:23: fatal error: asm/types.h: no such file or directory get this error: 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' I am building gcc 4.1 from source. I think I have to install build-essential. However installing that package in ubuntu 12.04 will automatically download and install gcc 4.6 and I don't want that. Is there any other way? linux gcc
Cannot Find
share|improve this question asked Feb 10 '13 at 7:16 mahmood 4,861226095 add a comment| 7 Answers 7 active oldest votes up vote 21 down vote I think the package you want is linux-libc-dev . I encountered this when building 32-on-64; so I needed linux-libc-dev:i386 . share|improve this answer answered Apr 24 '14 at 20:22 jrr 638816 With both installed on Ubuntu 15.10, diff -ur /usr/include/x86_64-linux-gnu/asm/ /usr/include/i386-linux-gnu/asm/ shows no differences. Some other files outside those directories are provided by both packages, but apparently this is ok, and you only have multiple copies of those 62 files totalling ~340k. dpkg -L linux-libc-dev | diff -ur - <(dpkg -L linux-libc-dev:i386) shows that both packages provide the same files outside the arch-specific include directory. –Peter Cordes May 4 at 20:36 So if you're going to symlink instead of keeping the package manager happy by installing linux-libc-dev:i386 on a 64bit system, use ln -s x86_64-linux-gnu /usr/include/i386-linux-gnu to make a relative symlink. –Peter Cordes May 4 at 20:37 add a comment| up vote 15 down vote This worked for me: ln -s /usr/include/asm-generic /usr/include/asm share|improve this answer answered Oct 20 '14 at 19:11 user2348442 15912 1 Indeed, it looks similar to what you would get if you do apt-get install gcc-multilib (apt-file search /usr/include/as
creation filtered due to spam. Bug48879 - Compilation cannot find file asm/errno.h Summary: Compilation cannot find file asm/errno.h Status: RESOLVED INVALID Alias: None Product: gcc Classification: Unclassified Component: bootstrap (show other bugs) Version: 4.7.0 Importance: P3 normal Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2011-05-05 05:10 UTC by http://stackoverflow.com/questions/14795608/asm-errno-h-no-such-file-or-directory Blanca Mancilla Modified: 2013-10-21 08:34 UTC (History) CC List: 4 users (show) aric999 blancalmancilla branko.drevensek davek See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: Attachments output of "gcc -v -x c /dev/null -c" (1.03 KB, text/plain) 2011-05-05 22:05 UTC, Blanca Mancilla Details View https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879 All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Blanca Mancilla 2011-05-05 05:10:23 UTC Hi, I recently upgraded from Ubuntu 10.10 to 11.04, and upon the first attempted compilation of 4.7.0, it crashed complaining of: ------------------------------------------------------------------------------ In file included from /usr/include/bits/errno.h:25:0, from /usr/include/errno.h:36, from /home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/tsystem.h:93, from /home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/libgcc2.c:29: /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory compilation terminated. ake[3]: *** [_muldi3.o] Error 1 make[3]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest/x86_64-unknown-linux-gnu/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest' make: *** [all] Error 2 ------------------------------------------------------------------------------- After much browsing mailing lists and bug reports everywhere, it seems that the problem lies on the linux headers (?). The directory in question used to be /usr/include/linux and in my case it is now /usr/include/x8
anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache Server at trac.parrot.org Port 80
src:gcc-defaults. Reported by: François Revol