From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23835 invoked by alias); 5 May 2011 08:50:17 -0000 Received: (qmail 23806 invoked by uid 22791); 5 May 2011 08:50:14 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 May 2011 08:49:59 +0000 From: "mancilla at cse dot unsw.edu.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/48879] Compilation cannot find file asm/errno.h X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mancilla at cse dot unsw.edu.au X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 05 May 2011 08:50:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00410.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879 --- Comment #1 from Blanca Mancilla 2011-05-05 08:48:29 UTC --- I succeeded in compiling by serring the following environment variables: export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu is this the right way? Blanca (In reply to comment #0) > 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/x86_64-linux-gnu. > After following sugestions, I tried setting CPPFLAGS, CFLAGS and CXXFLAGS to > -I/usr/include/x86_64-linux-gnu and then "-isystem > /usr/include/x86_64-linux-gnu" when calling configure and the result was: at > first CPPFLAGS was ignored and the same error accurred (setting CPPFLAGS). Then > stage 1 completed and the same error occurred at the begining of stage 2 > (setting just CFLAGS). Setting both CFLAGS nad CXXFLAGS got the compilation > further, but still a similar error. In this last attempt, it did not make a > difference whether > it was -I or -isystem: > > ---------------------------------------------------------------------------- > > 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/libiberty/fnmatch.c:46: > /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or > directory > compilation terminated. > make[3]: *** [fnmatch.o] Error 1 > make[3]: Leaving directory > `/home/mancilla/current/soft/src/gcc-build-latest/libiberty' > make[2]: *** [all-stage2-libiberty] Error 2 > make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest' > make[1]: *** [stage2-bubble] Error 2 > make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest' > make: *** [all] Error 2 > > ----------------------------------------------------------------------------- > > I'm not too sure it this is the right place for reporting this. But it seems > that the compilation needs to know where is errno.h. Please let me know if it > is necessary to attach the full log of the build. > > Any advice would be greatfully appreciated. > > Regards, > Blanca