GNU bug report logs - #38868
Problem compiling Emacs24 on Debian 10

Previous Next

Package: emacs;

Reported by: Eduardo Ochs <eduardoochs <at> gmail.com>

Date: Thu, 2 Jan 2020 06:07:01 UTC

Severity: normal

Done: Stefan Kangas <stefan <at> marxist.se>

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 38868 in the body.
You can then email your comments to 38868 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#38868; Package emacs. (Thu, 02 Jan 2020 06:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eduardo Ochs <eduardoochs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Jan 2020 06:07:01 GMT) Full text and rfc822 format available.

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

From: Eduardo Ochs <eduardoochs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem compiling Emacs24 on Debian 10
Date: Thu, 2 Jan 2020 03:06:07 -0300
Hi list,

I updated my Debian from Stretch (a.k.a. Debian 9) to Buster (a.k.a.
Debian 10) two days ago, and I noticed that in Buster the package
"emacs24" is essentially just a fake package that depends on
emacs-gtk... links:

  https://wiki.debian.org/DebianStretch
  https://wiki.debian.org/DebianBuster
  http://packages.debian.org/stretch/emacs24
  http://packages.debian.org/buster/emacs24

I am the author of a package called "eev" that is in ELPA and that
says this in its eev.el:

  ;; Package-Requires: ((emacs "24.1"))

I wanted to be sure that I wouldn't break compatibility with emacs24
if I changed a part of eev that has a defadvice, so I tried to compile
an emacs24 in my machine (for tests!!!) by doing this:


  # See: https://packages.debian.org/source/buster/emacs
  sudo apt-get build-dep -y emacs

  mkdir -p   ~/bigsrc/
  rm -Rf     ~/bigsrc/emacs24/
  cd         ~/bigsrc/
  git clone git://git.sv.gnu.org/emacs ~/bigsrc/emacs24
  cd         ~/bigsrc/emacs24/

  export PAGER=cat
  git branch --list -a
  git for-each-ref

  git checkout emacs-24

  ./autogen.sh   2>&1 | tee oa
  ./configure    2>&1 | tee oc
  # make         2>&1 | tee om
  make bootstrap 2>&1 | tee omb

  # "make bootstrap" fails!
  tail -n 15 omb
  # The output of "tail" is:
  # make[3]: Leaving directory '/home/edrx/bigsrc/emacs24/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
  # /bin/bash: line 7: 20593 Segmentation fault      ./temacs --batch
--load loadup bootstrap
  # make[2]: *** [Makefile:816: bootstrap-emacs] Error 1
  # make[2]: Leaving directory '/home/edrx/bigsrc/emacs24/src'
  # make[1]: *** [Makefile:387: src] Error 2
  # make[1]: Leaving directory '/home/edrx/bigsrc/emacs24'
  # make: *** [Makefile:1101: bootstrap] Error 2

  # To reproduce the step with the error, do:
  cd         ~/bigsrc/emacs24/src/
  ./temacs --batch --load loadup bootstrap


I'm not sure of what more I have to send to help people debug this -
please send instructions...

  Cheers =),
    Eduardo Ochs
    http://angg.twu.net/#eev
    http://angg.twu.net/emacsconf2019.html




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38868; Package emacs. (Thu, 02 Jan 2020 13:45:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Eduardo Ochs <eduardoochs <at> gmail.com>
Cc: 38868 <at> debbugs.gnu.org
Subject: Re: bug#38868: Problem compiling Emacs24 on Debian 10
Date: Thu, 02 Jan 2020 15:44:47 +0200
> From: Eduardo Ochs <eduardoochs <at> gmail.com>
> Date: Thu, 2 Jan 2020 03:06:07 -0300
> 
>   git checkout emacs-24
> 
>   ./autogen.sh   2>&1 | tee oa
>   ./configure    2>&1 | tee oc
>   # make         2>&1 | tee om
>   make bootstrap 2>&1 | tee omb
> 
>   # "make bootstrap" fails!
>   tail -n 15 omb
>   # The output of "tail" is:
>   # make[3]: Leaving directory '/home/edrx/bigsrc/emacs24/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
>   # /bin/bash: line 7: 20593 Segmentation fault      ./temacs --batch
> --load loadup bootstrap

I guess this is some problem with unexec and malloc in new glibc
versions?




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 18 Oct 2020 01:09:03 GMT) Full text and rfc822 format available.

