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:18:41 -0400 Message-ID: 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="24072"; mail-complaints-to="usenet@ciao.gmane.io" 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:20:09 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 1sqZzs-00062A-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Sep 2024 17:20:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqZzZ-0006ML-IP; Tue, 17 Sep 2024 11:19:49 -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 1sqZzX-0006MC-K5 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:19:47 -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 1sqZzX-0006he-9h for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:19: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:From:To:Subject; bh=rwMXxT4IVZdudcLQd8ZKcK6u6o07MvMzt//70Iz6DIk=; b=okPFba1I2SuKeVX0TfK89m6DqYbjPdHXdxE2Fv+8CxdSypExvPbg26DyDG37APeq+wgXquIjR36IELtP6wcAoMuHmHIOh+N+D+pr9oKtSA1bLmq6fyumnRRRPUSQdp1wWoQWdKTk0dq67Ul+6vYLRqJtaVGpiaAMuP/7fxN8J1EEi5J3AF0/Axqre1bR8ad6FS+sI+EwfIZZaKsNzJlYsooFU//obBcDpaWwJOmJOTv+hiITO/kDmxejYyy/QVe4OnBPjKHeQZ/x8vtxSH3Lp0xTqmZL7jBzebA5jLrd7Yer8vDlj9mwgn9VMpRh0ywo1FBNuXE9ldhCk/GdB+fBJg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqZzl-0002iV-SZ for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:20:01 -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:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73318 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172658634510366 (code B ref -1); Tue, 17 Sep 2024 15:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Sep 2024 15:19:05 +0000 Original-Received: from localhost ([127.0.0.1]:55730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqZyq-0002h8-H2 for submit@debbugs.gnu.org; Tue, 17 Sep 2024 11:19:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqZyo-0002gz-Kr for submit@debbugs.gnu.org; Tue, 17 Sep 2024 11:19:03 -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 1sqZyW-0006Jg-N7 for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:18:45 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqZyV-0006bB-5r for bug-gnu-emacs@gnu.org; Tue, 17 Sep 2024 11:18:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1726586321; bh=rwMXxT4IVZdudcLQd8ZKcK6u6o07MvMzt//70Iz6DIk=; h=From:To:Cc:Subject:Date; b=FVP+dtFcuFNpdOwwuYb5f/pSny5PLgHW38OiCQ5g3Lu/fpxoyEXOLjpU7XmXB47VR 7WvejyuZEsak4kvdnyrrpOP8McIYEaYsiFS7yQO/yTRnDmPTC9Nntei38wetUmO2M6 PlgmIP9CW6LL8qsumEIIrJlsOEBpFwpHlHiPLxwbLDCFdUziMGtv1pstbsSPzhUKYa GIOq4+K3fJ1UzHYChHK9btpSWBw4OacKrc2l+QftvI+cozdsEtQB/kivP0qCnD1xKk M9bSRMgbzetEKIE4XxtxQI8o0XVcAqMHYgZxli5jcdGUx2vbT3Cao96ulfJj/c2Onr QZv5J0meNdVXw== Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:291948 Archived-At: 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.