[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still unable to build trunk

From: Chong Yidong
Subject: Re: Still unable to build trunk
Date: Fri, 21 Jan 2011 20:29:02 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux)

Paul Eggert <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]