public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Brian Dessent <brian@dessent.net>
To: NightStrike <nightstrike@gmail.com>
Cc: Kaz Kylheku <kaz@zeugmasystems.com>,  	gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: More questions on sysroots
Date: Sat, 22 Dec 2007 17:46:00 -0000	[thread overview]
Message-ID: <476D4D46.260ECF52@dessent.net> (raw)
In-Reply-To: <b609cb3b0712220922u189951a1x4c9056d7a6ce35a9@mail.gmail.com>

NightStrike wrote:

> This is where it dies as follows:
> In file included from ../../../gcc/libgcc/../gcc/libgcc2.c:33:
> ../../../gcc/libgcc/../gcc/tsystem.h:90:19: error: stdio.h: No such
> file or directory
> ../../../gcc/libgcc/../gcc/tsystem.h:93:23: error: sys/types.h: No
> such file or directory
> ../../../gcc/libgcc/../gcc/tsystem.h:96:19: error: errno.h: No such
> file or directory
> ../../../gcc/libgcc/../gcc/tsystem.h:103:20: error: string.h: No such
> file or directory
> ../../../gcc/libgcc/../gcc/tsystem.h:104:20: error: stdlib.h: No such
> file or directory
> ../../../gcc/libgcc/../gcc/tsystem.h:105:20: error: unistd.h: No such
> file or directory

You cut out the part that would have been useful, namely the -B and -I
arguments passed to xgcc.

> I don't understand that error.  It says, for instance, that limits.h
> can't include limits.h.  How is that possible?  It also can't find any
> of the system headers that are in place.

The limits.h that was found is gcc's private copy, not the actual system
limits.h.  gcc uses this technique when it needs to amend the contents
of a system header, by installing its own limits.h in its private
include directory that contains the gcc-specific parts, and at the end
it does #include_next <limits.h> so that the actual system limits.h gets
picked up at that point.  It also does something similar when it needs
to deal with buggy/broken/noncompliant system headers, by making a copy
of the offending header in its private include dir and then fixincluding
it there, obviously without the include_next.  The details don't matter,
the error is materially equivalent to all of the above, namely, a system
header could not be found.

Brian

  reply	other threads:[~2007-12-22 17:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 20:39 NightStrike
2007-12-20 21:23 ` Kaz Kylheku
2007-12-21  9:17   ` NightStrike
2007-12-21 18:30     ` Kaz Kylheku
2007-12-22 17:22       ` NightStrike
2007-12-22 17:46         ` Brian Dessent [this message]
2007-12-22 17:54           ` NightStrike

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=476D4D46.260ECF52@dessent.net \
    --to=brian@dessent.net \
    --cc=gcc-help@gcc.gnu.org \
    --cc=kaz@zeugmasystems.com \
    --cc=nightstrike@gmail.com \
    /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).