This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trouble cross-compiling gcc-3.3.2 under MinGW
- From: "Stephan T. Lavavej" <stl at caltech dot edu>
- To: <gcc at gcc dot gnu dot org>
- Cc: <peter at the-baradas dot com>
- Date: Sun, 2 Nov 2003 12:39:26 -0800
- Subject: Re: Trouble cross-compiling gcc-3.3.2 under MinGW
- Reply-to: <stl at caltech dot edu>
> 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