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: Why is fixincludes not doing anything? (was: Re: Fixincludes permanence & questions on cross compilers)
Date: Fri, 25 May 2012 12:08:00 -0000	[thread overview]
Message-ID: <4FBF762C.4020604@verizon.net> (raw)
In-Reply-To: <4FBD266F.7080807@verizon.net>

On 05/23/2012 02:03 PM, rbmj wrote:
> OK, so I went into fixincludes/inclhack.def and added this rule:
>
> /*
>  *  This hack makes makes unistd.h more POSIX-compliant on VxWorks
>  */
> fix = {
>     hackname    = vxworks_tasklib_regs;
>     files       = taskLib.h;
>     test        = " -r vxWorks.h ";
>
>     select      = "#[\t ]*include[\t ]+<regs.h>";
>     c_fix       = format;
>     c_fix_arg   = "#include <arch/../regs.h>";
>
>     test_text   = "`touch vxWorks.h taskLib.h`"
>         "#include <regs.h>\n";
> };
>
> I then ran genfixes and then went in to my build directory.  I ran 
> make check.  This was in fixincludes/test/inc/taskLib.h:
>
> #if defined( VXWORKS_TASKLIB_REGS_CHECK )
> #include <regs.h>
>
> #endif  /* VXWORKS_TASKLIB_REGS_CHECK */
>
> and I saw this in tests/res/taskLib.h:
>
> #if defined( VXWORKS_TASKLIB_REGS_CHECK )
> #include <arch/../regs.h>
>
> #endif  /* VXWORKS_TASKLIB_REGS_CHECK */
>
> So it looks good. I deleted the fixincludes subdir and then ran make. 
> However, when I get to libgcc:
>
> In file included from ../../../gcc-4.7.0/libgcc/../gcc/regs.h:25:0,
>                  from /usr/powerpc-wrs-vxworks/sys-include/taskLib.h:213,
>                  from ../../../gcc-4.7.0/libgcc/config/vxlib.c
> <errors />
>
> These errors go away if i run sed -i.orig -e 
> 's|<regs.h>|<arch/../regs.h>|' /usr/powerpc-wrs-vxworks/taskLib.h
>
> So taskLib.h is still including regs.h, not arch/../regs.h like it 
> should.  I go into the build directory, and type find | grep taskLib. 
> The only thing I get are the two in fixincludes/tests - there's no 
> file in GCC's build tree.
>
> taskLib.h and vxWorks.h are in /usr/powerpc-wrs-vxworks/sys-include.  
> I configured gcc with the following command line:
>
> ../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 --enable-threads=vxworks --without-gconv 
> --disable-libgomp --disable-nls --disable-libmudflap --with-cpu-PPC603
>
> What is the problem here?  Do I need to manually specify to run 
> fixincludes?
>

Refine my question: anyone know why fixincludes does not appear to be 
doing *anything*?  I can't seem to find any fixed headers anywhere in 
GCC's build tree.  And the compile keeps failing...

Thanks,

Robert Mason

  reply	other threads:[~2012-05-25 12:08 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     ` rbmj [this message]
2012-05-25 14:00       ` Why is fixincludes not doing anything? (was: Re: Fixincludes permanence & questions on cross compilers) 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
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=4FBF762C.4020604@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).