railwaycat / homebrew-emacsmacport

Emacs mac port formulae for the Homebrew package manager
BSD 2-Clause "Simplified" License
1.68k stars 126 forks source link

Libgccjit failing to compile #378

Closed lebenna closed 5 months ago

lebenna commented 6 months ago

Exact same issue as #331

nepomucen-s commented 6 months ago

Looks like this is a problem with the homebrew upstream libgccjit formula. Check out this link. This helped me on the fresh Sonoma 14.4.1 installation.

ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.dylib /usr/local/lib/
ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.0.dylib /usr/local/lib/

ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.1.dylib /usr/local/lib/
adamliter commented 6 months ago

Seems to be an upstream issue in Homebrew because of the old Homebrew path for Intel-based CPUs.

tbdcit commented 6 months ago

Having the same problem and manually linking the libraries as suggested above has not worked for me.

stormwatch commented 6 months ago

Having the same problem and manually linking the libraries as suggested above has not worked for me.

It worked for me.

adamliter commented 6 months ago

This should be resolved as of https://github.com/Homebrew/homebrew-core/pull/171811. You should be able to do brew update && brew reinstall libgccjit to fix the problem.

tbdcit commented 5 months ago

The problem is now resolved for me after updating and reinstalling libgccjit.