jimeh / build-emacs-for-macos

Somewhat hacky script to automate building of Emac.app on macOS.
484 stars 50 forks source link

libgccjit error when running ./build-emacs-for-macos #103

Open rhstanton opened 6 months ago

rhstanton commented 6 months ago

Thanks for putting this package together. Unfortunately, when I run it I get an error related to libgccjit. Specifically:

stanton@richardstanton.org build-emacs-for-macos $ ./build-emacs-for-macos --native-full-aot
==> INFO: Fetching info for git ref: master
==> INFO: Downloading tarball from GitHub. This could take a while, please be patient.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 47.9M    0 47.9M    0     0  6647k      0 --:--:--  0:00:07 --:--:-- 7062k
==> INFO: Extracting tarball...

[...]

checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.
ERROR: Exit code: 1

In all fairness, I get the same error when I try to install Emacs manually using my own scripts (which worked until a month or two ago), which is why I was trying out this package in the first place, so it seems like something nasty has changed about Homebrew's libgccjit fairly recently that screws up the Emacs configuration process. Has anyone worked out a solution to this?

Thanks!

Richard Stanton

ccqpein commented 6 months ago

I met the same error days ago. I reinstall the GCC and libgccjit and it worked.

brew reinstall gcc libgccjit

rhstanton commented 6 months ago

Odd. This doesn't work for me.

ccQpein @.***> writes:

I met the same error days ago. I reinstall the GCC and libgccjit and it worked.

brew reinstall gcc libgccjit

- Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.*Message ID: @.***>