Opened 2 years ago

Last modified 20 months ago

#64211 closed defect

emacs-app-devel 20211112 fail on Monterey - config of libgccjit fails — at Version 2

Reported by: bestlem Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: drkp (Dan Ports)
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.

Change History (4)

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
Note: See TracTickets for help on using tickets.