From: Alan Third <alan@idiocy.org>
To: Jean-Christophe Helary <lists@traduction-libre.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur)
Date: Tue, 17 Aug 2021 20:45:55 +0100 [thread overview]
Message-ID: <YRwR83HkiIkd059r@breton.holly.idiocy.org> (raw)
In-Reply-To: <4B9D846D-461B-4A97-8838-9F03D5BBC879@traduction-libre.org>
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
On Tue, Aug 17, 2021 at 09:59:48AM +0900, Jean-Christophe Helary wrote:
>
>
> > On Aug 17, 2021, at 2:18, Alan Third <alan@idiocy.org> 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
[-- Attachment #2: 0001-configure.ac-Make-homebrew-check-for-libgccjit-match.patch --]
[-- Type: text/plain, Size: 1427 bytes --]
From 1fa158104807fae13040536b0b079d802082268d Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
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
next prev parent reply other threads:[~2021-08-17 19:45 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-15 6:10 ./configure --with-native-compilation on macos (11.5.2 Big Sur) Jean-Christophe Helary
2021-08-16 17:18 ` Alan Third
2021-08-17 0:59 ` Jean-Christophe Helary
2021-08-17 1:02 ` Jean-Christophe Helary
2021-08-17 19:45 ` Alan Third [this message]
2021-08-20 6:29 ` Jean-Christophe Helary
2021-08-21 4:43 ` Jean-Christophe Helary
2021-08-21 9:47 ` Alan Third
2021-09-05 13:07 ` Alan Third
2021-09-05 13:22 ` Jean-Christophe Helary
2021-09-06 3:24 ` Alan Third
2021-09-06 3:46 ` Jean-Christophe Helary
2021-09-06 6:27 ` Jean-Christophe Helary
2021-09-06 6:43 ` Jean-Christophe Helary
2021-09-06 7:10 ` Jean-Christophe Helary
2021-09-06 7:34 ` Stefan Kangas
2021-09-06 7:38 ` Jean-Christophe Helary
2021-09-06 7:52 ` Stefan Kangas
2021-09-06 10:33 ` Eli Zaretskii
2021-09-06 12:12 ` Jean-Christophe Helary
2021-09-06 12:34 ` Eli Zaretskii
2021-09-06 9:45 ` Jean-Christophe Helary
2021-09-06 20:01 ` Alan Third
2021-09-06 23:50 ` Jean-Christophe Helary
2021-09-13 22:55 ` Jean-Christophe Helary
2021-09-08 7:34 ` Lars Ingebrigtsen
2021-09-08 15:31 ` Alan Third
2021-09-08 20:59 ` Alan Third
2021-09-08 21:15 ` Alan Third
2021-09-08 23:44 ` Jean-Christophe Helary
2021-09-09 21:07 ` Alan Third
2021-09-10 0:35 ` Jean-Christophe Helary
2021-09-10 20:53 ` Alan Third
2021-09-11 5:54 ` Eli Zaretskii
2021-09-11 0:30 ` Jean-Christophe Helary
2021-09-11 16:17 ` Alan Third
2021-09-12 8:47 ` Jean-Christophe Helary
2021-09-12 11:59 ` Alan Third
2021-09-13 12:06 ` Jean-Christophe Helary
2021-09-13 18:19 ` Alan Third
2021-09-13 18:42 ` Alan Third
2021-09-13 22:04 ` Jean-Christophe Helary
2021-09-13 22:08 ` Alan Third
2021-09-13 22:24 ` Jean-Christophe Helary
2021-09-13 22:56 ` Jean-Christophe Helary
2021-09-14 15:22 ` Alan Third
2021-09-14 17:10 ` Jean-Christophe Helary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YRwR83HkiIkd059r@breton.holly.idiocy.org \
--to=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=lists@traduction-libre.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.