Opened 2 years ago

Closed 18 months ago

#64211 closed defect (fixed)

emacs-app-devel 20211112 fail on Monterey - config of libgccjit fails

Reported by: bestlem Owned by: bestlem
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: drkp (Dan Ports), cooljeanius (Eric Gallager)
Port: emacs-app-devel

Description (last modified by bestlem)

After installing gcc-devel as per #63994

Looking more carefully the error is firs

:info:configure configure: error: The installed libgccjit failed to compile and run a test program using
:info:configure the libgccjit library; see config.log for the details of the failure.

The config log has

configure:17247: /usr/bin/clang -o conftest -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16    -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64 conftest.c -lgccjit   >&5
ld: warning: -no_pie ignored for arm64
configure:17247: $? = 0
configure:17247: ./conftest
dyld[26347]: Library not loaded: @rpath/libgccjit.0.dylib
  Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_emacs/emacs-app-devel/work/emacs-20211112/conftest
  Reason: tried: '/usr/local/lib/libgccjit.0.dylib' (no such file), '/usr/lib/libgccjit.0.dylib' (no such file)

So the latest change to Portfile to set up the paths for gcc libs does not seem to be working

I got the attached error (this was the second build with same error so log is incomplete)

--->  Staging emacs-app-devel into destroot
Error: Failed to destroot emacs-app-devel: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_emacs/emacs-app-devel/main.log for details.

Attachments (2)

main.log (1.8 MB) - added by bestlem 2 years ago.
Log file for second build
config.log (235.4 KB) - added by bestlem 2 years ago.

Change History (9)

Changed 2 years ago by bestlem

Attachment: main.log added

Log file for second build

comment:1 Changed 2 years ago by bestlem

Summary: emacs-app-devel fail on Monterey - temacs fails to runemacs-app-devel 20211112 fail on Monterey - temacs fails to run

comment:2 Changed 2 years ago by bestlem

Description: modified (diff)
Summary: emacs-app-devel 20211112 fail on Monterey - temacs fails to runemacs-app-devel 20211112 fail on Monterey - config of libgccjit fails

Changed 2 years ago by bestlem

Attachment: config.log added

comment:3 Changed 2 years ago by bestlem

Owner: set to bestlem
Status: newassigned

This now works

comment:4 in reply to:  3 Changed 19 months ago by cooljeanius (Eric Gallager)

Replying to bestlem:

This now works

Really? It still fails for me...

comment:5 Changed 19 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 Changed 19 months ago by bestlem

It has worked on all versions since then. I am now on emacs-app-devel @20220907. I would create a new ticket with full logs

comment:7 Changed 18 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

Closing as per comment:3.

Note: See TracTickets for help on using tickets.