GNU bug report logs - #57015
29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0

Previous Next

Package: emacs;

Reported by: Naofumi Yasufuku <naofumi <at> yasufuku.dev>

Date: Sat, 6 Aug 2022 11:40:01 UTC

Severity: normal

Tags: patch

Merged with 57023, 57028, 57029

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #77 received at 57015 <at> debbugs.gnu.org (full text, mbox):

From: Dario Gjorgjevski <dario.gjorgjevski <at> gmail.com>
To: Naofumi Yasufuku <naofumi <at> yasufuku.dev>
Cc: 57015 <at> debbugs.gnu.org
Subject: Re: bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew
 libgccjit 12.1.0
Date: Tue, 09 Aug 2022 17:33:31 +0200
Naofumi Yasufuku <naofumi <at> yasufuku.dev> writes:

> './configure --with-native-compilation' fails if Homebrew libgccjit is
> updated to 12.1.0.  Attached configure.ac patch fixes this issue.
> I think the same patch should be applied to emacs-28 branch.

As an alternative to your patch and the general approach based on
running `grep` over the output of `brew ls`, one can also use

    % brew ruby -e 'puts "#{:libgccjit.f.lib}/gcc/#{:gcc.f.any_installed_version.major}"'
    /usr/local/opt/libgccjit/lib/gcc/12

for MAC_LIBS, and

    % brew ruby -e 'puts :libgccjit.f.include'
    /usr/local/opt/libgccjit/include

for MAC_CFLAGS.  This will work with both versions 11 and 12 of
Homebrew's `libgccjit`.

Best regards,
Dario




This bug report was last modified 2 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.