From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73318: 31.0.50; with-native-compilation=aot breaks exec -a emacs Date: Tue, 17 Sep 2024 11:40:23 -0400 Message-ID: References: Reply-To: Spencer Baugh Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33588"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Lars Ingebrigtsen , Andrea Corallo To: 73318@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 17 17:41:02 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqaK5-0008Vj-AC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 17:41:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqaJv-0008Po-GH; Tue, 17 Sep 2024 11:40:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqaJs-0008G0-0N for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:40:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqaJr-0000qq-J4 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:40:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Qx27WKf/XQYx94YPkNBi2fNJ/IJ6TbdjjzxY/DqFq0s=; b=G3l+dQKOqGG1xYSzzJ8q4gmEFHOIKeod6YEP5wI+zZLU7Hv0DSXofirNb6r+GHfeCcS5PkWUREYtvGVQ9sOO4uA4vj/prQHLk+nyeosceKvDvjO/qSMhGkpz9NuMhKoEDv5ihzNCnip0pkaI6alu/ABRUakUMx25eVNBp6a8+GeR550vh5nkAF3croyNCoV/PPCmF1psBiVT4bFKcPR8SOdHp7BvhjGXzhbosqoIrDUYto1FP9fYAzTcr9qr0q2nQ4Fyv86vymdlvdU8u5JxsQknxfM1/4n2zuX9YLW0TkQvf974ZC8P0eAGEyFZJbpBIJ6u2s5JJxHfAC/M2ZWWEQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqaK6-00041p-1q for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Sep 2024 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73318 X-GNU-PR-Package: emacs Original-Received: via spool by 73318-submit@debbugs.gnu.org id=B73318.172658764615453 (code B ref 73318); Tue, 17 Sep 2024 15:41:02 +0000 Original-Received: (at 73318) by debbugs.gnu.org; 17 Sep 2024 15:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:55766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqaJq-00041B-7N for submit@debbugs.gnu.org; Tue, 17 Sep 2024 11:40:46 -0400 Original-Received: from mxout6.mail.janestreet.com ([64.215.233.21]:44865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqaJo-00040v-KD for 73318@debbugs.gnu.org; Tue, 17 Sep 2024 11:40:45 -0400 In-Reply-To: (Spencer Baugh's message of "Tue, 17 Sep 2024 11:18:41 -0400") DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1726587623; bh=Qx27WKf/XQYx94YPkNBi2fNJ/IJ6TbdjjzxY/DqFq0s=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=TKATyhB2TFZW+nRcP+tTxoImJQFuenoaN5Gk/z0Kn1pZNPih+GYTNsgA/MFonk8aV hMaOyr5Uuhq0Zy3yZWfa/QcvuzgPBZQb/PgzAEWNSgACVVvSV3agAQ5Keiaf4AwrpQ p9xI10FoQzhjLDsYi7JxiiH26+mWtV9jUvBHsLV410KgjE9/5X92OrxIlVZXXFP709 ZG1t7xrOtrBb00wB5mkjIIwYZiPu68m72eUseBW6ABq5CzNCwzeQwpYM9giiMs/Hxm bPlV1JDX2/uGZiSP0jSy8cT7HZf35f1lXk6rdnudSvShj71xpJsbETqkGCKvurQ11q FoAI27tBt9G1w== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291949 Archived-At: Spencer Baugh writes: > 1. Compile and install Emacs with --with-native-compilation=aot, e.g.: > prefix=~/prefix > mkdir $prefix > ./configure --with-native-compilation=aot --prefix=$prefix > make -j64 && make install > 2. Run emacs with "exec -a" to change its argv[0]: > sh -c "exec -a emacs $prefix/bin/emacs -Q --batch" > 3. Observe an error like: > Error using execdir /usr/local/home/sbaugh/workspaces/24833141-bffb-3c99-a9d6-c366d37c4f5e/+share+/app/emacs/bin/: > emacs: /usr/local/home/sbaugh/workspaces/24833141-bffb-3c99-a9d6-c366d37c4f5e/+share+/app/emacs/bin/../native-lisp/31.0.50-a88a37f5/preloaded/minibuffer-b2d9c221-284ab177.eln: cannot open shared object file: No such file or directory > > "exec -a emacs" works fine for with-native-compilation=yes or > with-native-compilation=no. Actually this also breaks with with-native-compilation=yes It seems sensitive to cached compilation or configure results; I can only get a reliable failure if I make clean in between attempts.