From unknown Sun Jun 22 17:12:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13787 <13787@debbugs.gnu.org> To: bug#13787 <13787@debbugs.gnu.org> Subject: Status: 24.2; Call to package-install during byte compilation returns non-zero exit status Reply-To: bug#13787 <13787@debbugs.gnu.org> Date: Mon, 23 Jun 2025 00:12:01 +0000 retitle 13787 24.2; Call to package-install during byte compilation returns= non-zero exit status reassign 13787 emacs submitter 13787 Jon Dufresne severity 13787 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 22 12:12:58 2013 Received: (at submit) by debbugs.gnu.org; 22 Feb 2013 17:12:58 +0000 Received: from localhost ([127.0.0.1]:44558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8wB6-0001br-Ri for submit@debbugs.gnu.org; Fri, 22 Feb 2013 12:12:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37521) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8rSm-00023o-UA for submit@debbugs.gnu.org; Fri, 22 Feb 2013 07:10:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8rRP-00052d-BH for submit@debbugs.gnu.org; Fri, 22 Feb 2013 07:09:30 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_XBL,RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8rRP-00052U-7m for submit@debbugs.gnu.org; Fri, 22 Feb 2013 07:09:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8rRK-0001aM-Ut for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 07:09:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8rRI-00051D-59 for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 07:09:22 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5]:44757 helo=homiemail-a42.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8rRH-000510-Pj for bug-gnu-emacs@gnu.org; Fri, 22 Feb 2013 07:09:20 -0500 Received: from homiemail-a42.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTP id 3670468C05B for ; Fri, 22 Feb 2013 04:09:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jondufresne.org; h= message-id:subject:from:to:date:content-type:mime-version: content-transfer-encoding; s=jondufresne.org; bh=5DLaxluDhPrR644 lRlLQ9rHDDtg=; b=Qd4ntdyxkdtU84aQI38l5d2xiAFOGY4mOPGCiGgQyXt3RwH zbfPkcWwlS6G7srRmb2e4/wiEFXA73lH2EHxILza79DjqFnPXaRzsEMhFXRY46x4 dtc7uRygcboG3pheqj1FFsKwvm9sSH6DnEZSGeBKyazaf7UjOgHhjI0Ya5cE= Received: from [192.168.1.100] (S01060016b6e9eea4.vc.shawcable.net [24.84.213.158]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jon@jondufresne.org) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 0BA1168C058 for ; Fri, 22 Feb 2013 04:09:17 -0800 (PST) Message-ID: <1361534957.1773.0.camel@localhost> Subject: 24.2; Call to package-install during byte compilation returns non-zero exit status From: Jon Dufresne To: bug-gnu-emacs@gnu.org Date: Fri, 22 Feb 2013 04:09:17 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 (3.6.3-2.fc18) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 22 Feb 2013 12:12:55 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': STR: 0. Create a simple elisp file that installs an ELPA package (example below). 1. Compile the file from the command line using "emacs --batch". 2. Check the exit status of the command, notice it is non-zero (255). The simple elisp file used for testing has the contents: (eval-and-compile (require 'package) (package-initialize) (package-refresh-contents) (package-install 'org)) The file is compiled from the command line using the command: $ emacs --batch --eval '(byte-compile-file "test.el")'; echo $? After lots of compilation output, eventually you'll see the output: Selecting deleted buffer Wrote /home/jon/.emacs.d/ac-comphist.dat 255 Where 255 is the exit status. When this elisp file is compiled as part of a Makefile, this causes the build to fail, reducing automation. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.2/etc/DEBUG. In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.6.4) of 2013-02-02 on buildvm-04.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11302000 Configured using: `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' '--with-wide-int' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: global-auto-complete-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x M-x r e p o r Recent messages: Loading /usr/share/emacs/site-lisp/site-start.d/auto-complete-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/emacs-goodies-loaddefs.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/gnus-bonus-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 22 14:00:22 2013 Received: (at 13787) by debbugs.gnu.org; 22 Feb 2013 19:00:22 +0000 Received: from localhost ([127.0.0.1]:44656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8xr3-00063e-Fr for submit@debbugs.gnu.org; Fri, 22 Feb 2013 14:00:22 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:47326) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U8xr1-00063V-3H for 13787@debbugs.gnu.org; Fri, 22 Feb 2013 14:00:19 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U8xpe-0006fI-Ro; Fri, 22 Feb 2013 13:58:54 -0500 From: Glenn Morris To: Jon Dufresne Subject: Re: bug#13787: 24.2; Call to package-install during byte compilation returns non-zero exit status References: <1361534957.1773.0.camel@localhost> X-Spook: infowar INS anarchy Croatian Venezuela e-cash Uzbekistan X-Ran: 9$\#awMM.gFh)sZ_s.miXyE(vm|?>4=lVa,s.i6&`LKe~blNKh[;L=vo88(MvDa)#cNI%\ X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 22 Feb 2013 13:58:54 -0500 In-Reply-To: <1361534957.1773.0.camel@localhost> (Jon Dufresne's message of "Fri, 22 Feb 2013 04:09:17 -0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 13787 Cc: 13787@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.6 (-------) Jon Dufresne wrote: > (eval-and-compile > (require 'package) > (package-initialize) > (package-refresh-contents) > (package-install 'org)) Why eval-and-compile? Anyway, I think the issue can be summarized as: cat /tmp/foo.el: (eval-and-compile (byte-compile-file "/tmp/bar.el")) cat /tmp/bar.el: (message "hi") emacs -Q -batch -f batch-byte-compile foo.el Wrote /tmp/bar.elc >>Error occurred processing foo.el: error (("Selecting deleted buffer")) Recursive byte-compilation trips over itself trying to use a single " *Compiler Input*" buffer. (package-install byte-compiles what it installs.) From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 22 20:33:54 2013 Received: (at 13787) by debbugs.gnu.org; 23 Feb 2013 01:33:54 +0000 Received: from localhost ([127.0.0.1]:44969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U93zt-000869-PK for submit@debbugs.gnu.org; Fri, 22 Feb 2013 20:33:54 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5]:37240 helo=homiemail-a79.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U93zq-00085z-IT for 13787@debbugs.gnu.org; Fri, 22 Feb 2013 20:33:52 -0500 Received: from homiemail-a79.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTP id 82F097D406E; Fri, 22 Feb 2013 17:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jondufresne.org; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s= jondufresne.org; bh=hxo2DS81AmFxEEet0aNvx5MfOcU=; b=Z0slNGnbgOkX UcUZNlUIRVpIjJhWW4ATF9DFTJFAe4pICf06ua/VeCw690hsKFAcnmcd23I6MTTQ LfoKG8jmenCiWvS4HhVElDP55tz/9vy+yDwX/xkl+DPRv+fQPIwMMSGwc0T8V6s6 1/f3VyEBePIhqyZqMOlq36efBBkPltw= Received: from [192.168.1.100] (S01060016b6e9eea4.vc.shawcable.net [24.84.213.158]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jon@jondufresne.org) by homiemail-a79.g.dreamhost.com (Postfix) with ESMTPSA id 478607D4059; Fri, 22 Feb 2013 17:32:05 -0800 (PST) Message-ID: <1361583143.1767.5.camel@localhost> Subject: Re: bug#13787: 24.2; Call to package-install during byte compilation returns non-zero exit status From: Jon Dufresne To: Glenn Morris Date: Fri, 22 Feb 2013 17:32:23 -0800 In-Reply-To: References: <1361534957.1773.0.camel@localhost> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 (3.6.3-2.fc18) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13787 Cc: 13787@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.0 (/) On Fri, 2013-02-22 at 13:58 -0500, Glenn Morris wrote: > Why eval-and-compile? I have one init.el that I share across many installations of Emacs. There are several third party packages in repositories that I rely on. When I pass the init.el to a new Emacs installation, I build it using a Makefile. My goal is to byte compile the init.el file and install all required third party packages. I want to avoid passing around the init.el file *and* the third party packages. I prefer to rely on the repository for an up to date version of the package. This way I avoid tracking all packages individually. I figured build time was the best time to download, compile and install these packages. This is why I use eval-and-compile. I am probably not the first person to consider doing this. And so my approach may be off. If there is a more direct or better approach to handle this please let me know. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 23 16:16:14 2013 Received: (at 13787-done) by debbugs.gnu.org; 23 Feb 2013 21:16:14 +0000 Received: from localhost ([127.0.0.1]:46128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9MS6-00038i-Et for submit@debbugs.gnu.org; Sat, 23 Feb 2013 16:16:14 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:49265) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9MS4-00038b-OK for 13787-done@debbugs.gnu.org; Sat, 23 Feb 2013 16:16:13 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U9MQb-00059c-QK; Sat, 23 Feb 2013 16:14:41 -0500 From: Glenn Morris To: 13787-done@debbugs.gnu.org Subject: Re: bug#13787: 24.2; Call to package-install during byte compilation returns non-zero exit status References: <1361534957.1773.0.camel@localhost> <1361583143.1767.5.camel@localhost> X-Spook: CISU hackers Sundevil Craig Livingstone Peking Ermes X-Ran: jsY9b*PgwkI{qCaTV8O/nBk&;(lA{\|+Zcs<+#hZxgeGm@5?mytDtvNb4/T\Y/H^PvnFbC X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 23 Feb 2013 16:14:41 -0500 In-Reply-To: <1361583143.1767.5.camel@localhost> (Jon Dufresne's message of "Fri, 22 Feb 2013 17:32:23 -0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 13787-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.6 (-------) Version: 24.4 Jon Dufresne wrote: > I have one init.el that I share across many installations of Emacs. > There are several third party packages in repositories that I rely on. > When I pass the init.el to a new Emacs installation, I build it using a > Makefile. My goal is to byte compile the init.el file and install all > required third party packages. I still don't see the need for the eval-and-compile. Why not compile it (leaving aside the fact that compiling ~/.emacs is a waste of time IMO), then load it? Anyway, I installed a fix. From unknown Sun Jun 22 17:12:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Mar 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator