This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

Re: i86-linux -> pc-mingw32 linker doesn't work:(


jrm94 wrote:
> 
> Sources:
> gcc-2.95.2, binutils-2.9.5.037, and mingw32 bin-1999-07-31
> ./configure --target=i386-mingw32   --prefix=<...> \
>     --with-headers=<bin-.../include>   --with-libs=<bin-.../lib>
> 
> The binutils and gcc compile, and create windows binaries, but
> they are broken. I also downloaded someone's pre-compiled
> cross-compiler (which works), and I think that it is the
> linker causing the problems.

 This should already be a well-known fact, the binutils maintainers broke
the Win32 PE support sometime in autumn-99.  Borrowing the following from
the mingw32 maillist :

>Mumit Khan wrote:
>
>Laurent CHARLES <laurent.charles@st.com> writes:
> 
>> I'm trying to rebuild my solaris/sparc cross compiler for mingw32 with more
>> up-to-date packages:
>> - binutils-2.9.5.0.29
>  ^^^^^^^^^^^^^^^^^^^^^
>
> Can't use this, sorry. It's buggy for x86-pe.
>
>> - gcc-2.95.2
>> - egcs-2.95.2-x386-win32-patches, from
>> <http://www.xraylith.wisc.edu/~khan/>
>> - bin-<runtime>, I tried both crtdll and msvcrt binary runtimes, with
>> various snaphots (2000-03-27, 1999-11-07, 1999-31-07, etc)
>> 
>> I could build the whole stuff from scratch with no problem. (See process
>> below)
>> 
>> I can compile a win32 "hello world", but... It fails to run with the
>> message "The application failed to initialize properly (0xc0000005)".
>> 
>> Did anyone faced that? There must be an obvious step I missed...?
>
> Just get the gcc-2.95.2-1 and binutils-19990818-1 from
>
> ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/snapshots/gcc-2.95.2-1/
>
> Already patched and ready to go.

 Another place would be the Cygwin-1.1.x sources for the 19990818 snapshot, they
use it too...

Cheers, Kai


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


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