This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: build error in libgcc
- From: Chung-Ju Wu <jasonwucj at gmail dot com>
- To: Mike Stump <mikestump at comcast dot net>, Ian Lance Taylor <iant at google dot com>
- Cc: "gcc at gcc dot gnu dot org List" <gcc at gcc dot gnu dot org>
- Date: Sat, 22 Jun 2013 14:19:48 +0800
- Subject: Re: build error in libgcc
- References: <350E64F3-3F4B-4C07-8A4F-9B0DC38B5A42 at comcast dot net> <CAKOQZ8xstoYJCTf0DzyZ_7Gte35HgRp2ya7GyRSXJhvmS3BKFA at mail dot gmail dot com>
2013/6/22 Ian Lance Taylor <iant@google.com>:
> On Thu, Jun 20, 2013 at 6:25 PM, Mike Stump <mikestump@comcast.net> wrote:
>> A make clean followed by a make in the libgcc directory results in:
>>
>> ../../../../gcc/libgcc/config/i386/cpuinfo.c:23:25: fatal error: auto-target.h: No such file or directory
>> #include "auto-target.h"
>>
>> Oh, the the old days, we'd just add a dependancy… If someone knows where to add just the right one… I ask, because there doesn't seem to be a single .h dependency anywhere…
>
> auto-target.h is created by the configure script.
>
> It's a bug that it is removed by "make clean". It should only be
> removed by "make distclean".
>
> Ian
Well... in that case, how about this patch??
Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in (revision 200306)
+++ libgcc/Makefile.in (working copy)
@@ -121,7 +121,7 @@
.PHONY: all clean
clean:
- -rm -f auto-target.h libgcc_tm.h libgcc.map
+ -rm -f libgcc_tm.h libgcc.map
-rm -f libgcc_tm.stamp stamp-h stmp-ldirs
-rm -f *$(objext)
-rm -f *.dep
@@ -131,6 +131,7 @@
@$(MULTICLEAN) multi-clean DO=clean
distclean: clean
@$(MULTICLEAN) multi-clean DO=distclean
+ -rm -f auto-target.h
-rm -f *~ Makefile config.cache config.status multilib.out
-rm -f config.log
maintainer-clean realclean: distclean
Hi, Mike, would you try it to see if it fixes the problem?
If it does, I will post the patch on gcc-patches@gcc.gnu.org
to acquire Ian's approval. :)
Best regards,
jasonwucj