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

MacPorts noreply at macports.org
Wed Sep 2 12:48:21 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
Resolution:             |   Keywords:
      Port:  openjdk25  |
------------------------+----------------------

Comment (by breun):

 I don't know much about ccache, and `ccache: error: Operation not
 permitted` also doesn't tell me much, so I'm afraid I don't know what
 could be done to build `openjdk25` from source using ccache.

 OpenJDK can't handle ccache via a wrapper, so the `openjdk25` port
 contains this section to support ccache, which has been copied over from
 previous `openjdk*` ports (it's also in the `openjdk11` Portfile):

 {{{
 if {[option configure.ccache]} {
     # replace MacPorts ccache integration into JDK
     configure.ccache        no
     depends_build-append    path:bin/ccache:ccache
     configure.args-append   --enable-ccache \
                             --with-ccache-dir=${ccache_dir}
 }
 }}}

 As a workaround I could disable ccache support for `openjdk25` completely
 by setting `configure.ccache no` unconditionally. Would that be ok for
 you, or do you have any other ideas on how this could work with ccache
 enabled?

 By the way, MacPorts has a prebuilt binary package for `openjdk25` for
 macOS 26, so I assume you have configured MacPorts to build from source?

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


More information about the macports-tickets mailing list