git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] Infinite make recursion when configure.ac changes

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2013, 06:10 UTC
Message-ID
<7vk3q2w61p.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130221060401.GC25943@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> I can easily replicate it here.
>
>> This seems due to the change in commit v1.7.12.4-1-g1226504: the
>> issue is still present there, but no longer is in the preceding
>> commit 7e201053 (a.k.a. v1.7.12.4).
>> 
>> I haven't investigated this any further for the moment.
>
> Hmm. It looks like config.status depends on configure.ac. So make
> rebuilds config.status, which runs "make configure", which includes
> "config.mak.autogen", leading "make" to think that it should rebuild the
> include file to make sure it is up to date. The include file depends on
> "config.status", which needs to be rebuilt due to configure.ac, which
> entails running "make configure", and so on.

I noticed this while looking at the other autoconf patch yesterday, but I was otherwise occupied in the evening and did not pursue it further. Thanks for looking into it.

This may be an unrelated issue, but I've always thought that it was strange and extremely unintuitive that running "make configure" once only creates config.mak.autogen, while running it once again after that (i.e. while having config.mak.autogen in the tree) seems to run the resulting "./configure" as well. Maybe it is just me.

Previous: Jeff KingNext: Jeff King
Message 3 of 5 in “[BUG] Infinite make recursion when configure.ac changes”
  1. Stefano LattariniFeb 20, 2013
  2. Jeff KingFeb 21, 2013
  3. Junio C HamanoFeb 21, 2013
  4. Jeff KingFeb 21, 2013
  5. Junio C HamanoFeb 21, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.