mingw32 target broken [cygwin as well]

Jeff Sturm jsturm@one-point.com
Sat Dec 8 14:42:00 GMT 2001



On 8 Dec 2001, Adam Megacz wrote:
> Side note: this seems to happen with target=i386-pc-mingw and
> target=i386-pc-cygwin as well. For those just joining the thread, I'm
> using a fresh cvs checkout from a few hours ago.

I haven't had much trouble building a cross compiler for mingw/cygwin in
the past.  Note however that gcc needs to find the target headers in
$prefix/<target>/include, so you'll want to copy these before configuring
gcc.  (The CrossGCC faq hints that newlib targets can be built in one
pass however, so cygwin might be a little easier starting from a unified
tree.)

> -isystem /usr/mingw32/include

This is where gcc is looking for stdio.h...

> ../../src/gcc/config/i386/cygwin.h:31:19: stdio.h: No such file or directory

...which is included from here.  Looks like /usr/mingw32/include/stdio.h
doesn't exist on your build machine.

Jeff



More information about the Gcc mailing list