public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: rbmj <rbmj@verizon.net>
To: gcc-help@gcc.gnu.org
Subject: Re: Why is fixincludes not doing anything?
Date: Sat, 26 May 2012 20:54:00 -0000	[thread overview]
Message-ID: <4FC142D3.5080107@verizon.net> (raw)
In-Reply-To: <mcrr4u6iufn.fsf@dhcp-172-18-216-180.mtv.corp.google.com>

On 05/26/2012 04:00 PM, Ian Lance Taylor wrote:
> rbmj<rbmj@verizon.net>  writes:
>
>> On 05/25/2012 07:18 PM, Ian Lance Taylor wrote:
>>> rbmj<rbmj@verizon.net>   writes:
>>>
>>>> My configure call was:
>>>>
>>>> ../gcc-4.7.0/configure --prefix=/usr --target=powerpc-wrs-vxworks
>>>> --with-gnu-as --with-gnu-ld
>>>> --with-headers=../gccdist/WindRiver/vxworks-6.3/target/h
>>>> --disable-shared --disable-libssp --disable-multilib --with-float=hard
>>>> --enable-languages=c,c++ --enable-threads=vxworks --without-gconv
>>>> --disable-libgomp --disable-nls --disable-libmudflap --with-cpu-PPC603
>>>>
>>>> I don't use --with-sysroot; I use --with-headers.  So do I need to use
>>>> a different configuration?  And how can I achieve the same effect
>>>> using --with-sysroot as I did with --with-headers if that *is* the
>>>> issue.
>>> As the installation doc says, the --with-sysroot option is the new
>>> replacement for the --with-headers option.  So if you can, try using
>>> --with-sysroot.
>> I happen to prefer the 'traditional' layout with everything in
>> $PREFIX/powerpc-wrs-vxworks/{include,lib,bin}.  With the sysroot as
>> $PREFIX/powerpc-wrs-vxworks, then target includes are
>> /usr/powerpc-wrs-vxworks/usr/include, which is ugly IMHO.
> You can use --with-native-system-header-dir=/include to avoid that
> specific issue.
>
>
>> Still, fixincludes doesn't appear to do anything.  Where should be
>> fixed headers go in the build tree?  I can't find them:
> In the build directory they should wind up in gcc/include-fixed.
>
> Does the file gcc/stmp-fixinc get created in the build directory?
>
> Does the output of make have the line "The directory that should contain
> system headers does not exist" anywhere?  It would not necessarily cause
> an error.
It does not.  Everything appears to be fine.

I checked again, this time limits.h pops up in that directory.  So it 
appears to be doing something now.

My theory is that fixincludes is running for the host OS, but not for 
the cross targets (libgcc, etc. in sysroot).  But I don't really know 
for sure.  Maybe the mach = *-*-vxworks isn't what it's supposed to be - 
that could also be the problem.  Or something else entirely.

Again, thanks for the help!

Robert Mason

  parent reply	other threads:[~2012-05-26 20:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 16:53 Fixincludes permanence & questions on cross compilers rbmj
2012-05-23 17:27 ` Jonathan Wakely
2012-05-23 18:04   ` rbmj
2012-05-25 12:08     ` Why is fixincludes not doing anything? (was: Re: Fixincludes permanence & questions on cross compilers) rbmj
2012-05-25 14:00       ` Ian Lance Taylor
2012-05-25 14:24         ` Why is fixincludes not doing anything? rbmj
2012-05-25 23:19           ` Ian Lance Taylor
2012-05-26 19:58             ` rbmj
     [not found]             ` <4FC128C8.1060604@verizon.net>
     [not found]               ` <mcrr4u6iufn.fsf@dhcp-172-18-216-180.mtv.corp.google.com>
2012-05-26 20:54                 ` rbmj [this message]
2012-05-27  6:08                   ` rbmj
2012-05-29 19:13             ` rbmj
2012-05-29 22:48               ` Ian Lance Taylor
2012-06-01 17:32                 ` rbmj
2012-06-01 19:44                   ` Ian Lance Taylor

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=4FC142D3.5080107@verizon.net \
    --to=rbmj@verizon.net \
    --cc=gcc-help@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).