Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
retitle 410492 vm: Byte-compilation very slow under Emacs 22 reassign 410492 vm tags 410492 patch quit Hi, When compiling under emacs-snapshot, VM triggers a bug in the byte-compiler which makes the compilation process run very slow. Unfortunately it looks like upstream is not going to fix it before the 22.1 release because it affects very few packages (so far only VM and Mozart), so we'll have to live with it. Please apply the following patch to VM, it disables the print-circle feature of the compiler, and allows the compilation to proceed as before (although the handling of recursive structures might then be incorrect, as it was in Emacs 21): --- vm-7.19.orig/vm-byteopts.el +++ vm-7.19/vm-byteopts.el @@ -16,6 +16,7 @@ ;; different v19 Emacses. (setq byte-compile-dynamic nil) (setq byte-compile-dynamic-docstrings nil) +(setq byte-compile-disable-print-circle t) ;; avoid v20 features because users are going ;; to try to share elc files no matter what we tell them. (setq byte-compile-emacs19-compatibility t) Alternatively, you could just disable vm's support for emacs-snapshot and emacs22. Thanks, -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
Hi, Kevin Glynn [EMAIL PROTECTED] writes: This also affects the mozart package ( but we don't have a convenient byteopts.el hack yet :-( ). Since you haven't yet closed this bug I wanted to ask whether this new behaviour is going to remain (and I should work round it in mozart). Looks like it, I prodded emacs-devel after this bug was filed, but nobody seems interested in fixing the problem... http://article.gmane.org/gmane.emacs.devel/66257 Cheers, -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
With the latest emacs-snapshot, it looks like the process goes into an infinite loop. No, it's not an infinite loop; the compilation just takes a very, very long time. This is because the byte-compiler in Emacs 22 now tries to print recursive structures using special reader constructs, and there is a noticeable complexity effect when compiling very large files... This patch fixes the problem, it simply disables this feature. --- vm-7.19.orig/vm-byteopts.el +++ vm-7.19/vm-byteopts.el @@ -16,6 +16,7 @@ ;; different v19 Emacses. (setq byte-compile-dynamic nil) (setq byte-compile-dynamic-docstrings nil) +(setq byte-compile-disable-print-circle t) ;; avoid v20 features because users are going ;; to try to share elc files no matter what we tell them. (setq byte-compile-emacs19-compatibility t) Hi Romain, This also affects the mozart package ( but we don't have a convenient byteopts.el hack yet :-( ). Since you haven't yet closed this bug I wanted to ask whether this new behaviour is going to remain (and I should work round it in mozart). thanks for your help, Kevin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
Tim Cross [EMAIL PROTECTED] writes: I'd like to also take this opportunity to thank you very much for the really great stuff you have done re: emacs-snapshot. [...] I'm glad you like it. :-) I'm an emacspeak user, which is a very large and reasonably complex emacs package. I've not tried building it with the latest emacs-snapshot yet. It will be interesting to see what happens. It's known not to work in some cases with emacs-snapshot, I filed a bug about this a while ago, see http://bugs.debian.org/405872... Cheers, -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
Hi Tim, Tim Cross [EMAIL PROTECTED] writes: With the latest emacs-snapshot, it looks like the process goes into an infinite loop. No, it's not an infinite loop; the compilation just takes a very, very long time. This is because the byte-compiler in Emacs 22 now tries to print recursive structures using special reader constructs, and there is a noticeable complexity effect when compiling very large files... This patch fixes the problem, it simply disables this feature. --- vm-7.19.orig/vm-byteopts.el +++ vm-7.19/vm-byteopts.el @@ -16,6 +16,7 @@ ;; different v19 Emacses. (setq byte-compile-dynamic nil) (setq byte-compile-dynamic-docstrings nil) +(setq byte-compile-disable-print-circle t) ;; avoid v20 features because users are going ;; to try to share elc files no matter what we tell them. (setq byte-compile-emacs19-compatibility t) Thanks, -- ,''`. : :' :Romain Francoise [EMAIL PROTECTED] `. `' http://people.debian.org/~rfrancoise/ `- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
Hi Romain, Wow, thats an amazing response time! Thanks very much. those new byte compilation features must really really slow down the compilation. I left things running in excess of 90 minutes on a dual core 3.2GHz system with plenty of RAM and nothing else loading the system. I did think that maybe it was a change in byte code compilation slowing things down, but thought 90 minutes just for VM should be sufficient even in the slowest of compilation environments. I'd like to also take this opportunity to thank you very much for the really great stuff you have done re: emacs-snapshot. The releases are so reliable and frequent I've totally given up direct CVS builds. I've been using the emacs-snapshot for ages now and problems have been extremely rare (and I'm someone who lives in emacs daily, both at work and at home). I for one very much appreciate the work you have been doing. I'm an emacspeak user, which is a very large and reasonably complex emacs package. I've not tried building it with the latest emacs-snapshot yet. It will be interesting to see what happens. The patch you have provided will give me the direction to see about patching things if its too slow. Very useful. thanks, Tim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#410492: emacs-snapshot: Fails during compilation of add-on packages
Package: emacs-snapshot Version: 1:20070208-1 Severity: normal With the latest emacs-snapshot, it looks like the process goes into an infinite loop. Eventually, installation has to be interrupted manually. Looking at the /tmp/emacs-snapshot.* file indicates the build process was compiling VM (vm-19-11). There are no obvious errors in the log file. Removing VM allowed the emacs-snapshot upgrade to complete successfully. Attempted to reinstall VM after emacs-snapshot was installed, but again, the build process appears to go into an infinite loop and had to be manually interrupted. No obvious error messages shown. Output from aptitude shown below. If I get time, I will try building VM manually and see if that gives any clue to the problem. If it does, I will add it to this report. regards, Tim Setting up vm (7.19-11) ... install/vm: Ignoring emacsen flavor emacs. install/vm: Byte-compiling for emacs-snapshot...emacs-package-install: /usr/lib/emacsen-common/packages/install/vm emacs-snapshot emacs-snapshot emacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, TSORT line 1. dpkg: error processing vm (--configure): subprocess post-installation script returned error exit status 255 Errors were encountered while processing: vm E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up vm (7.19-11) ... install/vm: Ignoring emacsen flavor emacs. install/vm: Byte-compiling for emacs-snapshot...emacs-package-install: /usr/lib/emacsen-common/packages/install/vm emacs-snapshot emacs-snapshot emacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, TSORT line 1. dpkg: error processing vm (--configure): subprocess post-installation script returned error exit status 255 Errors were encountered while processing: vm Press return to continue. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Versions of packages emacs-snapshot depends on: ii emacs-snapshot-bin-common 1:20070208-1 The GNU Emacs editor's shared, arc ii libasound21.0.13-1 ALSA library ii libc6 2.3.6.ds1-10 GNU C Library: Shared libraries ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library ii libjpeg62 6b-13 The Independent JPEG Group's JPEG ii libncurses5 5.5-5 Shared libraries for terminal hand ii libpng12-01.2.15~beta5-1 PNG library - runtime ii libsm61:1.0.1-3 X11 Session Management library ii libtiff4 3.8.2-7Tag Image File Format (TIFF) libra ii libungif4g4.1.4-4shared library for GIF images ii libx11-6 2:1.0.3-5 X11 client-side library ii libxmu6 1:1.0.2-2 X11 miscellaneous utility library ii libxpm4 1:3.5.5-2 X11 pixmap library ii libxt61:1.0.2-2 X11 toolkit intrinsics library ii xaw3dg1.5+E-14 Xaw3d widget set emacs-snapshot recommends no packages. Versions of packages emacs-snapshot-common depends on: ii dpkg 1.13.25package maintenance system for Deb ii emacsen-common1.4.17 Common facilities for all emacsen Versions of packages emacs-snapshot-bin-common depends on: ii emacs-snapshot-common 1:20070208-1 The GNU Emacs editor's common infr ii libc6 2.3.6.ds1-10 GNU C Library: Shared libraries ii liblockfile11.06.1 NFS-safe locking library, includes Versions of packages emacsen-common depends on: ii bsdmainutils 6.1.6 collection of more utilities from Versions of packages emacs-snapshot is related to: ii dictionaries-common 0.70.10Common utilities for spelling dict -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]