unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Compiling emacs from sources
@ 2017-05-03 14:52 Matthias Pfeifer
  2017-05-03 15:00 ` Eric Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthias Pfeifer @ 2017-05-03 14:52 UTC (permalink / raw)
  To: help-gnu-emacs

Im trying to compile emacs from sources. "git status" says there are no
changes in my working directory (compared to master branch) and I call
"./configure" and "make". make terminates with following last lines

[SNIP]
Loading register...
Loading textmodes/paragraphs...
Loading progmodes/prog-mode...
Loading emacs-lisp/lisp-mode...
Loading progmodes/elisp-mode...
Symbol's function definition is void: cl-old-struct-compat-mode
make[1]: *** [emacs] Fehler 255
make[1]: Verzeichnis »/home/matthias/emacs/src« wird verlassen
make: *** [src] Fehler 2

I don't think that something serious is going on since i keep having this
for a while (pulling in changes from the git repository but the error
remains). If I would be pointed to a solution that would be nice...

Matthias


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

* Re: Compiling emacs from sources
  2017-05-03 14:52 Compiling emacs from sources Matthias Pfeifer
@ 2017-05-03 15:00 ` Eric Brown
  2017-05-03 15:03 ` Stephen Berman
       [not found] ` <1493824345764.935552.bea03ee40072dc1f15d8e060f1634a68d082d2af@spica.telekom.de>
  2 siblings, 0 replies; 5+ messages in thread
From: Eric Brown @ 2017-05-03 15:00 UTC (permalink / raw)
  To: Matthias Pfeifer; +Cc: help-gnu-emacs


Matthias Pfeifer <mpfeifer77@gmail.com> writes:

> Im trying to compile emacs from sources. "git status" says there are no
> ...
> remains). If I would be pointed to a solution that would be nice...
>
> Matthias


You may wish to try:

make distclean && ./autogen.sh && ./configure && make bootstrap

where the important differences are claening and adding `bootstrap'.
This has fixed weird build problems for me in the past.



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

* Re: Compiling emacs from sources
  2017-05-03 14:52 Compiling emacs from sources Matthias Pfeifer
  2017-05-03 15:00 ` Eric Brown
@ 2017-05-03 15:03 ` Stephen Berman
       [not found] ` <1493824345764.935552.bea03ee40072dc1f15d8e060f1634a68d082d2af@spica.telekom.de>
  2 siblings, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2017-05-03 15:03 UTC (permalink / raw)
  To: Matthias Pfeifer; +Cc: help-gnu-emacs

On Wed, 3 May 2017 16:52:46 +0200 Matthias Pfeifer <mpfeifer77@gmail.com> wrote:

> Im trying to compile emacs from sources. "git status" says there are no
> changes in my working directory (compared to master branch) and I call
> "./configure" and "make". make terminates with following last lines
>
> [SNIP]
> Loading register...
> Loading textmodes/paragraphs...
> Loading progmodes/prog-mode...
> Loading emacs-lisp/lisp-mode...
> Loading progmodes/elisp-mode...
> Symbol's function definition is void: cl-old-struct-compat-mode
> make[1]: *** [emacs] Fehler 255
> make[1]: Verzeichnis »/home/matthias/emacs/src« wird verlassen
> make: *** [src] Fehler 2
>
> I don't think that something serious is going on since i keep having this
> for a while (pulling in changes from the git repository but the error
> remains). If I would be pointed to a solution that would be nice...

Instead of "make", "make bootstrap" (and, depending on your hardware, a
fair amount of patience) may help.

Steve Berman



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

* Re: Compiling emacs from sources
       [not found] ` <1493824345764.935552.bea03ee40072dc1f15d8e060f1634a68d082d2af@spica.telekom.de>
@ 2017-05-03 16:55   ` Matthias Pfeifer
  2017-05-03 20:15     ` tomas
  0 siblings, 1 reply; 5+ messages in thread
From: Matthias Pfeifer @ 2017-05-03 16:55 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks you all for the hints. I have obviously under-estimated the effort
to get a "home-grown" emacs and blindly tried "./configure  && make".



2017-05-03 17:12 GMT+02:00 stefan-husmann@t-online.de <
stefan-husmann@t-online.de>:

>
> Hello,
>
> > If I would be pointed to a solution that would be nice...
>
> > Matthias
>
> Read INSTALL.REPO. You probably Need a run of
>
> ./autogen.sh all
> 
>


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

* Re: Compiling emacs from sources
  2017-05-03 16:55   ` Matthias Pfeifer
@ 2017-05-03 20:15     ` tomas
  0 siblings, 0 replies; 5+ messages in thread
From: tomas @ 2017-05-03 20:15 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, May 03, 2017 at 06:55:11PM +0200, Matthias Pfeifer wrote:
> Thanks you all for the hints. I have obviously under-estimated the effort
> to get a "home-grown" emacs and blindly tried "./configure  && make".

The problem is due to compiled elisp files (.elc) hanging around which
are incompatible to the fresh elisp runtime you just made. Distclean
and/or bootstrap (as others pointed out) is the solution.

Yes, I tripped over that too :-)

cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlkKOkQACgkQBcgs9XrR2kbd+gCeInEeLVY0WIlJLfx5zlFeg/dZ
bKkAn3zFCEK2cXrJuY5KPFG0Rjk8NGJa
=u41E
-----END PGP SIGNATURE-----



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

end of thread, other threads:[~2017-05-03 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-03 14:52 Compiling emacs from sources Matthias Pfeifer
2017-05-03 15:00 ` Eric Brown
2017-05-03 15:03 ` Stephen Berman
     [not found] ` <1493824345764.935552.bea03ee40072dc1f15d8e060f1634a68d082d2af@spica.telekom.de>
2017-05-03 16:55   ` Matthias Pfeifer
2017-05-03 20:15     ` tomas

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