From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Still unable to build trunk Date: Fri, 21 Jan 2011 20:29:02 -0500 Message-ID: References: <87y66fv2d3.fsf@stupidchicken.com> <4D388F7F.20708@swipnet.se> <87r5c7jk5m.fsf@stupidchicken.com> <4D39EF9C.1050804@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295659761 12169 80.91.229.12 (22 Jan 2011 01:29:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 22 Jan 2011 01:29:21 +0000 (UTC) Cc: Jan =?utf-8?Q?Dj=C3=A4rv?= , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 22 02:29:17 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PgSHz-0007gj-RF for ged-emacs-devel@m.gmane.org; Sat, 22 Jan 2011 02:29:16 +0100 Original-Received: from localhost ([127.0.0.1]:57372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgSHz-0003Lq-Bg for ged-emacs-devel@m.gmane.org; Fri, 21 Jan 2011 20:29:15 -0500 Original-Received: from [140.186.70.92] (port=35631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgSHu-0003LW-7s for emacs-devel@gnu.org; Fri, 21 Jan 2011 20:29:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgSHs-0006cJ-3A for emacs-devel@gnu.org; Fri, 21 Jan 2011 20:29:10 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:60339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgSHs-0006cF-0Z for emacs-devel@gnu.org; Fri, 21 Jan 2011 20:29:08 -0500 Original-Received: from cyd by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PgSHn-0006ug-Li; Fri, 21 Jan 2011 20:29:03 -0500 In-Reply-To: <4D39EF9C.1050804@cs.ucla.edu> (Paul Eggert's message of "Fri, 21 Jan 2011 12:42:04 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134843 Archived-At: Paul Eggert writes: >> configure should not complete successfully if >> the Makefiles that it generates cannot be used to make Emacs, due to a >> missing aclocal.m4 or whatever other reason. Nor should configure >> produce a set of Makefiles that causes `make' to infloop. That's a bug. > > I could not reproduce the bug from a fresh trunk checkout, even though > I tried lots of different ways (including environments that lacked > automake). From your email, it appears that you ran 'configure' > without --enable-maintainer-mode, which means that automake should be > invoked only if lib/Makefile.in was somehow removed. Perhaps > lib/Makefile.in was removed because you control-C'ed at some point? > > Anyway, to avoid the problem with a missing aclocal.m4 I added > the following dependency to the top-level Makefile.in: > > am--refresh: $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/src/config.in Now, when automake is installed, things seems to work OK. However, when automake is not installed: $ ./configure (completes successfully) $ make cd lib; make all \ CC='gcc' CFLAGS='-g -O2' CPPFLAGS='' \ LDFLAGS='-Wl,-znocombreloc ' MAKE='make' make[1]: Entering directory `/home/cyd/src/emacs/trunk2/lib' cd .. && make am--refresh make[2]: Entering directory `/home/cyd/src/emacs/trunk2' cd /home/cyd/src/emacs/trunk2 && aclocal -I m4 /bin/sh: aclocal: not found make[2]: *** [/home/cyd/src/emacs/trunk2/aclocal.m4] Error 127 make[2]: Leaving directory `/home/cyd/src/emacs/trunk2' make[1]: *** [/home/cyd/src/emacs/trunk2/aclocal.m4] Error 2 make[1]: Leaving directory `/home/cyd/src/emacs/trunk2/lib' make: *** [lib] Error 2 The fact that configure completes successfully, then fails to build, is a bug.