[MacPorts] #51600: hdf4: h4cc contains directive to use ccache
#51600: hdf4: h4cc contains directive to use ccache --------------------------+----------------------- Reporter: ryandesign@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Keywords: | Port: hdf4 --------------------------+----------------------- I use ccache on my system. (I set `configure_ccache yes` in macports.conf.) As a consequence of this, /opt/local/bin/h4cc contains references to ccache: {{{ CCBASE="ccache /usr/bin/clang" CLINKERBASE="ccache /usr/bin/clang" }}} This causes ports (such as hdfeos) that want to use hdf4 to fail to build with an error message: {{{ configure: error: C compiler cannot create executables }}} and in config.log: {{{ ccache: error: Failed to create temporary file for /opt/local/var/macports/build/.ccache/3/stats.tmp: Operation not permitted }}} hdf4 should not bake directives to use ccache into its files, nor, ideally, should it bake a reference to a specific compiler. Instead, ports should respect the values of `configure.compiler` and `configure.ccache`. Related: #30258. -- Ticket URL: <https://trac.macports.org/ticket/51600> MacPorts <https://www.macports.org/> Ports system for OS X
#51600: hdf4, hdf5, hdf5-18: h4cc, h5cc, h5c++, h5cc-18, h5c++-18 contain directives to use ccache ----------------------------------+----------------------- Reporter: ryandesign@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: hdf4, hdf5, hdf5-18 | ----------------------------------+----------------------- Changes (by ryandesign@…): * port: hdf4 => hdf4, hdf5, hdf5-18 Comment: Same issue applies to hdf5 and hdf5-18. -- Ticket URL: <https://trac.macports.org/ticket/51600#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#51600: hdf4, hdf5, hdf5-18: h4cc, h5cc, h5c++, h5cc-18, h5c++-18 contain directives to use ccache ----------------------------------+----------------------- Reporter: ryandesign@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: hdf4, hdf5, hdf5-18 | ----------------------------------+----------------------- Comment (by takeshi@…): Thank you for pointing this. I didn't know ccache and have just found out what it is. h4cc is provided by the upstream so I'd rather leave it. While I understand I should respect {{{configure.compiler}}}, but h4cc script is used to make the same compiler consistently. A quick fix would be to set {{{configure.ccache no}}} as in #30258, but I'll see what I can do for improvement. -- Ticket URL: <https://trac.macports.org/ticket/51600#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#51600: hdf4, hdf5, hdf5-18: h4cc, h5cc, h5c++, h5cc-18, h5c++-18 contain directives to use ccache ----------------------------------+----------------------- Reporter: ryandesign@… | Owner: takeshi@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: hdf4, hdf5, hdf5-18 | ----------------------------------+----------------------- Comment (by takeshi@…): With ccache {{{CC}}} is set {{{ccache ${configiure.cc}}}}. I couldn't figure out which environmental variable contains the path to C compiler without {{{ccache}}}. So I simply remove the string {{{ccache }}} in {{{h4cc}}} or in {{{h5cc}}}. Stopped using {{{h4cc}}} in {{{hdfeos}}}. Left {{{hdfeos5}}} as it is because of MPI variants. Done in r149527. -- Ticket URL: <https://trac.macports.org/ticket/51600#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#51600: hdf4, hdf5, hdf5-18: h4cc, h5cc, h5c++, h5cc-18, h5c++-18 contain directives to use ccache ----------------------------------+----------------------- Reporter: ryandesign@… | Owner: takeshi@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: hdf4, hdf5, hdf5-18 | ----------------------------------+----------------------- Changes (by takeshi@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/51600#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts