unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17629: Can't build emacs-24 branch
@ 2014-05-29 11:07 Jorgen Schaefer
  2014-05-29 14:47 ` Paul Eggert
  2014-05-29 15:04 ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: Jorgen Schaefer @ 2014-05-29 11:07 UTC (permalink / raw)
  To: 17629

Building the current emacs-24 branch fails for me.

Latest commit (git ref, sorry, no bzr here):

3302b06 Do not mention individual ns options in the manual

In a fresh checkout and with a clean tree:

$ ./autogen.sh && ./configure --without-x && make clean && make

[...]

make[2]: Leaving directory `/home/forcer/Programs/Emacs/trunk/lisp'
if test "no" = "yes"; then \
          rm -f bootstrap-emacs; \
          ln temacs bootstrap-emacs; \
        else \
          ./temacs --batch --load loadup bootstrap || exit 1; \
          test "X" = X ||  -zex emacs; \
          mv -f emacs bootstrap-emacs; \
        fi
Loading loadup.el (source)...
Using load-path (/home/forcer/Programs/Emacs/trunk/lisp /home/forcer/Programs/Emacs/trunk/lisp/emacs-lisp /home/forcer/Programs/Emacs/trunk/lisp/language /home/forcer/Programs/Emacs/trunk/lisp/international /home/forcer/Programs/Emacs/trunk/lisp/textmodes /home/forcer/Programs/Emacs/trunk/lisp/vc)
Loading emacs-lisp/byte-run (compiled; note, source file is newer)...
Loading emacs-lisp/backquote...
Loading subr (compiled; note, source file is newer)...
Loading version...
Loading widget...
Loading custom...
Loading emacs-lisp/map-ynp...
Loading international/mule...
Loading international/mule-conf...
Loading env...
Loading format...
Loading bindings...
Loading cus-start (compiled; note, source file is newer)...
Note, built-in variable `report-emacs-bug-address' not bound
Loading window (compiled; note, source file is newer)...
Loading files (compiled; note, source file is newer)...
Loading emacs-lisp/macroexp (compiled; note, source file is newer)...
Loading cus-face (compiled; note, source file is newer)...
Loading faces (compiled; note, source file is newer)...
Loading button...
Loading startup (compiled; note, source file is newer)...
Loading /home/forcer/Programs/Emacs/trunk/lisp/loaddefs.el (source)...
Wrong number of arguments: (2 . 2), 1
make[1]: *** [bootstrap-emacs] Error 1
make[1]: Leaving directory `/home/forcer/Programs/Emacs/trunk/src'
make: *** [src] Error 2           


x86_64-unknown-linux-gnu
System Description:	Debian GNU/Linux 7.5 (wheezy)





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 11:07 bug#17629: Can't build emacs-24 branch Jorgen Schaefer
@ 2014-05-29 14:47 ` Paul Eggert
  2014-05-29 15:04 ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Eggert @ 2014-05-29 14:47 UTC (permalink / raw)
  To: 17629

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

I cannot reproduce the problem; the same checkout (emacs-24 bzr 117169) 
works for me with that recipe on my host (Fedora 20 x86-64, GCC 4.9.0). 
  See attached build transcript and config.log.

Looking at your build snippet I'm suspicious of lines like this:

Loading emacs-lisp/byte-run (compiled; note, source file is newer)...

At this point during the bootstrap process there shouldn't be a compiled 
file byte-run.elc, because it hasn't been built yet.  In my log I see:

Loading emacs-lisp/byte-run (source)...

which is what I'd expect.  Perhaps you were doing a 'make -j' and ran 
into a parallelization problem?  Or maybe you did two 'make's, one 
interrupted?  Neither should cause this problem, but still, we need an 
explanation for why byte-run.elc was present when it should have been 
absent.

[-- Attachment #2: build-transcript.txt.gz --]
[-- Type: application/gzip, Size: 48954 bytes --]

[-- Attachment #3: config.log.gz --]
[-- Type: application/gzip, Size: 34200 bytes --]

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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 11:07 bug#17629: Can't build emacs-24 branch Jorgen Schaefer
  2014-05-29 14:47 ` Paul Eggert
@ 2014-05-29 15:04 ` Eli Zaretskii
  2014-05-29 16:06   ` Glenn Morris
  2014-05-29 16:31   ` Jorgen Schaefer
  1 sibling, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2014-05-29 15:04 UTC (permalink / raw)
  To: Jorgen Schaefer; +Cc: 17629

> From: Jorgen Schaefer <forcer@forcix.cx>
> Date: Thu, 29 May 2014 13:07:05 +0200
> 
> Building the current emacs-24 branch fails for me.
> 
> Latest commit (git ref, sorry, no bzr here):
> 
> 3302b06 Do not mention individual ns options in the manual
> 
> In a fresh checkout and with a clean tree:

This doesn't seem to be a clean tree:

> Loading emacs-lisp/byte-run (compiled; note, source file is newer)...
> Loading emacs-lisp/backquote...  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Loading subr (compiled; note, source file is newer)...
> Loading version... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Loading widget...
> Loading custom...
> Loading emacs-lisp/map-ynp...
> Loading international/mule...
> Loading international/mule-conf...
> Loading env...
> Loading format...
> Loading bindings...
> Loading cus-start (compiled; note, source file is newer)...
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Note, built-in variable `report-emacs-bug-address' not bound
> Loading window (compiled; note, source file is newer)...
> Loading files (compiled; note, source file is newer)...
> Loading emacs-lisp/macroexp (compiled; note, source file is newer)...
> Loading cus-face (compiled; note, source file is newer)...
> Loading faces (compiled; note, source file is newer)...
> Loading button...
> Loading startup (compiled; note, source file is newer)...
> Loading /home/forcer/Programs/Emacs/trunk/lisp/loaddefs.el (source)...
> Wrong number of arguments: (2 . 2), 1
> make[1]: *** [bootstrap-emacs] Error 1
> make[1]: Leaving directory `/home/forcer/Programs/Emacs/trunk/src'
> make: *** [src] Error 2           

Did you switch to the emacs-24 branch in the same git repository, and
then typed the command above?  If so, either "make bootstrap" or clone
a separate repository, switch to emacs-24 there, and then your
commands should work.

In Emacs development, the trunk and the release branch diverge very
quickly, so "make clean" is not enough to give you a "clean tree".





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 15:04 ` Eli Zaretskii
@ 2014-05-29 16:06   ` Glenn Morris
  2014-05-29 16:31   ` Jorgen Schaefer
  1 sibling, 0 replies; 9+ messages in thread
From: Glenn Morris @ 2014-05-29 16:06 UTC (permalink / raw)
  To: Jorgen Schaefer, 17629

Eli Zaretskii wrote:

>> In a fresh checkout and with a clean tree:
>
> This doesn't seem to be a clean tree:
[...]
> Did you switch to the emacs-24 branch in the same git repository, and
> then typed the command above?  If so, either "make bootstrap" or clone
> a separate repository, switch to emacs-24 there, and then your
> commands should work.
>
> In Emacs development, the trunk and the release branch diverge very
> quickly, so "make clean" is not enough to give you a "clean tree".


The main point is that `make clean' does not delete the compiled lisp
files (and cannot, since they are prebuilt in lisp tarfiles).
`make maintainer-clean', or `make bootstrap' does.
Always use `make bootstrap' if CPU time is not a factor, even when
building the same branch.

(Presumably this issue is going to occur more in the git-era, since it
doesn't have shared repos.)





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 15:04 ` Eli Zaretskii
  2014-05-29 16:06   ` Glenn Morris
@ 2014-05-29 16:31   ` Jorgen Schaefer
  2014-05-29 16:56     ` Glenn Morris
  1 sibling, 1 reply; 9+ messages in thread
From: Jorgen Schaefer @ 2014-05-29 16:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 17629, 17629-close

On Thu, 29 May 2014 18:04:15 +0300
Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Jorgen Schaefer <forcer@forcix.cx>
> > Date: Thu, 29 May 2014 13:07:05 +0200
> > 
> > Building the current emacs-24 branch fails for me.
> > 
> > Latest commit (git ref, sorry, no bzr here):
> > 
> > 3302b06 Do not mention individual ns options in the manual
> > 
> > In a fresh checkout and with a clean tree:
> 
> This doesn't seem to be a clean tree:

Indeed, this was a simple user error. Sorry for the noise.

> Did you switch to the emacs-24 branch in the same git repository, and
> then typed the command above?  If so, either "make bootstrap" or clone
> a separate repository, switch to emacs-24 there, and then your
> commands should work.

I did a git reset --hard and make distclean, but not a make bootstrap.
git st told me the repo was clean, but that obviously does not check
files in .gitignore. I should have used git clean. Meh.

Thanks for the quick response.

Regards,
Jorgen





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 16:31   ` Jorgen Schaefer
@ 2014-05-29 16:56     ` Glenn Morris
  2014-05-29 17:28       ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-05-29 16:56 UTC (permalink / raw)
  To: 17629


This make me think, should this from src/Makefile.in:

  $(RUN_TEMACS) --batch --load loadup bootstrap || exit 1; \

use (setq load-suffixes '(".el"))
to try and avoid this kind of problem?





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 16:56     ` Glenn Morris
@ 2014-05-29 17:28       ` Stefan Monnier
  2014-05-29 19:12         ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2014-05-29 17:28 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17629

> use (setq load-suffixes '(".el"))
> to try and avoid this kind of problem?

Wouldn't load-prefer-newer be a better choice?


        Stefan





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 17:28       ` Stefan Monnier
@ 2014-05-29 19:12         ` Glenn Morris
  2014-05-29 20:33           ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2014-05-29 19:12 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 17629

Stefan Monnier wrote:

>> use (setq load-suffixes '(".el"))
>> to try and avoid this kind of problem?
>
> Wouldn't load-prefer-newer be a better choice?

I guess it wouldn't do any harm to have a bootstrap-emacs that was
formed from a mix of compiled and uncompiled files...

The easiest (and IMO sanest) way to do this is to make load-prefer-newer
non-nil by default.
Fancy opening that can of worms...?





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

* bug#17629: Can't build emacs-24 branch
  2014-05-29 19:12         ` Glenn Morris
@ 2014-05-29 20:33           ` Stefan Monnier
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2014-05-29 20:33 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 17629

> The easiest (and IMO sanest) way to do this is to make load-prefer-newer
> non-nil by default.
> Fancy opening that can of worms...?

Try it on trunk?


        Stefan





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

end of thread, other threads:[~2014-05-29 20:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 11:07 bug#17629: Can't build emacs-24 branch Jorgen Schaefer
2014-05-29 14:47 ` Paul Eggert
2014-05-29 15:04 ` Eli Zaretskii
2014-05-29 16:06   ` Glenn Morris
2014-05-29 16:31   ` Jorgen Schaefer
2014-05-29 16:56     ` Glenn Morris
2014-05-29 17:28       ` Stefan Monnier
2014-05-29 19:12         ` Glenn Morris
2014-05-29 20:33           ` Stefan Monnier

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