From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55741: Getting an error when running the Emacs 28.1 binary that I built from source Date: Tue, 31 May 2022 18:58:22 +0300 Message-ID: <83a6axiti9.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55741@debbugs.gnu.org To: cinnaroll45 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 31 17:59:15 2022 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 1nw4H4-000AVN-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 May 2022 17:59:15 +0200 Original-Received: from localhost ([::1]:53688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw4H3-00074Q-I2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 May 2022 11:59:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw4Gs-00074C-Rz for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 11:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw4Gs-0000uw-JX for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nw4Gs-00044L-GA for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 May 2022 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55741 X-GNU-PR-Package: emacs Original-Received: via spool by 55741-submit@debbugs.gnu.org id=B55741.165401271115588 (code B ref 55741); Tue, 31 May 2022 15:59:02 +0000 Original-Received: (at 55741) by debbugs.gnu.org; 31 May 2022 15:58:31 +0000 Original-Received: from localhost ([127.0.0.1]:48711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw4GL-00043L-PZ for submit@debbugs.gnu.org; Tue, 31 May 2022 11:58:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw4GG-000432-8F for 55741@debbugs.gnu.org; Tue, 31 May 2022 11:58:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw4GA-0000qO-Qc; Tue, 31 May 2022 11:58:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hTQpS5RRDb2yHpL/bxC46K5gsQz0WYaJtKfHdsFhV0g=; b=P6QTAfzR5Ob5 +vSgM6EnJ5u4J2b2BhGjSpCiOz0QLLAVr8vtt/98+bTNv7r/DSTDjFVFZvTFuEYWakBQW5lSVJcbF QLbQ7Yf0HhRPgOKU+J0wrdJhHujWZZKYnO3tuoJQob4J+0XZvsNJgjp2bn5Pjsew6sjcnRiw61sHW khHFjHMXCoi21qUoYKj1mXO7NsE470YRK8Hx/CmONDZEW46oInSbnIoB3FQ79b0CpYjFLrBKw1O9j rRHgAMmYk7dn3mNsjfGCqa8xZhMffMyHpFhVXdFeA6YI6u/uUS3sxreOBETcCstcrsIJPUJ180P5D 8JgWEnxCnjmsEOxz0Qw/sA==; Original-Received: from [87.69.77.57] (port=3307 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw4G9-00038B-FM; Tue, 31 May 2022 11:58:18 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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" Xref: news.gmane.io gmane.emacs.bugs:233442 Archived-At: > Date: Tue, 31 May 2022 13:01:06 +0000 > From: cinnaroll45 via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > When building Emacs 28.1 on the same system, I use the same config but with the addition of the > `--with-native-compilation` flag: > > ```bash > > ./autogen.sh > ./configure --prefix=/home/user/emacs --bindir=/home/user/bin \ > --with-native-compilation \ > --with-json --with-gif --with-jpeg --with-png --with-tiff --with-rsvg > > ``` > > The build goes without a hitch and the binaries end up in my PATH. However when I try to run the Emacs > binary, I get the following error: > > `Error using execdir /home/user/emacs/libexec/emacs/28.1/x86_64-pc-linux-gnu/../../../../bin/: > emacs: > /home/user/emacs/libexec/emacs/28.1/x86_64-pc-linux-gnu/../../../../bin/../native-lisp/28.1-2120ad00/preloaded/window-0d1b8b93-7ef4271a.eln: > cannot open shared object file: No such file or directory` The --bindir switch could be the problem: as you see from the error message, Emacs 28.1 thinks its binary is in /home/user/emacs/bin, not in /home/user/bin. So my suggestion is to reconfigure without the --bindir switch, as I don't think this is currently supported for the build with native-compilation.