[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [arm-gnu] mingw gcc build
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] mingw gcc build
- From: Paul Brook <paul@xxxxxxxxxxxxxxxx>
- Date: Fri, 1 Oct 2004 11:18:25 +0100
On Friday 01 October 2004 09:49, SPENCER OLIVER wrote:
> I have successfully built the gcc 3.4.1 toolchain using cygwin - I would
> prefer a mingw based gcc such as yours. Due to the collect2 (fork etc)
> problems I have downloaded your patched gcc source but am still unable to
> build gcc. binutils builds ok using CFLAGS-mno-cygwin and --host-mingw32,
> but gcc fails.
>
> Fixincl again fails to find fork.
> I have also just tried using the mingw binary rather than to no-cygwin
> option to gcc, putting mingw before gcc in the path - again this still
> fails as above.
>
> What configure options do you pass to enable mingw build, is it just
> CFLAGS=-mno-cygwin or do you pass the --host=mingw32 to configure ?
>
> I am building a arm-elf target with a modified newlib, optimised for
> smaller arm7 cores. Any help would be appreciated.
We use a cross-compiler from i686-linux to build the mingw compilers.
I suspect your problems are occurring because your CFLAGS will be used when
building programs for the build machine (ie. cygwin).
I'm not really familiar with the details of building on cygwin. Try
configuring with --build=i686-migw32 or -build=i686-cygwin, see if that makes
any difference.
If that fails, all I can suggest is either use a cygwin->mingw cross-compiler,
or write a script that pretends to be a mingw cross compiler by invoking gcc
-mno-cygwin.
Paul
|