Building the toolchain for powerpc-rtems4.7 on i686-pc-cygwin fails

Andreas Pfeil ap at
Wed Jan 11 00:22:17 UTC 2006

Another thing might be to first compile a plain gcc (4.1 or something) 
on cygwin, including the rest of the toolchain (binutils, newlib and gdb).
I had trouble compiling gdb along with insight, which is not included in 
the vanilla gdb sources. - So this might be one thing to ease things.
Also, the cygwin gcc made trouble with compiling vanilla gdb sources, 
but I was able to compile a native gcc. So my suggestion (very crude, 
might be overkill) would be:

1. compile binutils for your native platform
2. compile gcc 4.1 from for your platform
3. use (2) to compile binutils for your target platform
4. use (2) to compile a cross gcc for your target platform
5. use (2) to compile a cross gdb for your target platform
6. use (2) to compile gcc-rtems toolchain

I've done everything except step 6 without any problems on my cygwin.


Thomas Fors wrote:
> Avy,
> Try moving your build directory outside of the source directory.
> --Tom
> On 1/8/06, Avy Strominger <astrominger at> wrote:
>>   Hello everybody,
>>   This is a re-post.  I posted the message a week ago.  Unfortunately,
>>nobody answered.  Is it possible to build gcc-4.01 on cygwin for rtems-4.7?
>>   The original message:
>>   I'm trying to build the toolchain for powerpc on Cygwin.  The target  is
>>to have an RTEMS for MPC555, with Ada.  I'm following the building
>>instructions on Wiki for RTEMSAda, and the build fails when trying to
>>compile the C cross compiler (First build of non-multilib C only stage),
>>with the following error:
>>config.status: creating Makefile
>> config.status: creating testsuite/Makefile
>> config.status: creating config.h
>> config.status: executing default commands
>> make[1]: Entering directory
>> if [ x"" != x ] && [ ! -d pic ]; then \
>>   mkdir pic; \
>> else true; fi
>> touch stamp-picdir
>> make[1]: *** No rule to make target `../include/ansidecl.h', needed by
>>`regex.o'.  Stop.
>> make[1]: Leaving directory
>> make: *** [all-build-libiberty] Error 2

More information about the users mailing list