This is the mail archive of the mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cross Compiler linux->Win32

I think I found the info that I needed. to build libiberty and the like the
target headers are needed. I forgot this detail while getting gcc to
compile. Thanks a lot for your help!!

Some other day I will try to get the i686-pc-winnt target to work.

-----Original Message-----
From: Jose Cornado []
Sent: Saturday, August 09, 2003 7:13 AM
To: 'Ronald Landheer-Cieslak'
Cc: ''
Subject: RE: Cross Compiler linux->Win32

Thanks!! I decided to use the binutils and gcc that I originally had (2.14
and 3.2.3) with the target=i686-pc-mingw32.

First I tried to build gcc with the native binutils. I had a problem that
make could not find stdio.h. I modified the Makefile to include /usr/include
and the problem went away. BUT I could not finish compiling gcc. There were
some asm directives/op-codes that were not understood by native gas.

Then I tried the following: prepended to $PATH the path to the cross
binutils that I just built. GCC finally built but libiberty  could not
configure because the xgcc is not a C compiler?

Does this have anything to do with gcc 3.X or I am screwing things up?

-----Original Message-----
From: Ronald Landheer-Cieslak []
Sent: Friday, August 08, 2003 2:13 AM
To: Jose Cornado
Subject: Re: Cross Compiler linux->Win32

As MinGW is basically a gcc port for Windows, I don't quite see the point in
trying not to use MinGW for a cross-compiler to Windows - I mean, that's
MinGW basically is..?

Remember that using MinGW doesn't "taint" your program with anything
GNUish -
i.e. unlike Cygwin, you use MSVCRT (the Microsoft C runtime) whemn you use
MinGW. The only difference is in the headers and the import library - which
free implementations of the MSDN-documented Microsoft equivalents - unless
course you use C++ in which case you have the std C++ lib (& STL) as well..
(as well as the usual name mangling incompatibilities between C++



On Thu, Aug 07, 2003 at 10:05:23AM -0700, Jose Cornado wrote:
> Thanks a lot!!
> I just downloaded it. I am trying to stick to the winnt/win32 config,
> without cygwin or mingw, from what I read this should be possible. I will
> over the script to see what I am missing.
> -----Original Message-----
> From: Ronald Landheer-Cieslak []
> Sent: Thursday, August 07, 2003 2:11 AM
> To:
> Cc:
> Subject: Re: Cross Compiler linux->Win32
> Do a Google for "MinGW cross" and you'll get this
> as second (?) hit - it should help you out nicely.
> rlc
> NB: MinGW is Minumalist GNU for Windows:
> On Wed, Aug 06, 2003 at 09:23:02PM -0500, wrote:
> > I am trying to build a gcc cross compiler.
> > Host = i686-pc-linux-gnu
> > Target = i686-pc-winnt.
> > I have already built binutils for the target. I used "i686-pc-winnt"
> >
> > When I try to build gcc (3.2.3 or 2.95) with the same target as binutils
> ("--target=i686-pc-winnt"), I run into the following:
> >
> > configure fails.
> >
> > If I change $target inside ./gcc/configure before calling config.gcc to
> "i686-pc-win32" configure finishes.
> >
> > When I try to make gcc, it fails inside the gcc directory. There are a
> couple of undefined symbols inside winnt.c:
> >
> > drectve_section and something else that I do not recall now.
> >
> > I decided to comment these two out to see what happens.
> >
> > Make fails again further down. It can not find unistd.h or stdlib.h (?)
> >
> > I am using RH 7.3 (out of the box) on a Dell laptop.
> >
> > Thanks a lot!!!
> >
> >
> >
> > ------
> > Want more information?  See the CrossGCC FAQ,
> > Want to unsubscribe? Send a note to
> --
> Virtue is a relative term.
> 		-- Spock, "Friday's Child", stardate 3499.1
> ------
> Want more information?  See the CrossGCC FAQ,
> Want to unsubscribe? Send a note to

Immortality consists largely of boredom.
		-- Zefrem Cochrane, "Metamorphosis", stardate 3219.8

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]