* build error in libgcc
@ 2013-06-21 1:25 Mike Stump
2013-06-21 7:30 ` Andreas Schwab
2013-06-22 5:18 ` Ian Lance Taylor
0 siblings, 2 replies; 8+ messages in thread
From: Mike Stump @ 2013-06-21 1:25 UTC (permalink / raw)
To: gcc@gcc.gnu.org List
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…
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-21 1:25 build error in libgcc Mike Stump
@ 2013-06-21 7:30 ` Andreas Schwab
2013-06-22 5:18 ` Ian Lance Taylor
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2013-06-21 7:30 UTC (permalink / raw)
To: Mike Stump; +Cc: gcc@gcc.gnu.org List
Mike Stump <mikestump@comcast.net> writes:
> 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â¦
The right way is to let the compiler do it.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-21 1:25 build error in libgcc Mike Stump
2013-06-21 7:30 ` Andreas Schwab
@ 2013-06-22 5:18 ` Ian Lance Taylor
2013-06-22 6:19 ` Chung-Ju Wu
1 sibling, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2013-06-22 5:18 UTC (permalink / raw)
To: Mike Stump; +Cc: gcc@gcc.gnu.org List
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-22 5:18 ` Ian Lance Taylor
@ 2013-06-22 6:19 ` Chung-Ju Wu
2013-06-22 6:50 ` Andreas Schwab
0 siblings, 1 reply; 8+ messages in thread
From: Chung-Ju Wu @ 2013-06-22 6:19 UTC (permalink / raw)
To: Mike Stump, Ian Lance Taylor; +Cc: gcc@gcc.gnu.org List
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-22 6:19 ` Chung-Ju Wu
@ 2013-06-22 6:50 ` Andreas Schwab
2013-06-22 7:17 ` Chung-Ju Wu
0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2013-06-22 6:50 UTC (permalink / raw)
To: Chung-Ju Wu; +Cc: Mike Stump, Ian Lance Taylor, gcc@gcc.gnu.org List
Chung-Ju Wu <jasonwucj@gmail.com> writes:
> 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
Same for stamp-h.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-22 6:50 ` Andreas Schwab
@ 2013-06-22 7:17 ` Chung-Ju Wu
2013-06-22 15:16 ` Ian Lance Taylor
0 siblings, 1 reply; 8+ messages in thread
From: Chung-Ju Wu @ 2013-06-22 7:17 UTC (permalink / raw)
To: Andreas Schwab, Mike Stump; +Cc: Ian Lance Taylor, gcc@gcc.gnu.org List
2013/6/22 Andreas Schwab <schwab@linux-m68k.org>:
> Chung-Ju Wu <jasonwucj@gmail.com> writes:
>
>> 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
>
> Same for stamp-h.
>
Like this?
===================================================================
--- libgcc/Makefile.in (revision 200306)
+++ libgcc/Makefile.in (working copy)
@@ -121,8 +121,8 @@
.PHONY: all clean
clean:
- -rm -f auto-target.h libgcc_tm.h libgcc.map
- -rm -f libgcc_tm.stamp stamp-h stmp-ldirs
+ -rm -f libgcc_tm.h libgcc.map
+ -rm -f libgcc_tm.stamp stmp-ldirs
-rm -f *$(objext)
-rm -f *.dep
-rm -f *.a
@@ -131,6 +131,8 @@
@$(MULTICLEAN) multi-clean DO=clean
distclean: clean
@$(MULTICLEAN) multi-clean DO=distclean
+ -rm -f auto-target.h
+ -rm -f stamp-h
-rm -f *~ Makefile config.cache config.status multilib.out
-rm -f config.log
maintainer-clean realclean: distclean
Hi, Mike, would you try this revised one? :)
Best regards,
jasonwucj
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-22 7:17 ` Chung-Ju Wu
@ 2013-06-22 15:16 ` Ian Lance Taylor
2013-06-25 8:29 ` Chung-Ju Wu
0 siblings, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2013-06-22 15:16 UTC (permalink / raw)
To: Chung-Ju Wu; +Cc: Andreas Schwab, Mike Stump, gcc@gcc.gnu.org List
On Sat, Jun 22, 2013 at 12:17 AM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
> Like this?
>
> ===================================================================
> --- libgcc/Makefile.in (revision 200306)
> +++ libgcc/Makefile.in (working copy)
> @@ -121,8 +121,8 @@
> .PHONY: all clean
>
> clean:
> - -rm -f auto-target.h libgcc_tm.h libgcc.map
> - -rm -f libgcc_tm.stamp stamp-h stmp-ldirs
> + -rm -f libgcc_tm.h libgcc.map
> + -rm -f libgcc_tm.stamp stmp-ldirs
> -rm -f *$(objext)
> -rm -f *.dep
> -rm -f *.a
> @@ -131,6 +131,8 @@
> @$(MULTICLEAN) multi-clean DO=clean
> distclean: clean
> @$(MULTICLEAN) multi-clean DO=distclean
> + -rm -f auto-target.h
> + -rm -f stamp-h
> -rm -f *~ Makefile config.cache config.status multilib.out
> -rm -f config.log
> maintainer-clean realclean: distclean
>
>
> Hi, Mike, would you try this revised one? :)
This patch is OK with a ChangeLog entry.
Thanks.
Ian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: build error in libgcc
2013-06-22 15:16 ` Ian Lance Taylor
@ 2013-06-25 8:29 ` Chung-Ju Wu
0 siblings, 0 replies; 8+ messages in thread
From: Chung-Ju Wu @ 2013-06-25 8:29 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: Andreas Schwab, Mike Stump, gcc@gcc.gnu.org List
2013/6/22 Ian Lance Taylor <iant@google.com>:
> On Sat, Jun 22, 2013 at 12:17 AM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
>> Like this?
>>
>> ===================================================================
>> --- libgcc/Makefile.in (revision 200306)
>> +++ libgcc/Makefile.in (working copy)
>> @@ -121,8 +121,8 @@
>> .PHONY: all clean
>>
>> clean:
>> - -rm -f auto-target.h libgcc_tm.h libgcc.map
>> - -rm -f libgcc_tm.stamp stamp-h stmp-ldirs
>> + -rm -f libgcc_tm.h libgcc.map
>> + -rm -f libgcc_tm.stamp stmp-ldirs
>> -rm -f *$(objext)
>> -rm -f *.dep
>> -rm -f *.a
>> @@ -131,6 +131,8 @@
>> @$(MULTICLEAN) multi-clean DO=clean
>> distclean: clean
>> @$(MULTICLEAN) multi-clean DO=distclean
>> + -rm -f auto-target.h
>> + -rm -f stamp-h
>> -rm -f *~ Makefile config.cache config.status multilib.out
>> -rm -f config.log
>> maintainer-clean realclean: distclean
>>
>>
>> Hi, Mike, would you try this revised one? :)
>
> This patch is OK with a ChangeLog entry.
>
> Thanks.
>
> Ian
Thanks for the review and approval.
The patch and a ChangeLog has been posted on:
http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01420.html
Best regards,
jasonwucj
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-06-25 8:29 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-21 1:25 build error in libgcc Mike Stump
2013-06-21 7:30 ` Andreas Schwab
2013-06-22 5:18 ` Ian Lance Taylor
2013-06-22 6:19 ` Chung-Ju Wu
2013-06-22 6:50 ` Andreas Schwab
2013-06-22 7:17 ` Chung-Ju Wu
2013-06-22 15:16 ` Ian Lance Taylor
2013-06-25 8:29 ` Chung-Ju Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).