Opened 19 months ago

Last modified 7 months ago

#65889 assigned defect

emacs @28.2 configuration error: libgccjit failed to compile and run a test program

Reported by: amannucci (Anthony Mannucci) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: emacs

Description (last modified by jmroot (Joshua Root))

I tried two x11 versions of emacs, and both fail at the configuration stage. This occurred due to an OS upgrade and complete upgrading of Macports. However, after the upgrade I noticed that emacs was missing. It does install as a terminal app, but not as an x11 app. See attached files for log information.

Here is the error message:

Error: Failed to configure emacs: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_emacs/emacs/work/emacs-28.2/config.log
Error: Failed to configure emacs: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_emacs/emacs/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port emacs failed

Attachments (2)

main.log (249.3 KB) - added by amannucci (Anthony Mannucci) 19 months ago.
config.log (258.1 KB) - added by amannucci (Anthony Mannucci) 19 months ago.

Download all attachments as: .zip

Change History (6)

Changed 19 months ago by amannucci (Anthony Mannucci)

Attachment: main.log added

Changed 19 months ago by amannucci (Anthony Mannucci)

Attachment: config.log added

comment:1 Changed 19 months ago by amannucci (Anthony Mannucci)

Description: modified (diff)

comment:2 Changed 19 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to drkp
Port: emacs added
Status: newassigned
Summary: emacs with x11 suffers from configuration errorsemacs @28.2 configuration error: libgccjit failed to compile and run a test program

comment:3 Changed 19 months ago by amannucci (Anthony Mannucci)

I might add the following bit of information. I successfully built the non-X11 version of emacs from source (not something I typically do, but it worked). The MacOS version was created, not the X version. When I tried to build the X version using --with-x- etc. as an option for the configure script, I saw this error in the config.log file:

PATH: /opt/X11/bin
conftest.c:72:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
| #include <X11/Xlib.h>
configure:10862: /usr/bin/gcc -o conftest -g3 -O2     conftest.c -lX11  >&5 
conftest.c:72:10: fatal error: 'X11/Xlib.h' file not found

Xlib.h is here: /opt/X11/include/X11/Xlib.h

but configure cannot seem to find it. This might be related to not being able to build the X11 version.

comment:4 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.