GNU bug report logs - #62481
Unable to build master

Previous Next

Package: emacs;

Reported by: Juan Miguel Carceller <j.m.carcell <at> cern.ch>

Date: Mon, 27 Mar 2023 13:15:03 UTC

Severity: normal

Merged with 62537, 62596, 62644, 62655

Found in versions 29.0.60, 30.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62481 in the body.
You can then email your comments to 62481 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62481; Package emacs. (Mon, 27 Mar 2023 13:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juan Miguel Carceller <j.m.carcell <at> cern.ch>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 27 Mar 2023 13:15:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juan Miguel Carceller <j.m.carcell <at> cern.ch>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Unable to build master
Date: Mon, 27 Mar 2023 08:42:22 +0000
[Message part 1 (text/plain, inline)]
I pulled today from the github mirror from master and now emacs doesn't build, even after a clean build. This is what I get:

```
Error: native-ice ("org/org-plot.el" "block does not end with a branch" #s(comp-block-lap bb_8 ((comment "LAP TAG 83") (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil nil nil nil 2) make-temp-file) (setimm #s(comp-mvar (t) nil nil nil nil 3) "org-plot") (set #s(comp-mvar (t) nil nil nil nil 2) (callref funcall #s(comp-mvar (t) nil nil nil nil 2) #s(comp-mvar (t) nil nil nil nil 3))) (call record_unwind_protect_excursion) (setimm #s(comp-mvar (t) nil nil nil nil 3) org-plot/goto-nearest-table) (set #s(comp-mvar (t) nil nil nil nil 3) (callref funcall #s(comp-mvar (t) nil nil nil nil 3))) (setimm #s(comp-mvar (t) nil nil nil nil 3) org-table-to-lisp) (set #s(comp-mvar (t) nil nil nil nil 3) (callref funcall #s(comp-mvar (t) nil nil nil nil 3))) (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil nil nil nil 4) plist-get) (set #s(comp-mvar (t) nil nil nil nil 5) #s(comp-mvar (t) nil nil nil nil 0)) (setimm #s(comp-mvar (t) nil nil nil nil 6) :transpose) (set #s(comp-mvar (t) nil nil nil nil 4) (callref funcall #s(comp-mvar (t) nil nil nil nil 4) #s(comp-mvar (t) nil nil nil nil 5) #s(comp-mvar (t) nil nil nil nil 6))) (set #s(comp-mvar (t) nil nil nil nil 5) #s(comp-mvar (t) nil nil nil nil 4)) (setimm #s(comp-mvar (t) nil nil nil nil 6) #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (y 105 yes 105 t 105)))) nil nil nil nil #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) nil nil 1 72 nil nil) org-plot/gnuplot)
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0x679c65d12517825>))
  debug-early-backtrace()
  debug-early(error (native-ice "org/org-plot.el" "block does not end with a branch" #s(comp-block-lap :name bb_8 :insns ((comment "LAP TAG 83") (call helper_unbind_n #s(comp-mvar :typeset nil :valset nil :range ((1 . 1)) :neg nil :id nil :slot nil)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) make-temp-file) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) "org-plot") (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (call record_unwind_protect_excursion) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) org-plot/goto-nearest-table) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) org-table-to-lisp) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (call helper_unbind_n #s(comp-mvar :typeset nil :valset nil :range ((1 . 1)) :neg nil :id nil :slot nil)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) plist-get) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 0)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6) :transpose) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6))) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6) #<hash-table eq 3/3 0x15891561340b>)) :closed nil :in-edges nil :out-edges nil :idom nil :df #<hash-table eql 0/65 0x15891563b0f5> :post-num nil :final-frame nil :sp 1 :addr 72 :non-ret-insn nil :no-ret nil) org-plot/gnuplot))elc
  signal(native-ice ("org/org-plot.el" "block does not end with a branch" #s(comp-block-lap :name bb_8 :insns ((comment "LAP TAG 83") (call helper_unbind_n #s(comp-mvar :typeset nil :valset nil :range ((1 . 1)) :neg nil :id nil :slot nil)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) make-temp-file) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) "org-plot") (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 2) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (call record_unwind_protect_excursion) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) org-plot/goto-nearest-table) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) org-table-to-lisp) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 3))) (call helper_unbind_n #s(comp-mvar :typeset nil :valset nil :range ((1 . 1)) :neg nil :id nil :slot nil)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) plist-get) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 0)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6) :transpose) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) (callref funcall #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 4) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6))) (set #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 5) #s(comp-mvar :typeset
 (t) :valset nil :range nil :neg nil :id nil :slot 4)) (setimm #s(comp-mvar :typeset (t) :valset nil :range nil :neg nil :id nil :slot 6) #<hash-table eq 3/3 0x15891561340b>)) :closed nil :in-edges nil :out-edges nil :idom nil :df #<hash-table eql 0/65 0x15891563b0f5> :post-num nil :final-frame nil :sp 1 :addr 72 :non-ret-insn nil :no-ret nil) org-plot/gnuplot))
  comp--native-compile("org/org-plot.el")
  batch-native-compile()
  batch-byte+native-compile()
  command-line-1(("--eval" "(setq load-prefer-newer t byte-compile-warnings 'all)" "-l" "comp" "-f" "batch-byte+native-compile" "org/org-plot.el"))
  command-line()
  normal-top-level()
Internal native compiler error: "org/org-plot.el", "block does not end with a branch", #s(comp-block-lap bb_8 ((comment "LAP TAG 83") (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil nil nil nil 2) make-temp-file) (setimm #s(comp-mvar (t) nil nil nil nil 3) "org-plot") (set #s(comp-mvar (t) nil nil nil nil 2) (callref funcall #s(comp-mvar (t) nil nil nil nil 2) #s(comp-mvar (t) nil nil nil nil 3))) (call record_unwind_protect_excursion) (setimm #s(comp-mvar (t) nil nil nil nil 3) org-plot/goto-nearest-table) (set #s(comp-mvar (t) nil nil nil nil 3) (callref funcall #s(comp-mvar (t) nil nil nil nil 3))) (setimm #s(comp-mvar (t) nil nil nil nil 3) org-table-to-lisp) (set #s(comp-mvar (t) nil nil nil nil 3) (callref funcall #s(comp-mvar (t) nil nil nil nil 3))) ...) nil nil nil nil #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data ()) nil nil ...), #<symbol org-plot/gnuplot at 23521>
make[3]: *** [Makefile:327: org/org-plot.elc] Error 255
```

I'm doing the following

```
./autogen.sh
./configure --without-sound --with-json --with-tree-sitter --without-gpm --without-selinux --with-native-compilation=aot --with-x  CFLAGS='-O3 -march=native -mtune=native' --without-mailutils
make -j 8
```

My system is Arch Linux with everything up to date, gcc 12.2.1 and libgccjit 12.2.1. I don't know if I'm doing anything as it doesn't seem there have been recent changes and I have been able to build it a few weeks ago.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62481; Package emacs. (Mon, 27 Mar 2023 13:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 62481 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juan Miguel Carceller <j.m.carcell <at> cern.ch>, Andrea Corallo <akrl <at> sdf.org>
Cc: 62481 <at> debbugs.gnu.org
Subject: Re: bug#62481: Unable to build master
Date: Mon, 27 Mar 2023 16:56:38 +0300
> From: Juan Miguel Carceller <j.m.carcell <at> cern.ch>
> Date: Mon, 27 Mar 2023 08:42:22 +0000
> 
> I pulled today from the github mirror from master and now emacs doesn't build, even after a clean build. This
> is what I get:
> 
> ```
> Error: native-ice ("org/org-plot.el" "block does not end with a branch" #s(comp-block-lap bb_8 ((comment
> "LAP TAG 83") (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil

Could be a duplicate of bug#61917.

Andrea, can you take a look, please?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62481; Package emacs. (Mon, 27 Mar 2023 14:44:01 GMT) Full text and rfc822 format available.

Message #11 received at 62481 <at> debbugs.gnu.org (full text, mbox):

From: Corwin Brust <corwin <at> bru.st>
To: Juan Miguel Carceller <j.m.carcell <at> cern.ch>
Cc: 62481 <at> debbugs.gnu.org
Subject: Re: bug#62481: Unable to build master
Date: Mon, 27 Mar 2023 09:43:14 -0500
On Mon, Mar 27, 2023 at 3:42 AM Juan Miguel Carceller
<j.m.carcell <at> cern.ch> wrote:
>
> I pulled today from the github mirror from master and now emacs doesn't build, even after a clean build. This is what I get:
[...]
> ./configure --without-sound --with-json --with-tree-sitter --without-gpm --without-selinux --with-native-compilation=aot --with-x  CFLAGS='-O3 -march=native -mtune=native' --without-mailutils
[...]
> My system is Arch Linux with everything up to date, gcc 12.2.1 and libgccjit 12.2.1. I don't know if I'm doing anything as it doesn't seem there have been recent changes and I have been able to build it a few weeks ago.

I doubt it makes a difference regarding the problem you are reporting,
but, In case it helps, I believe we need to pass a flag to make to get
ahead-of-time native elisp compilation.
I mention because, above, you use "--with-native-compilation=aot" and
I wanted to make sure you (other readers) are aware that configure's
--with-native-compilation doesn't take any arg.

In any case, FWIW, I was able to build the current master under
Windows/MINGW64 just now.  (So maybe this problem is specific to your
platform or doesn't affect windows or has been fixed or -rather
unlikely, I think- has something to do with the NC/AOT stuff I
mentioned.)

In any event, here's what worked for me, just now:

(export SLUG=30-$(git rev-parse --short HEAD); (./autogen.sh &&
./configure --with-modules --without-dbus --with-native-compilation
--without-compress-install --with-tree-sitter CFLAGS=-O2 && make
install -j 20 NATIVE_FULL_AOT=1
prefix=/d/emacs-build/install/emacs-${SLUG}) | tee
/d/emacs-build/install/emacs-${SLUG}.log)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62481; Package emacs. (Mon, 27 Mar 2023 17:06:01 GMT) Full text and rfc822 format available.

Message #14 received at 62481 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Juan Miguel Carceller <j.m.carcell <at> cern.ch>, 62481 <at> debbugs.gnu.org
Subject: Re: bug#62481: Unable to build master
Date: Mon, 27 Mar 2023 17:05:16 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Juan Miguel Carceller <j.m.carcell <at> cern.ch>
>> Date: Mon, 27 Mar 2023 08:42:22 +0000
>> 
>> I pulled today from the github mirror from master and now emacs doesn't build, even after a clean build. This
>> is what I get:
>> 
>> ```
>> Error: native-ice ("org/org-plot.el" "block does not end with a branch" #s(comp-block-lap bb_8 ((comment
>> "LAP TAG 83") (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil
>
> Could be a duplicate of bug#61917.
>
> Andrea, can you take a look, please?

Yep will do

  Andrea





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62481; Package emacs. (Wed, 29 Mar 2023 11:53:02 GMT) Full text and rfc822 format available.

Message #17 received at 62481 <at> debbugs.gnu.org (full text, mbox):

From: Arsen Arsenović <arsen <at> aarsen.me>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: Juan Miguel Carceller <j.m.carcell <at> cern.ch>, Eli Zaretskii <eliz <at> gnu.org>,
 62481 <at> debbugs.gnu.org, debbugs-submit <at> debbugs.gnu.org
Subject: Re: bug#62481: Unable to build master
Date: Wed, 29 Mar 2023 13:50:16 +0200
[Message part 1 (text/plain, inline)]
Andrea Corallo <akrl <at> sdf.org> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Juan Miguel Carceller <j.m.carcell <at> cern.ch>
>>> Date: Mon, 27 Mar 2023 08:42:22 +0000
>>> 
>>> I pulled today from the github mirror from master and now emacs doesn't build, even after a clean build. This
>>> is what I get:
>>> 
>>> ```
>>> Error: native-ice ("org/org-plot.el" "block does not end with a branch" #s(comp-block-lap bb_8 ((comment
>>> "LAP TAG 83") (call helper_unbind_n #s(comp-mvar nil nil ((1 . 1)) nil nil nil)) (setimm #s(comp-mvar (t) nil
>>
>> Could be a duplicate of bug#61917.
>>
>> Andrea, can you take a look, please?
>
> Yep will do
>
>   Andrea

I bisected this before learning of this bug report to commit
emacs-28.2-164697-g52b67740d10.  Reverting that commit lets me build
Emacs.

On gcc (Gentoo Hardened 13.0.1_pre20230326 p9) 13.0.1 20230326
(experimental)

Hope that helps, have a lovely day.
-- 
Arsen Arsenović
[signature.asc (application/pgp-signature, inline)]

Merged 62481 62537. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 30 Mar 2023 08:51:02 GMT) Full text and rfc822 format available.

Merged 62481 62537 62596. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 01 Apr 2023 18:57:02 GMT) Full text and rfc822 format available.

Merged 62481 62537 62596 62644. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 03 Apr 2023 14:37:02 GMT) Full text and rfc822 format available.

Merged 62481 62537 62596 62644 62655. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 04 Apr 2023 02:25:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 29 Oct 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.