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: Peter Barada <peter at baradas dot org>
- To: dank at kegel dot com
- Cc: crossgcc at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Sun, 2 Nov 2003 15:25:08 -0500 (EST)
- Subject: Re: Trouble cross-compiling gcc-3.3.2 under MinGW
- References: <20031102182723.9699998436@baradas.org> <3FA566A0.1000907@kegel.com>
>> 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 can see the file ansidecl.h and it is indeed in the directory
>> mentioned, so I'm at a loss...
>>
>> Has anyone seen this before, or does anyone have any suggestions how I
>> can proceed?
>
>Maybe it's a permissions problem? Can you cat the file?
The errno is 2(ENOENT), not 13(EACCES), so I don't thinks its a
permission problem. I wrote a quick-n-dirty program to fopen the
ansidecl.h file, and it fails as well with errno=2. I can cat the
file form the shell so indeed its there and readable. So it looks
like the conversion from unix to windows path/filenames is breaking.
>How about running gentype under gdb or strace?
GDB just tells me that fopen returned a zero, and errno=2. Under
MinGW, there's no strace. I started to step into fopen(), but that
turned into a rats nest without source.
--
Peter Barada
peter@the-baradas.com