[MacPorts] #74057: emacs-app fails to find gcc driver

MacPorts noreply at macports.org
Sun May 31 12:18:46 UTC 2026


#74057: emacs-app fails to find gcc driver
------------------------+--------------------
 Reporter:  examachine  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:
------------------------+--------------------
 emacs-app has trouble finding the gcc driver!

 ⛔ Warning (native-compiler): libgccjit.so: error: error invoking gcc
 driver

 ⛔ Warning (native-compiler):
 /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/emacs-lisp/cl-
 seq.el.gz: Error Internal native compiler error: "failed to compile",
 "/Users/malfunct/.emacs.d/eln-cache/30_2-bd9d77f9/cl-seq-
 f464c4e2-fe43febc.eln", "error invoking gcc driver"

 I had to write this to get rid of warnings

 % emacs --version
 GNU Emacs 30.2
 Copyright (C) 2025 Free Software Foundation, Inc.
 GNU Emacs comes with ABSOLUTELY NO WARRANTY.
 You may redistribute copies of GNU Emacs
 under the terms of the GNU General Public License.
 For more information about these matters, see the file named COPYING.

 % cat ~/.emacs.d/early-init.el
 ;; Provide MacPorts GCC paths to libgccjit for native compilation
 (let ((macports-lib
 "/opt/local/lib/libgcc:/opt/local/lib/gcc15:/opt/local/lib/gcc15/gcc/aarch64
 -apple-darwin25/15.2.0"))
   (setenv "LIBRARY_PATH"
           (if (getenv "LIBRARY_PATH")
               (concat macports-lib ":" (getenv "LIBRARY_PATH"))
             macports-lib)))

-- 
Ticket URL: <https://trac.macports.org/ticket/74057>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list