Opened 13 years ago

Closed 13 years ago

#30258 closed defect (fixed)

hdfeos: build failure with ccache

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: hdfeos

Description

hdfeos fails to build if configureccache yes is in macports.conf:

checking for /opt/local/include/szlib.h... yes
checking szlib.h usability... yes
checking szlib.h presence... yes
checking for szlib.h... yes
checking for SZ_BufftoBuffCompress in -lsz... yes
checking for gawk... (cached) gawk
checking for h4cc... ccache
cat: ccache: No such file or directory
checking for szlib encoder... shared szlib doesn't work. disabling szip.
checking hdf.h usability... yes
checking hdf.h presence... yes
checking for hdf.h... yes
checking mfhdf.h usability... yes
checking mfhdf.h presence... yes
checking for mfhdf.h... yes
checking for main in -ldf... yes
checking for main in -lmfhdf... yes
checking for hdf4 szip decoding filter... yes
checking for hdf4 szip encoding filter... no
configure: error: SZIP specified in --with-szlib is not functional
shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_hdfeos/work/hdfeos" && ./configure --prefix=/opt/local --with-hdf4=/opt/local --with-zlib=/opt/local --with-szlib=/opt/local --disable-dependency-tracking " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
DEBUG: Backtrace: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for hdfeos): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for hdfeos is at: /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_science_hdfeos/main.log

The attached patch works around the problem by disabling ccache for hdfeos. A better solution might be to fix hdfeos so it works with ccache (if indeed ccache works with h4cc).

Attachments (1)

hdfeos-ccache.diff (479 bytes) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
proposed patch

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: hdfeos-ccache.diff added

proposed patch

comment:1 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Committed in r80921.

comment:2 Changed 13 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.