Notification sent to Eduardo Ochs <eduardoochs <at> gmail.com>:
bug acknowledged by developer. (Sun, 18 Oct 2020 01:09:03 GMT) Full text and rfc822 format available.

Message #13 received at 38868-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 38868-done <at> debbugs.gnu.org, Eduardo Ochs <eduardoochs <at> gmail.com>
Subject: Re: bug#38868: Problem compiling Emacs24 on Debian 10
Date: Sun, 18 Oct 2020 01:08:13 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Eduardo Ochs <eduardoochs <at> gmail.com>
>> Date: Thu, 2 Jan 2020 03:06:07 -0300
>>
>>   git checkout emacs-24
>>
>>   ./autogen.sh   2>&1 | tee oa
>>   ./configure    2>&1 | tee oc
>>   # make         2>&1 | tee om
>>   make bootstrap 2>&1 | tee omb
>>
>>   # "make bootstrap" fails!
>>   tail -n 15 omb
>>   # The output of "tail" is:
>>   # make[3]: Leaving directory '/home/edrx/bigsrc/emacs24/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
>>   # /bin/bash: line 7: 20593 Segmentation fault      ./temacs --batch
>> --load loadup bootstrap
>
> I guess this is some problem with unexec and malloc in new glibc
> versions?

That was 41 weeks ago, and there were no further followups.  It sounds
likely that Eli's analysis here is correct and an older glibc would need
to be used.  In any case, I don't know what we can do about Emacs 24 now.
I'm therefore closing this bug now.

If this conclusion is incorrect and this is still an issue, please reply
to this email (use "Reply to all" in your email client) and we can
reopen the bug report.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38868; Package emacs. (Wed, 04 Nov 2020 23:33:02 GMT) Full text and rfc822 format available.

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

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 38868 <at> debbugs.gnu.org
Cc: stefan <at> marxist.se, eduardoochs <at> gmail.com
Subject: Re: bug#38868: Problem compiling Emacs24 on Debian 10
Date: Wed, 04 Nov 2020 23:32:01 +0000
Stefan Kangas <stefan <at> marxist.se> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Eduardo Ochs <eduardoochs <at> gmail.com>
>>> Date: Thu, 2 Jan 2020 03:06:07 -0300
>>>
>>>   git checkout emacs-24
>>>
>>>   ./autogen.sh   2>&1 | tee oa
>>>   ./configure    2>&1 | tee oc
>>>   # make         2>&1 | tee om
>>>   make bootstrap 2>&1 | tee omb
>>>
>>>   # "make bootstrap" fails!
>>>   tail -n 15 omb
>>>   # The output of "tail" is:
>>>   # make[3]: Leaving directory '/home/edrx/bigsrc/emacs24/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
>>>   # /bin/bash: line 7: 20593 Segmentation fault      ./temacs --batch
>>> --load loadup bootstrap
>>
>> I guess this is some problem with unexec and malloc in new glibc
>> versions?
>
> That was 41 weeks ago, and there were no further followups.  It sounds
> likely that Eli's analysis here is correct and an older glibc would need
> to be used.  In any case, I don't know what we can do about Emacs 24 now.
> I'm therefore closing this bug now.
>
> If this conclusion is incorrect and this is still an issue, please reply
> to this email (use "Reply to all" in your email client) and we can
> reopen the bug report.

This reminds me of the following report:
https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg01002.html

In which Noam suggests to apply the following patch for building with
-no-pie:
https://sources.debian.org/patches/emacs24/24.5+1-11+deb9u1/0027-Emacs-shouldn-t-segfault-when-gcc-expects-nopie.patch

I recall having to do that on Debian Testing in order to get Emacs 24.5
(from the official tarball, not Debian's) to build.

HTH,

-- 
Basil




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 03 Dec 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 201 days ago.

Previous Next


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