GNU bug report logs - #72921
Building emacs-yaml with emacs takes approximately eternity

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sat, 31 Aug 2024 21:03:01 UTC

Severity: normal

Done: Nicolas Graves <ngraves <at> ngraves.fr>

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 72921 in the body.
You can then email your comments to 72921 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-guix <at> gnu.org:
bug#72921; Package guix. (Sat, 31 Aug 2024 21:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 31 Aug 2024 21:03:02 GMT) Full text and rfc822 format available.

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

From: Tomas Volf <~@wolfsden.cz>
To: bug-guix <at> gnu.org
Subject: Building emacs-yaml with emacs takes approximately eternity
Date: Sat, 31 Aug 2024 23:01:03 +0200
[Message part 1 (text/plain, inline)]
The emacs-yaml package is configured to build against emacs-minimal,
which seems to work.  When you however switch to emacs package, it takes
way to long to build, much longer than compiling for example firefox
package.  That feels off.

--8<---------------cut here---------------start------------->8---
$ time guix time-machine -q --commit=b8327cb31199fb9f4ebed6c53a59601d41def5a1 -- build --check --no-grafts -q --with-input=emacs-minimal=emacs-minimal emacs-yaml
/gnu/store/8lqdd8yna92zqgsgip396a1wbyhr5pfn-emacs-yaml-0.5.5
12.573 secs
$ time guix time-machine -q --commit=b8327cb31199fb9f4ebed6c53a59601d41def5a1 -- build --check --no-grafts -q --with-input=emacs-minimal=emacs emacs-yaml
/gnu/store/ja9xfndhfafjczp6n7qfy1h21hvdpd5j-emacs-yaml-0.5.5
2869.878 secs
--8<---------------cut here---------------end--------------->8---

The difference is huge.  The process taking vast majority of the time
(in the emacs version) is this one:

--8<---------------cut here---------------start------------->8---
32393 guixbuil 47:10 {.emacs-29.4-rea} /gnu/store/y7yhpgi48klqpadrmfknl4bln9c4n05y-emacs-29.4/bin/emacs -no-comp-spawn -Q --batch -l /tmp/guix-build-emacs-yaml-0.5.5.drv-0/emacs-int-comp-yaml-pbHFU3.el
--8<---------------cut here---------------end--------------->8---

I do not know enough to even guess what could be the problem, but it was
suggested I should bug-report this.

Cheers,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#72921; Package guix. (Sun, 01 Sep 2024 06:48:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Tomas Volf <~@wolfsden.cz>, 72921 <at> debbugs.gnu.org
Subject: Re: Building emacs-yaml with emacs takes approximately eternity
Date: Sun, 01 Sep 2024 08:45:50 +0200
Am Samstag, dem 31.08.2024 um 23:01 +0200 schrieb Tomas Volf:
> The emacs-yaml package is configured to build against emacs-minimal,
> which seems to work.  When you however switch to emacs package, it
> takes way to long to build, much longer than compiling for example
> firefox package.  That feels off.
> 
> --8<---------------cut here---------------start------------->8---
> $ time guix time-machine -q --
> commit=b8327cb31199fb9f4ebed6c53a59601d41def5a1 -- build --check --
> no-grafts -q --with-input=emacs-minimal=emacs-minimal emacs-yaml
> /gnu/store/8lqdd8yna92zqgsgip396a1wbyhr5pfn-emacs-yaml-0.5.5
> 12.573 secs
> $ time guix time-machine -q --
> commit=b8327cb31199fb9f4ebed6c53a59601d41def5a1 -- build --check --
> no-grafts -q --with-input=emacs-minimal=emacs emacs-yaml
> /gnu/store/ja9xfndhfafjczp6n7qfy1h21hvdpd5j-emacs-yaml-0.5.5
> 2869.878 secs
> --8<---------------cut here---------------end--------------->8---
> 
> The difference is huge.  The process taking vast majority of the time
> (in the emacs version) is this one:
> 
> --8<---------------cut here---------------start------------->8---
> 32393 guixbuil 47:10 {.emacs-29.4-rea}
> /gnu/store/y7yhpgi48klqpadrmfknl4bln9c4n05y-emacs-29.4/bin/emacs -no-
> comp-spawn -Q --batch -l /tmp/guix-build-emacs-yaml-0.5.5.drv-
> 0/emacs-int-comp-yaml-pbHFU3.el
> --8<---------------cut here---------------end--------------->8---
> 
> I do not know enough to even guess what could be the problem, but it
> was suggested I should bug-report this.
This issue has already been reported updstream [1], but not addressed
yet: What takes so long between emacs-minimal and plain emacs is the
fact that plain emacs does native compilation.  

emacs-build-system currently uses native compilation whenever that is
supported by the emacs used to build.  Perhaps we should allow for some
choice here – ideas welcome.

Cheers

[1] https://github.com/zkry/yaml.el/issues/53




Information forwarded to bug-guix <at> gnu.org:
bug#72921; Package guix. (Sat, 10 May 2025 23:22:02 GMT) Full text and rfc822 format available.

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

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: 72921 <at> debbugs.gnu.org
Subject: Building emacs-yaml with emacs takes approximately eternity
Date: Sat, 10 May 2025 23:21:45 +0000
Hi,

I have been putting off building emacs-forge with emacs-pgtk due to it
having emacs-yaml as a dependency.  I just checked the link to the
upstream issue [0] and it's now be fixed and released in v1.2.0!  Which
is in Guix.

I verified it by building emacs-forge (and emacs-yaml) and it built
within reasonable time.  So this issue can be closed.

[0] https://github.com/zkry/yaml.el/issues/53

-- 
s/Fred[re]+i[ck]+/Fredrik/g




Reply sent to Nicolas Graves <ngraves <at> ngraves.fr>:
You have taken responsibility. (Sun, 11 May 2025 09:40:02 GMT) Full text and rfc822 format available.

Notification sent to Tomas Volf <~@wolfsden.cz>:
bug acknowledged by developer. (Sun, 11 May 2025 09:40:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Fredrik Salomonsson <plattfot <at> posteo.net>, 72921-done <at> debbugs.gnu.org
Subject: Re: bug#72921: Building emacs-yaml with emacs takes approximately
 eternity
Date: Sun, 11 May 2025 11:39:35 +0200
Closing it then!

Notice the -done that does the job ;)

On 2025-05-10 23:21, Fredrik Salomonsson wrote:

> Hi,
>
> I have been putting off building emacs-forge with emacs-pgtk due to it
> having emacs-yaml as a dependency.  I just checked the link to the
> upstream issue [0] and it's now be fixed and released in v1.2.0!  Which
> is in Guix.
>
> I verified it by building emacs-forge (and emacs-yaml) and it built
> within reasonable time.  So this issue can be closed.
>
> [0] https://github.com/zkry/yaml.el/issues/53

-- 
Best regards,
Nicolas Graves




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

This bug report was last modified 25 days ago.

Previous Next


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