[gccsdk] Building GCC4 in Cygwin

Peter Naulls peter at chocky.org
Mon Jan 14 16:51:11 GMT 2008


Adam wrote:
> In message <BAY101-W22DEF9DAC4DD603517AFBF0460 at phx.gbl>, alan buckley wrote:
>
> Has anyone else tried building GCC4 with Cygwin? I've been playing
> around with it. One problem has been that Cygwin doesn't have an
> official autogen build. After a query on the Cygwin mailing list,
> someone was kind enough to send me their build of it though.
> 
> So, I've been following through the GCC4 readme file and have got this
> so far:
> 
>   $ ./create-srcdir
>   [snip]
>   patching file ltconfig
>   Copying files
>   /home/adamr/gccsdk/gcc4/recipe/scripts/reconf-ld
>   /home/adamr/gccsdk/gcc4/recipe/scripts/reconf-libscl
>   configure.ac:117: error: possibly undefined macro: AC_PROG_LIBTOOL
>         If this token and others are legitimate, please use m4_pattern_allow.
>         See the Autoconf documentation.
> 
> Does this matter? Anyway, I carried on regardless...

Yes, the "error" bit is your clue ;-)
You might want to check the versions closely with what we say in the
Readme


alan buckley wrote:
 >
 >   BUILD="--build=i686-pc-cygwin"
 >
 > fixed this. However this would probably cause
 > problems for other systems.
 >
 > Can anyone suggest how I should detect if cygwin
 > is running in ro-config so I can use the above for
 > cygwin builds? Or is there a better solution to find
 > the native machine ro-config is running on?

You're going to want to look at the output of 'uname', versus
what it says on Linux, which is simply "Linux".








More information about the gcc mailing list