unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make bootstrap on trunk fails
@ 2011-02-25  7:15 Noorul Islam
  2011-02-25  7:27 ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Noorul Islam @ 2011-02-25  7:15 UTC (permalink / raw)
  To: Emacs Development

make bootstrap fails with the following error message.

gcc -c  -Demacs -DHAVE_CONFIG_H  -I.
-I/home/noorul/projects/emacs/trunk/src -I../lib
-I/home/noorul/projects/emacs/trunk/src/../lib   -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2       -I/usr/include/libxml2
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include        -MMD -MF
deps/emacs.d   -Wold-style-definition -Wdeclaration-after-statement
-g -O2 emacs.c
emacs.c:91: error: ‘VERSION’ undeclared here (not in a function)
make[2]: *** [emacs.o] Error 1
make[2]: Leaving directory `/home/noorul/projects/emacs/trunk/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/home/noorul/projects/emacs/trunk'
make: *** [bootstrap] Error 2

Thanks and Regards
Noorul



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-25  7:15 make bootstrap on trunk fails Noorul Islam
@ 2011-02-25  7:27 ` Paul Eggert
  2011-02-25  9:32   ` Noorul Islam
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Eggert @ 2011-02-25  7:27 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs Development

On 02/24/2011 11:15 PM, Noorul Islam wrote:
> emacs.c:91: error: ‘VERSION’ undeclared here (not in a function)

VERSION should be defined in config.h.  I suspect you are building
from a not-quite-clean checkout.  Perhaps you ran plain "autoconf"?
"autoreconf -I m4" at the root of the trunk might fix things,
or you could try a clean checkout.

It used to be that you could invoke "autoconf" etc. without the
"-I m4", but nowadays you need the "-I m4".



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-25  7:27 ` Paul Eggert
@ 2011-02-25  9:32   ` Noorul Islam
  2011-02-25  9:57     ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Noorul Islam @ 2011-02-25  9:32 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs Development

On Fri, Feb 25, 2011 at 12:57 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 02/24/2011 11:15 PM, Noorul Islam wrote:
>> emacs.c:91: error: ‘VERSION’ undeclared here (not in a function)
>
> VERSION should be defined in config.h.  I suspect you are building
> from a not-quite-clean checkout.  Perhaps you ran plain "autoconf"?
> "autoreconf -I m4" at the root of the trunk might fix things,
> or you could try a clean checkout.
>
> It used to be that you could invoke "autoconf" etc. without the
> "-I m4", but nowadays you need the "-I m4".
>

Do you think INSTALL.BZR file should be updated with this information.

Thanks and Regards
Noorul



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-25  9:32   ` Noorul Islam
@ 2011-02-25  9:57     ` Paul Eggert
  2011-02-26 14:21       ` Noorul Islam
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Eggert @ 2011-02-25  9:57 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs Development

On 02/25/2011 01:32 AM, Noorul Islam wrote:
> Do you think INSTALL.BZR file should be updated with this information.

I'm not sure why they'd need to be updated.
If you follow those instructions, things work, no?

I did add the info to admin/make-tarball.txt, which mentioned
invoking autoconf.  But I didn't see the need to update
INSTALL.BZR, as it doesn't mention autoconf.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-25  9:57     ` Paul Eggert
@ 2011-02-26 14:21       ` Noorul Islam
  2011-02-26 21:56         ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Noorul Islam @ 2011-02-26 14:21 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs Development

On Fri, Feb 25, 2011 at 3:27 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 02/25/2011 01:32 AM, Noorul Islam wrote:
>> Do you think INSTALL.BZR file should be updated with this information.
>
> I'm not sure why they'd need to be updated.
> If you follow those instructions, things work, no?
>
> I did add the info to admin/make-tarball.txt, which mentioned
> invoking autoconf.  But I didn't see the need to update
> INSTALL.BZR, as it doesn't mention autoconf.
>

Without "autoreconf -I m4" it did not work for me.

-Noorul



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-26 14:21       ` Noorul Islam
@ 2011-02-26 21:56         ` Paul Eggert
  2011-02-28  8:21           ` Noorul Islam
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Eggert @ 2011-02-26 21:56 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs Development

On 02/26/2011 06:21 AM, Noorul Islam wrote:
> Without "autoreconf -I m4" it did not work for me.

What are the failure symptoms and what platform are you on?
I just now tried "configure; make bootstrap" on a fresh
copy of the trunk (RHEL 5.5 x86-64) and had no problems.
I did not need to run autoreconf.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-26 21:56         ` Paul Eggert
@ 2011-02-28  8:21           ` Noorul Islam
  2011-03-01  0:58             ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Noorul Islam @ 2011-02-28  8:21 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Emacs Development

On Sun, Feb 27, 2011 at 3:26 AM, Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 02/26/2011 06:21 AM, Noorul Islam wrote:
>> Without "autoreconf -I m4" it did not work for me.
>
> What are the failure symptoms and what platform are you on?
> I just now tried "configure; make bootstrap" on a fresh
> copy of the trunk (RHEL 5.5 x86-64) and had no problems.
> I did not need to run autoreconf.
>

