Problems to build a cross compiler under Linux

Karim BERNARDET bernardet.karim@wanadoo.fr
Wed Nov 20 06:02:00 GMT 2002


thanks for your help !
I have "succesfully" build this compiler using mingw and mumit khan 's explanations (http://www.mingw.org/mingwfaq.shtml#faq-cross) but for a simple hello.c, the size of the binary is huge : >400 K !!!
I got a binary version of this compiler (from
http://www.libsdl.org/extras/win32/cross/mingw32-linux-x86-glibc-2.2.tar.gz) and the size of the binary produced with hello.c is only 16 K !!!!

I have used :
binutils-2.13.90-20021006-2-src.tar.gz
gcc-3.2-20020817-1.src.tar.gz
mingw-runtime-2.2-src.tar.gz
w32api-2.0-src.tar.gz

Karim ...





>Messsage du 20/11/2002 14:47
>De :  <kai.ruottu@luukku.com>
>A :  <crossgcc@sources.redhat.com>
>Copie à :
>Objet : Re: Problems to build a cross compiler under Linux
>
> Kai Ruottu <kai.ruottu@luukku.com> wrote:
>
> > "karim" <bernardet.karim@wanadoo.fr> wrote:
> >
> > > I want to have under linux a compiler which produces binaries for windows
> > > (with cygwin).
> >
> > It may be fully possible that gcc-3.2 cannot compile the C-library, > only gcc-3.2...
>
>  Oops, where my thoughts were... What should have been here is that
> "only gcc-2.95.3 could perhaps be capable to build a rock-solid C-
> library for Cygwin"...  My experience with gcc-3.x in building any
> tools, libs etc. C-stuff has been negative. It seems to be quite
> common experience that Insight cannot be built with gcc-3.2 (for
> Cygwin-host), but even binutils built using gcc-3.1.x or 3.2.x have
> failed on the Win32-host... So building Cygwin-hosted tools on Linux
> really doesn't need one to have gcc-3.2 but gcc-2.95.3-something
> there as the 'production compiler'. Maybe gcc-3.3 or 3.4 then
> works again with the existing (or they are already fixed) sources
> ported for Cygwin...
>
>
>
>
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
>


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list