[MacPorts] #74393: openjdk25 @25.0.4.1 Build fails with ccache configured

MacPorts noreply at macports.org
Wed Sep 2 04:18:53 UTC 2026


#74393: openjdk25 @25.0.4.1 Build fails with ccache configured
-----------------------+-----------------------
 Reporter:  McDaMastR  |      Owner:  breun
     Type:  defect     |     Status:  assigned
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.12.6
 Keywords:             |       Port:  openjdk25
-----------------------+-----------------------
 The openjdk25 @25.0.4.1 port fails to build when `port` is configured to
 use ccache.  That is, when I include the following line in my
 `${prefix}/etc/macports/macports.conf` file,

 {{{
 configureccache yes
 }}}

 I am unable to install openjdk25 due to build errors relating to ccache.

 {{{
 % sudo port install openjdk25
 --->  Upgrading already installed dependencies of openjdk25
 [...]
 --->  Building openjdk25
 Error: Failed to build openjdk25: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk25/openjdk25/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port openjdk25 failed
 }}}

 I'll attach the `main.log` file, but here's a part I think is relevant.

 {{{
 :info:build === Output from failing command(s) repeated here ===
 :info:build * For target hotspot_variant-
 server_libjvm_objs_abstractCompiler.o:
 :info:build ccache: error: Operation not permitted
 :info:build * For target hotspot_variant-
 server_libjvm_objs_abstractDisassembler.o:
 :info:build ccache: error: Operation not permitted
 :info:build * For target hotspot_variant-
 server_libjvm_objs_abstractInterpreter.o:
 :info:build ccache: error: Operation not permitted
 :info:build * For target hotspot_variant-
 server_libjvm_objs_abstractInterpreter_aarch64.o:
 :info:build ccache: error: Operation not permitted
 :info:build * All command lines available in
 /opt/local/var/macports/build/openjdk25-58188c40/work/jdk25u-
 jdk-25.0.4.1+1/build/release/make-support/failure-logs.
 :info:build === End of repeated output ===
 }}}

 I'm on macOS Tahoe 26.6.2 arm64 with Xcode 26.6.

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


More information about the macports-tickets mailing list