This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Trouble cross-compiling gcc-3.3.2 under MinGW


> I'm trying to build gcc-3.3.2 --target=m68k-elf under MinGW, and it
> bombs running gengtype with the error:
> /home/barada/src/gcc/gcc-3.3.2/gcc/../include/ansidecl.h: No such file or
> directory

I have successfully bootstrapped MinGW as well as created a native MinGW
compiler by crossing it from GNU/Linux.  I ran into this exact problem while
trying to bootstrap MinGW.  The story is that you are working under MSYS and
have configured gcc with an absolute path (the fact that you are creating a
cross-compiler from MinGW to some other crazy system is irrelevant here).
gengtype is a program generated during the compilation of gcc and has been
compiled natively for Windows by MinGW.  As such, it does not understand
MSYS absolute paths (/home/blah and /c/temp, etc.).

The solution is to configure with a relative path: ../src/configure blah.

Please let me know if this solves your problem.

(While we're on the topic of MinGW, does anyone know why my 3.4 build is
failing?  The problem is detailed here: 
http://gcc.gnu.org/ml/gcc/2003-11/msg00004.html )

Stephan T. Lavavej
http://nuwen.net




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