This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: linux - cygwin32 crosscompiler
- To: Martin dot Kahlert at mchp dot siemens dot de
- Subject: Re: linux - cygwin32 crosscompiler
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Mon, 03 Nov 1997 11:05:47 -0600
- cc: egcs-bugs at cygnus dot com
Martin.Kahlert@mchp.siemens.de writes:
> Hi, all
> I tried to build a linux-cygwin32 cross compiler.
> With egcs-2.90.14 971023 everything worked fine (except c++)
c++ should work just fine. Something is wrong with your setup.
>
> With the egcs-2.90.15 971031 I can cross compile fine
> (no linker error...),
> but when I want to run the program I get a messagebox:
> 't.exe is not a valid executable for Windows'
> (roughly translated from my german WinNT-version)
I have a slightly egcs-971023 (modified to desupport named section support
to make C++ templates usable) running as a cross quite well. C/C++/F77 all
work quite well, and I have yet to get the 'Not a valid NT exec' error.
The error message is symptomatic of a binutils bug where the stripping an
executable will remove .stab and .stabstr sections and NT will refuse to
run it. The recent binutils snapshots fix that problem. Could try running
w/out stripping the binaries?
Mumit