linux - cygwin32 crosscompiler
Mumit Khan
khan@xraylith.wisc.edu
Mon Nov 3 09:07:00 GMT 1997
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
More information about the Gcc-bugs
mailing list