[MacPorts] #61012: graphene @1.10.2 +universal: meson.build:1:0: ERROR: Compiler ccache cc can not compile programs.

MacPorts noreply at macports.org
Tue Aug 18 00:40:55 UTC 2020


#61012: graphene @1.10.2 +universal: meson.build:1:0: ERROR: Compiler ccache cc can
not compile programs.
------------------------+-----------------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.99
 Keywords:              |       Port:  graphene, meson
------------------------+-----------------------------
 graphene fails to build for me on macOS 10.13.6:

 {{{
 The Meson build system
 Version: 0.55.1
 Source dir: /opt/local/var/macports/build
 /_Users_rschmidt_macports_macports-ports-ryandesign-
 fork_graphics_graphene/graphene/work/graphene-1.10.2-x86_64
 Build dir: /opt/local/var/macports/build
 /_Users_rschmidt_macports_macports-ports-ryandesign-
 fork_graphics_graphene/graphene/work/build-x86_64
 Build type: cross build
 WARNING: Unknown options: "benchmarks"
 The value of new options can be set with:
 meson setup <builddir> --reconfigure -Dnew_option=new_value ...
 Project name: graphene
 Project version: 1.10.2
 meson.build:1:0: ERROR: Compiler ccache cc can not compile programs.
 A full log can be found at /opt/local/var/macports/build
 /_Users_rschmidt_macports_macports-ports-ryandesign-
 fork_graphics_graphene/graphene/work/build-x86_64/meson-logs/meson-log.txt
 }}}

 meson-log.txt says:

 {{{
 Sanity check compile stderr:
 ccache: error: Failed to create temporary file for
 /opt/local/var/macports/build/.ccache/9/stats.tmp: Operation not permitted
 }}}

 I am using the universal variant. I don't see the problem when I don't use
 the universal variant.

 I do have the ccache port installed but I do not have `configureccache
 yes` set in macports.conf. meson seems to be finding ccache on its own and
 deciding it should use it. It shouldn't do that; it should let MacPorts
 decide whether to use ccache. I don't know whether this is a general meson
 problem or is specific to how graphene is using it.

 meson was recently modified to use "cross" files when building universal
 using the muniversal portgroup, which graphene does. Maybe that has
 something to do with it.

 I am able to avoid the problem either by setting `configureccache yes` in
 macports.conf or by building graphene with the `-t` flag (since that hides
 ccache and other files not provided by graphene's dependencies).
 Deactivating ccache should also have allowed it to build.

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


More information about the macports-tickets mailing list