This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc -save-temps foo.c fails to build foo.o
- From: "Rekha Deshmukh" <RekhaD at kpit dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 1 Nov 2002 11:35:25 +0530
- Subject: gcc -save-temps foo.c fails to build foo.o
Hi all!
I have built mingw gcc for h8300 target using sources binutils-2.13, gcc-3.2 and newlib-1.10.0. The native mingw used for this cross compiler is built using gcc-3.0.3, mingw-runtime-2.1 and w32api-2.0 by specifying target i386-pc-mingw32msvc.
On this tool chain the problem reported in http://gcc.gnu.org/ml/gcc-prs/2002-02/msg00170.html is observed. The solution provided is to remove the patch http://gcc.gnu.org/ml/gcc-cvs/2001-12/msg00525.html. But the patch is actually needed in the case of assembly input files. The same patch properly works for cygwin based tool chains.
When debugged through the patch I observed that the st_dev's and st_ino's of the input file and the temp file are getting corrupted and that's why the patch is failing. I feel the problem is related to the mingw stat function.
Does anybody have any solution for this?
Please guide me.
Regards
Rekha Bhintade
KPIT Infosystems Ltd.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNUSH and GNUH8 tool-chains for Hitachi's SH and H8 Series.
The following site also offers free support to European customers.
Read more at http://www.kpit.com.
Latest versions of GNUSH and GNUH8 are released on October 1, 2002.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~