GNU bug report logs -
#57029
macos cannot build emacs after updated gcc and libgccjit to 12.1
Previous Next
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]
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.