This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: linux - cygwin32 crosscompiler


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


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