From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur) Date: Tue, 17 Aug 2021 20:45:55 +0100 Message-ID: References: <4B9D846D-461B-4A97-8838-9F03D5BBC879@traduction-libre.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="xiJuBe8M6+jJX0zd" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 19 12:38:29 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 1mGfRM-000ARI-N9 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 12:38:29 +0200 Original-Received: from localhost ([::1]:56720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGfRK-0004in-SK for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 06:38:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGfQg-0003K8-Mz for emacs-devel@gnu.org; Thu, 19 Aug 2021 06:37:47 -0400 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:65::8:228]:58989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGfQc-0005Yr-Sb for emacs-devel@gnu.org; Thu, 19 Aug 2021 06:37:46 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id AD12B8BB; Thu, 19 Aug 2021 10:37:28 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1629369448; bh=nZ4Qa2fcqdyWdnaijwqZHR0Q19+Fu9XSpoHJrM8pebQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VfffsCJNOli3Kx2BpDdNOxg5upwpyjLKRkOO+/1fijROgSAKUSeSdFEalNuu/YOUY 5HFvBczMrvQEFWb7c9dx4hQighgpXj7PfL3khq2h+mtuXQoLvAQ4Kzl0mZhYsFWHLj t89SlGiKQaSRZve/1sLTkEy59DJnz1eL2gEdmczwltL4moDhgHUXog+0q5k8OhmTcF oXn/Xdef2G+6DKIQg1lVuqjR3OhIsKKIfOiqtzGENHqUauqyvTu1KlVfCvWozOsOYt zNyAKHzfEigyKo1Hu6Fo8qf7XXnLM8rIEs9Dvuv4RIeIc943M8ZfXBH2hcCo8cPRV+ jHOVYaij2ZCrw== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 27) id 45D91202D569D5; Thu, 19 Aug 2021 12:35:20 +0100 (BST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id E6A0D202D55835; Tue, 17 Aug 2021 20:45:55 +0100 (BST) Mail-Followup-To: Alan Third , Jean-Christophe Helary , Emacs Devel Content-Disposition: inline In-Reply-To: <4B9D846D-461B-4A97-8838-9F03D5BBC879@traduction-libre.org> Received-SPF: pass client-ip=2a01:4f8:fff0:65::8:228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:272659 Archived-At: --xiJuBe8M6+jJX0zd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Aug 17, 2021 at 09:59:48AM +0900, Jean-Christophe Helary wrote: > > > > On Aug 17, 2021, at 2:18, Alan Third wrote: > > > > On Sun, Aug 15, 2021 at 03:10:13PM +0900, Jean-Christophe Helary wrote: > >> On a recently checked out master branch I keep bumping into this error message: > >> > >> 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. > >> > >> even though I have installed, reinstalled and reinstalled from source said libgccjit (with brew). > >> > >> I guess there is something trivial I need to do to fix that, but I can't figure it out. > > > > Can you please run: > > > > find `brew --prefix --installed libgccjit 2>/dev/null`/ -name \*.so > > > > and let us know what the result is? > > Et voilą: > > /usr/local/opt/libgccjit//lib/gcc/11/libgccjit.so Unfortunately that's what I was expecting... Can you try the attached patch and see if it makes any difference? -- Alan Third --xiJuBe8M6+jJX0zd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-configure.ac-Make-homebrew-check-for-libgccjit-match.patch" >From 1fa158104807fae13040536b0b079d802082268d Mon Sep 17 00:00:00 2001 From: Alan Third Date: Tue, 17 Aug 2021 20:38:55 +0100 Subject: [PATCH] * configure.ac: Make homebrew check for libgccjit match macports. --- configure.ac | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index eff5591543..76f608ffb0 100644 --- a/configure.ac +++ b/configure.ac @@ -3822,12 +3822,13 @@ AC_DEFUN # Ensure libgccjit installed by Homebrew can be found. if test -n "$BREW"; then - BREW_LIBGCCJIT_PREFIX=`$BREW --prefix --installed libgccjit 2>/dev/null` - if test "$BREW_LIBGCCJIT_PREFIX"; then - brew_libdir=`find ${BREW_LIBGCCJIT_PREFIX}/ -name \*.so \ - | sed -e '1!d;s|/[[^/]]*\.so$||'` - CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_PREFIX}/include" - LDFLAGS="$LDFLAGS -L${brew_libdir} -I${BREW_LIBGCCJIT_PREFIX}/include" + if test -n "`$BREW --prefix --installed libgccjit 2>/dev/null`"; then + BREW_LIBGCCJIT_INCLUDE=$(dirname $($BREW ls -v libgccjit | \ + grep libgccjit.h)) + BREW_LIBGCCJIT_LIB=$(dirname $($BREW ls -v libgccjit| \ + grep libgccjit.so\$)) + CFLAGS="$CFLAGS -I${BREW_LIBGCCJIT_INCLUDE}" + LDFLAGS="$LDFLAGS -L${BREW_LIBGCCJIT_LIB}" fi fi -- 2.32.0 --xiJuBe8M6+jJX0zd--