Mine was not a fresh copy.

I did "bzr update" and then ./configure && make bootstrap



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-02-28  8:21           ` Noorul Islam
@ 2011-03-01  0:58             ` Paul Eggert
  2011-03-01  1:38               ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Eggert @ 2011-03-01  0:58 UTC (permalink / raw)
  To: Noorul Islam; +Cc: Emacs Development

On 02/28/2011 12:21 AM, Noorul Islam wrote:
> I did "bzr update" and then ./configure&&  make bootstrap

Even then there should be no reason to run "autoconf" by hand.

Hmm, perhaps this scenario happened?

A. Somebody committed "configure.in" without
   also committing the corresponding "configure" etc. files.

B. You did a "bzr up", and then ran "configure" without
   "--enable-maintainer-mode", as shown above.

(A) happened in bzr 103411, which was around the time that
you reported the issue, so that might explain things.

Is it normal to commit configure.in without also committing
the corresponding changes to 'configure'?  That can cause
confusion, as it can cause a bzr checkout to be inconsistent
and unbuildable.  "configure --enable-maintainer-mode" works
around some of these problems, but not all, I expect.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-03-01  0:58             ` Paul Eggert
@ 2011-03-01  1:38               ` Glenn Morris
  2011-03-01  5:53                 ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2011-03-01  1:38 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Noorul Islam, Emacs Development

Paul Eggert wrote:

> Is it normal to commit configure.in without also committing
> the corresponding changes to 'configure'? 

I may do that sometimes, yes, because I consider regenerating configure
and committing it a PITA. I usually don't have the same version of
autoconf as the last guy, and I dislike adding a large, meaningless
chunk to the diff.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-03-01  1:38               ` Glenn Morris
@ 2011-03-01  5:53                 ` Paul Eggert
  2011-03-01  7:41                   ` Glenn Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Eggert @ 2011-03-01  5:53 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Noorul Islam, Emacs Development

On 02/28/2011 05:38 PM, Glenn Morris wrote:
> I may do that sometimes, yes, because I consider regenerating configure
> and committing it a PITA. I usually don't have the same version of
> autoconf as the last guy, and I dislike adding a large, meaningless
> chunk to the diff.

If this is standard practice, perhaps we should have --enable-maintainer-mode
be the default behavior for 'configure'.  That way, if someone does
a "bzr update" that updates configure.in without updating "configure",
then "make" should do the right thing and run "autoconf" to
rebuild "configure".



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-03-01  5:53                 ` Paul Eggert
@ 2011-03-01  7:41                   ` Glenn Morris
  2011-03-01  8:15                     ` Paul Eggert
  0 siblings, 1 reply; 12+ messages in thread
From: Glenn Morris @ 2011-03-01  7:41 UTC (permalink / raw)
  To: Paul Eggert; +Cc: Noorul Islam, Emacs Development

Paul Eggert wrote:

> If this is standard practice, perhaps we should have
> --enable-maintainer-mode be the default behavior for 'configure'. That
> way, if someone does a "bzr update" that updates configure.in without
> updating "configure", then "make" should do the right thing and run
> "autoconf" to rebuild "configure".

What's the problem with _not_ doing that, ie the current set-up? Don't
they just get an out-of-date configure, or is there some internal
inconsistency? Eg my 2011-02-24 change to configure.in was of no
practical consequence. There's no pressing need to regenerate configure
just for that.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: make bootstrap on trunk fails
  2011-03-01  7:41                   ` Glenn Morris
@ 2011-03-01  8:15                     ` Paul Eggert
  0 siblings, 0 replies; 12+ messages in thread
From: Paul Eggert @ 2011-03-01  8:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Noorul Islam, Emacs Development

On 02/28/2011 11:41 PM, Glenn Morris wrote:
> What's the problem with _not_ doing that, ie the current set-up?

The message that started this thread
<http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01077.html>
reported a build failure due to a missing VERSION in config.h.
I was thinking this might be due to an out-of-date 'configure'.
However, given your further explanation, I probably jumped the gun,
and the original problem was elsewhere (nobody knows where, alas).



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-03-01  8:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25  7:15 make bootstrap on trunk fails Noorul Islam
2011-02-25  7:27 ` Paul Eggert
2011-02-25  9:32   ` Noorul Islam
2011-02-25  9:57     ` Paul Eggert
2011-02-26 14:21       ` Noorul Islam
2011-02-26 21:56         ` Paul Eggert
2011-02-28  8:21           ` Noorul Islam
2011-03-01  0:58             ` Paul Eggert
2011-03-01  1:38               ` Glenn Morris
2011-03-01  5:53                 ` Paul Eggert
2011-03-01  7:41                   ` Glenn Morris
2011-03-01  8:15                     ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).