GNU bug report logs - #57029
macos cannot build emacs after updated gcc and libgccjit to 12.1

Previous Next

Package: emacs;

Reported by: ccqpein <ccqpein <at> protonmail.com>

Date: Sun, 7 Aug 2022 05:59:02 UTC

Severity: normal

Tags: patch

Merged with 57015, 57023, 57028

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 #8 received at 57029 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: ccqpein <ccqpein <at> protonmail.com>
Cc: 57029 <at> debbugs.gnu.org
Subject: Re: bug#57029: macos cannot build emacs after updated gcc and
 libgccjit to 12.1
Date: Sun, 07 Aug 2022 09:50:11 +0300
merge 57029 57015
thanks

> Date: Sun, 07 Aug 2022 03:29:47 +0000
> From:  ccqpein via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> I just update the gcc and the libgccjit through `brew` tonight and find building the emacs from source has
> issue. 
> 
> after `./autogen.sh`, I ran the `./configure --with-native-compilation` (for simplifying) and got the error
> message that 
> 
> ```
> 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.
> ```
> 
> I add `echo $MAC_CFLAGS` and `echo $MAC_LIBS` after line 4269 in `configure.ac` and I figure out it gives
> me the right including path of libgccjit 12. 
> 
> ```
> -I/usr/local/Cellar/libgccjit/12.1.0/include
> -L/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12
> ```
> 
> my environment:
> 
> macOS 12.5
> intel CPU

Thanks, this is a duplicate of bug#57015.




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

Previous Next


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