From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur) Date: Sun, 5 Sep 2021 22:22:59 +0900 Message-ID: <6266D349-AE54-452E-AFE4-AA9BA52BE291@traduction-libre.org> References: <4B9D846D-461B-4A97-8838-9F03D5BBC879@traduction-libre.org> <3DF825AA-2015-436F-A635-B5C4CBAA6BA0@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4545"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 05 15:24:31 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mMs8M-0000vp-Vu for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Sep 2021 15:24:30 +0200 Original-Received: from localhost ([::1]:43862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMs8L-0006Ve-Vd for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Sep 2021 09:24:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMs75-0005Mb-SH for emacs-devel@gnu.org; Sun, 05 Sep 2021 09:23:11 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:54321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMs73-0007s7-2l for emacs-devel@gnu.org; Sun, 05 Sep 2021 09:23:11 -0400 Original-Received: (Authenticated sender: lists@traduction-libre.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id B0788240005; Sun, 5 Sep 2021 13:23:03 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.178.230; envelope-from=lists@traduction-libre.org; helo=relay10.mail.gandi.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274015 Archived-At: > On Sep 5, 2021, at 22:07, Alan Third wrote: >=20 > On Sat, Aug 21, 2021 at 10:47:54AM +0100, Alan Third wrote: >> On Sat, Aug 21, 2021 at 01:43:17PM +0900, Jean-Christophe Helary = wrote: >>>=20 >>> Apologies. I guess I was under the influence of my second vaccine = shot... I forgot to use the --with-native-compilation when I = reconfigured after patching... >>>=20 >>> And the result, with the patch and the flag, is: >>>=20 >>> checking for gcc_jit_context_acquire in -lgccjit... no >>> configure: error: ELisp native compiler was requested, but libgccjit = was not found. >>> Please try installing libgccjit or a similar package. >>>=20 >>> :( >>=20 >> Can you send, I think, config.log? There should be an error message >> somewhere from the compiler that may give us a better idea of where >> it's going wrong. >=20 > I see this in your config.log: >=20 > configure:16825: checking for gcc_jit_context_acquire in -lgccjit > configure:16848: gcc -o conftest -g3 -O2 = -I/usr/local/Cellar/libffi/3.3_3/include = -I/usr/local/Cellar/librsvg/2.50.7/include/librsvg-2.0 = -I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 = -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 = -I/usr/local/Cellar/libtiff/4.3.0/include = -I/usr/local/Cellar/glib/2.68.3/include = -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo = -I/usr/local/Cellar/glib/2.68.3/include = -I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 = -I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include = -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include = -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 = -I/usr/local/Cellar/fontconfig/2.13.1/include = -I/usr/local/opt/freetype/include/freetype2 = -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 = -I/usr/local/Cellar/libxcb/1.14_1/include = -I/usr/local/Cellar/libxrender/0.9.10/include = -I/usr/local/Cellar/libxext/1.3.4/include = -I/usr/local/Cellar/libx11/1.7.2/include = -I/usr/local/Cellar/libxcb/1.14_1/include = -I/usr/local/Cellar/libxau/1.0.9/include = -I/usr/local/Cellar/libxdmcp/1.1.3/include = -I/usr/local/Cellar/xorgproto/2021.4/include = -I/usr/local/Cellar/libgccjit/11.2.0/include -I = -I/usr/local/opt/readline/include: -L/usr/local/opt/readline/lib: = -L/usr/local/Cellar/libgccjit/11.2.0/lib/gcc/11 -L conftest.c -lgccjit = >&5 > ld: warning: directory not found for option = '-L/usr/local/opt/readline/lib:' > ld: warning: -L path 'conftest.c' is not a directory > ld: warning: dylib = (/usr/local/Cellar/libgccjit/11.2.0/lib/gcc/11/libgccjit.so) was built = for newer macOS version (11.5) than being linked (11.0) > Undefined symbols for architecture x86_64: > "_main", referenced from: > implicit entry/start for main executable > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see = invocation) >=20 > It looks like there's a spare "-L" at end of the gcc flags... >=20 > I have a suspicion here. You have both Homebrew and MacPorts > installed. Configure is picking up that you have both of them and is > trying to set up libgcc for both... >=20 > Perhaps the attached patch will fix it. Alan, thank you for your help, and sorry, it looks like the new config = log is exactly the same as the other. I'm sending it to you offlist. JC --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/