public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mancilla at cse dot unsw.edu.au" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/48879] New: Compilation cannot find file asm/errno.h
Date: Thu, 05 May 2011 05:15:00 -0000	[thread overview]
Message-ID: <bug-48879-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

           Summary: Compilation cannot find file asm/errno.h
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mancilla@cse.unsw.edu.au


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


             reply	other threads:[~2011-05-05  5:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05  5:15 mancilla at cse dot unsw.edu.au [this message]
2011-05-05  8:50 ` [Bug c++/48879] " mancilla at cse dot unsw.edu.au
2011-05-05  9:24 ` redi at gcc dot gnu.org
2011-05-05 10:49 ` rguenth at gcc dot gnu.org
2011-05-05 22:13 ` [Bug bootstrap/48879] " mancilla at cse dot unsw.edu.au
2011-05-05 22:28 ` [Bug c++/48879] " mancilla at cse dot unsw.edu.au
2011-11-15 21:48 ` [Bug bootstrap/48879] " davek at 6thstreetradio dot org
2012-07-03 16:13 ` aric999 at gmail dot com
2013-10-21  8:34 ` branko.drevensek at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48879-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).