This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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 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

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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