GNU bug report logs - #56738
Cannot find libgccjit.dylib on macOS

Previous Next

Package: emacs;

Reported by: Kevin Morio <kevin <at> morio.me>

Date: Sun, 24 Jul 2022 12:34:02 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56738 in the body.
You can then email your comments to 56738 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#56738; Package emacs. (Sun, 24 Jul 2022 12:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Morio <kevin <at> morio.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 Jul 2022 12:34:02 GMT) Full text and rfc822 format available.

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

From: Kevin Morio <kevin <at> morio.me>
To: bug-gnu-emacs <at> gnu.org
Subject: Cannot find libgccjit.dylib on macOS
Date: Sun, 24 Jul 2022 12:15:17 +0200
Dear Emacs maintainers,

Emacs 28.1.90 (282dde887db163b25b31fba3bf10a80f2b93203c) fails to build on
macOS 12.4 when configured with the following invocation:

./configure —with-native-compilation
...
usage: dirname string [...]
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.
If you are sure you want Emacs be compiled without ELisp native compiler,
pass the --without-native-compilation option to configure.

This is the same bug as bug#55173 which has been reported for
  Emacs 29.0.50 (a41a181db5f3aca043ed42b228dc56a6403c21a5)
and fixed in commit
  faa29fa2c9e9d5a5d7544a1a39b2a89cf57a8439
with the following patch

diff --git a/configure.ac b/configure.ac
index 741a1a31df..03eb9783a9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3844,7 +3844,7 @@ AC_DEFUN
           MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \
                                                 grep libgccjit.h))"
           MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \
-                                            grep libgccjit.so\$))"
+                                            grep -E 'libgccjit\.(so|dylib)$'))"
         fi
       fi

Thanks,
Kevin Morio





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#56738; Package emacs. (Sun, 24 Jul 2022 12:52:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kevin Morio <kevin <at> morio.me>
Cc: 56738 <at> debbugs.gnu.org
Subject: Re: bug#56738: Cannot find libgccjit.dylib on macOS
Date: Sun, 24 Jul 2022 15:51:36 +0300
> From: Kevin Morio <kevin <at> morio.me>
> Date: Sun, 24 Jul 2022 12:15:17 +0200
> 
> Dear Emacs maintainers,
> 
> Emacs 28.1.90 (282dde887db163b25b31fba3bf10a80f2b93203c) fails to build on
> macOS 12.4 when configured with the following invocation:
> 
> ./configure —with-native-compilation
> ...
> usage: dirname string [...]
> 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.
> If you are sure you want Emacs be compiled without ELisp native compiler,
> pass the --without-native-compilation option to configure.
> 
> This is the same bug as bug#55173 which has been reported for
>   Emacs 29.0.50 (a41a181db5f3aca043ed42b228dc56a6403c21a5)
> and fixed in commit
>   faa29fa2c9e9d5a5d7544a1a39b2a89cf57a8439
> with the following patch

Thanks, I've now cherry-picked that change to the emacs-28 branch, and
it will be part of the upcoming Emacs 28.2.




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 26 Jul 2022 13:26:02 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Thu, 04 Aug 2022 14:15:04 GMT) Full text and rfc822 format available.

Notification sent to Kevin Morio <kevin <at> morio.me>:
bug acknowledged by developer. (Thu, 04 Aug 2022 14:15:04 GMT) Full text and rfc822 format available.

Message #15 received at 56738-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Kevin Morio <kevin <at> morio.me>, 56738-done <at> debbugs.gnu.org
Subject: Re: bug#56738: Cannot find libgccjit.dylib on macOS
Date: Thu, 4 Aug 2022 14:14:07 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Kevin Morio <kevin <at> morio.me>
>> Date: Sun, 24 Jul 2022 12:15:17 +0200
>>
>> Dear Emacs maintainers,
>>
>> Emacs 28.1.90 (282dde887db163b25b31fba3bf10a80f2b93203c) fails to build on
>> macOS 12.4 when configured with the following invocation:
>>
>> ./configure —with-native-compilation
>> ...
>> usage: dirname string [...]
>> 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.
>> If you are sure you want Emacs be compiled without ELisp native compiler,
>> pass the --without-native-compilation option to configure.
>>
>> This is the same bug as bug#55173 which has been reported for
>>   Emacs 29.0.50 (a41a181db5f3aca043ed42b228dc56a6403c21a5)
>> and fixed in commit
>>   faa29fa2c9e9d5a5d7544a1a39b2a89cf57a8439
>> with the following patch
>
> Thanks, I've now cherry-picked that change to the emacs-28 branch, and
> it will be part of the upcoming Emacs 28.2.

No further comments within a week, so I'm closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Sep 2022 11:24:08 GMT) Full text and rfc822 format available.

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

Previous Next


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