public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eric at ecentral dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/14316] collect2 doesnt build on windows hosts Date: Sat, 20 Mar 2004 00:14:00 -0000 [thread overview] Message-ID: <20040320001438.11329.qmail@sources.redhat.com> (raw) In-Reply-To: <20040227020715.14316.droopycom@yahoo.com> ------- Additional Comments From eric at ecentral dot com 2004-03-20 00:14 ------- Subject: Re: collect2 doesnt build on windows hosts On 19 Mar 2004 at 17:50, Ian Lance Taylor wrote: > > How does one determine if there are header files to fix for a particular host > > and target? (and/or where does gcc determine this?) > > To be pedantic, the host, as such, is irrelevant. The header files > are for the target. The fixincl program will run on the build system. > > The fixincl program will be run on the header files in the directories > named by the Makefile variables SYSTEM_HEADER_DIR and > OTHER_FIXINCLUDES_DIRS. > > On a native configuration, where host == target, SYSTEM_HEADER_DIR is > /usr/include. > > On a cross configuration, where host != target: > * if you configure with --with-sysroot, SYSTEM_HEADER_DIR is > usr/include under the specified sysroot. > * if you do not configure with --with-sysroot, SYSTEM_HEADER_DIR is, > more or less, $(prefix)/$(target)/sys-include, or in other > words something like /usr/local/avr/sys-include > > I think OTHER_FIXINCLUDES_DIRS is always empty, but I suppose you > might specify it on the command line when you run make. Thanks for the great explanation! Is this also somewhere in the documentation (user or internals)? if not, it should be... > You can use --with-headers when you run configure to name a directory > containing header files for your target. This is only supported when > configuring a cross-compiler. If you do this, the configure process > will copy the header files to the $(target)/sys-include directory, and > later on fixincl will be run on them. Ok. >From the configure page <http://gcc.gnu.org/install/configure.html>: --without-headers Tells GCC not use any target headers from a libc when building a cross compiler. When crossing to GNU/Linux, you need the headers so GCC can build the exception handling for libgcc. See _CrossGCC_ for more information on this option. The "_CrossGCC_" above is a link to the CrossGCC FAQ: <http://www.objsw.com/CrossGCC/>. The CrossGCC FAQ says NOTHING (that I could find) about --without-headers. So if I specify --without-headers, should GCC even be *building* fixincl? It currently does for target = m68k | avr. OT: The CrossGCC FAQ hasn't been updated since December 3, 1999, and contains outdated and incomplete information. Thanks, Eric -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14316
next prev parent reply other threads:[~2004-03-20 0:14 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-02-27 2:07 [Bug c/14316] New: " droopycom at yahoo dot com 2004-02-27 2:52 ` [Bug bootstrap/14316] " pinskia at gcc dot gnu dot org 2004-03-13 6:43 ` eric at ecentral dot com 2004-03-16 14:07 ` wintermute2k4 at ntlworld dot com 2004-03-17 15:06 ` eric at ecentral dot com 2004-03-17 15:47 ` ian at wasabisystems dot com 2004-03-17 17:04 ` eric at ecentral dot com 2004-03-17 17:13 ` ian at wasabisystems dot com 2004-03-17 17:49 ` eric at ecentral dot com 2004-03-17 20:30 ` zack at codesourcery dot com 2004-03-17 20:39 ` ian at wasabisystems dot com 2004-03-17 20:56 ` zack at codesourcery dot com 2004-03-18 20:23 ` ian at wasabisystems dot com 2004-03-19 21:49 ` eric at ecentral dot com 2004-03-19 22:50 ` ian at wasabisystems dot com 2004-03-20 0:14 ` eric at ecentral dot com [this message] 2004-06-18 4:29 ` pinskia at gcc dot gnu dot org 2004-10-14 1:07 ` aaronavay62 at aaronwl dot com 2004-10-14 11:28 ` dannysmith at users dot sourceforge dot net 2005-03-01 6:06 ` aaronavay62 at aaronwl dot com 2005-03-29 19:39 ` cvs-commit at gcc dot gnu dot org 2005-04-03 14:40 ` ian at airs dot com 2005-04-03 16:53 ` pinskia at gcc dot gnu dot org
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=20040320001438.11329.qmail@sources.redhat.com \ --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: linkBe 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).