* Error incrementally compiling Emacs
@ 2022-11-13 23:35 Alessandro Bertulli
2022-11-14 0:50 ` Po Lu
0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Bertulli @ 2022-11-13 23:35 UTC (permalink / raw)
To: help-gnu-emacs
Hi all!
I'm trying to upgrade my Emacs. Being on Arch, I have a PKGBUILD script
from AUR (https://aur.archlinux.org/packages/emacs-git) to build the git
version. Issuing the compilation invokes the package build system, in
this case IIUC `make`, and all should be well. However, I have some
errors:
From stderr:
Source file ‘/home/alessandro/Downloads/AUR/emacs-git/src/emacs-git/lisp/emacs-lisp/cl-extra.el’ newer than byte-compiled file; using older file
Source file ‘/home/alessandro/Downloads/AUR/emacs-git/src/emacs-git/lisp/emacs-lisp/cl-extra.el’ newer than byte-compiled file; using older file
Source file ‘/home/alessandro/Downloads/AUR/emacs-git/src/emacs-git/lisp/emacs-lisp/cl-extra.el’ newer than byte-compiled file; using older file
Source file ‘/home/alessandro/Downloads/AUR/emacs-git/src/emacs-git/lisp/emacs-lisp/cl-extra.el’ newer than byte-compiled file; using older file
In toplevel form:
../../lisp/emacs-lisp/cconv.el:88:2: Error: Wrong type argument: stringp, (#<buffer *Compiler Output*>)
make[3]: *** [Makefile:322: ../../lisp/emacs-lisp/cconv.elc] Error 1
make[3]: *** Waiting for unfinished jobs....
Source file ‘/home/alessandro/Downloads/AUR/emacs-git/src/emacs-git/lisp/emacs-lisp/cl-extra.el’ newer than byte-compiled file; using older file
In toplevel form:
```
../../lisp/emacs-lisp/macroexp.el:31:2: Error: Wrong type argument: stringp, (#<buffer *Compiler Output*>)
make[3]: *** [Makefile:322: ../../lisp/emacs-lisp/macroexp.elc] Error 1
In toplevel form:
../../lisp/emacs-lisp/byte-opt.el:75:2: Error: Invalid function: (#<buffer *Compiler Output*>)
make[3]: *** [Makefile:322: ../../lisp/emacs-lisp/byte-opt.elc] Error 1
In toplevel form:
../../lisp/emacs-lisp/comp.el:206:2: Error: Invalid function: (#<buffer *Compiler Output*>)
make[3]: *** [Makefile:322: ../../lisp/emacs-lisp/comp.elc] Error 1
In toplevel form:
../../lisp/emacs-lisp/bytecomp.el:161:2: Error: Invalid function: (#<buffer *Compiler Output*>)
make[3]: *** [Makefile:322: ../../lisp/emacs-lisp/bytecomp.elc] Error 1
make[2]: *** [Makefile:915: bootstrap-emacs.pdmp] Error 2
make[1]: *** [Makefile:542: src] Error 2
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
*** to further investigate the problem
***
make[1]: *** [Makefile:413: advice-on-failure] Error 2
make: *** [Makefile:370: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
```
However, if I tweaked the script correctly, this is already the build
with `V=1`. I can rebuild the entire thing with `make bootstrap`, and it
would probably fix the problem, but I'd lose the precompiled files.
Do you know what can be the issue? Is this the right place to ask? Do
you know what I can further investigate?
Thanks!
--
Alessandro Bertulli
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error incrementally compiling Emacs
2022-11-13 23:35 Error incrementally compiling Emacs Alessandro Bertulli
@ 2022-11-14 0:50 ` Po Lu
2022-11-14 11:56 ` Alessandro Bertulli
0 siblings, 1 reply; 4+ messages in thread
From: Po Lu @ 2022-11-14 0:50 UTC (permalink / raw)
To: Alessandro Bertulli; +Cc: help-gnu-emacs
Alessandro Bertulli <alessandro.bertulli96@gmail.com> writes:
> Hi all!
>
> I'm trying to upgrade my Emacs. Being on Arch, I have a PKGBUILD script
> from AUR (https://aur.archlinux.org/packages/emacs-git) to build the git
> version. Issuing the compilation invokes the package build system, in
> this case IIUC `make`, and all should be well. However, I have some
> errors:
You have to:
rm lisp/emacs-lisp/bytecomp.elc
(or "make bootstrap".)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error incrementally compiling Emacs
2022-11-14 0:50 ` Po Lu
@ 2022-11-14 11:56 ` Alessandro Bertulli
2022-11-15 10:00 ` Alessandro Bertulli
0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Bertulli @ 2022-11-14 11:56 UTC (permalink / raw)
To: Po Lu; +Cc: help-gnu-emacs
Po Lu <luangruo@yahoo.com> writes:
> You have to:
>
> rm lisp/emacs-lisp/bytecomp.elc
>
> (or "make bootstrap".)
Thanks, I'll try. But why do I need to do that? Shouldn't I do the same also
for other .elc error throwing files?
--
Alessandro Bertulli
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error incrementally compiling Emacs
2022-11-14 11:56 ` Alessandro Bertulli
@ 2022-11-15 10:00 ` Alessandro Bertulli
0 siblings, 0 replies; 4+ messages in thread
From: Alessandro Bertulli @ 2022-11-15 10:00 UTC (permalink / raw)
To: Po Lu; +Cc: help-gnu-emacs
In case this was useful: I tried updating all of the .elc files (using
M-x byte-recompile-directory), and some of the errors went away.
However, others were still there, so I ended up doing a 'make
bootstrap' anyway. This got Emacs compiled correctly (even if the
'make check' target fails, but I suppose this is actually an upstream
issue).
--
Alessandro Bertulli
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-15 10:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-13 23:35 Error incrementally compiling Emacs Alessandro Bertulli
2022-11-14 0:50 ` Po Lu
2022-11-14 11:56 ` Alessandro Bertulli
2022-11-15 10:00 ` Alessandro Bertulli
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).