GNU bug report logs -
#57015
29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0
Previous Next
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
View this message in rfc822 format
Dario Gjorgjevski <dario.gjorgjevski <at> gmail.com> writes:
> 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`.
>
Great. That makes sense to me. I think 'brew ruby' way is clearly
preferable over my attempt.
Regards,
Naofumi
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.