#68499 closed defect (fixed)

[Resolved] h5fortran fails to configure on Sonoma: HDF5 C types failed check

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: Dave-Allured (Dave Allured)
Port: h5fortran

Description (last modified by barracuda156)

See: https://github.com/geospace-code/h5fortran/issues/46

-- Performing Test HDF5_C_links
-- Performing Test HDF5_C_links - Success
-- Performing Test HDF5_Fortran_links
-- Performing Test HDF5_Fortran_links - Success
-- Found HDF5: /opt/local/lib/libhdf5_hl.dylib;/opt/local/lib/libhdf5.dylib (found version "1.14.2") found components: Fortran 
-- Performing Test hdf5_c_types
-- Performing Test hdf5_c_types - Failed
CMake Error at cmake/CheckHDF5.cmake:42 (message):
  HDF5 C types failed check
Call Stack (most recent call first):
  cmake/CheckHDF5.cmake:96 (check_hdf5_c)
  CMakeLists.txt:49 (check_hdf5)


-- Configuring incomplete, errors occurred!

Attachments (1)

CMakeConfigureLog.txt (85.9 KB) - added by barracuda156 13 months ago.
CMake log

Download all attachments as: .zip

Change History (11)

comment:1 Changed 13 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

What do the CMake log files say about why "HDF5 C types failed check"?

Changed 13 months ago by barracuda156

Attachment: CMakeConfigureLog.txt added

CMake log

comment:3 Changed 11 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:4 Changed 11 months ago by Dave-Allured (Dave Allured)

CMakeConfigureLog.txt​:

    ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libhdf5_fortran.310.dylib'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

May be fixed by https://github.com/macports/macports-ports/pull/21946. Waiting for Sonoma builder to come back on line.

Meanwhile you can try rebuilding your hdf5 from source on Sonoma and Xcode 15 linker, and see if that clears out the duplicate LC_RPATH.

comment:5 Changed 11 months ago by Dave-Allured (Dave Allured)

https://github.com/macports/macports-ports/pull/21946 did not fix the duplicate LC_RPATH's.

Now testing a compilers PG fix in https://github.com/macports/macports-ports/pull/21962.

comment:6 Changed 11 months ago by Dave-Allured (Dave Allured)

@barracuda156, it looks like ​https://github.com/macports/macports-ports/pull/21962 fixed the duplicate LC_RPATH's in HDF5 fortran libraries. Would you please update your hdf5 port on Sonoma, then retry h5fortran?

comment:7 in reply to:  6 Changed 11 months ago by barracuda156

Replying to Dave-Allured:

@barracuda156, it looks like ​https://github.com/macports/macports-ports/pull/21962 fixed the duplicate LC_RPATH's in HDF5 fortran libraries. Would you please update your hdf5 port on Sonoma, then retry h5fortran?

Thanks, will try now.

comment:8 Changed 11 months ago by barracuda156

Yes, it works now, this ticket can be closed.

comment:9 Changed 11 months ago by barracuda156

Summary: h5fortran fails to configure on Sonoma: HDF5 C types failed check[Resolved] h5fortran fails to configure on Sonoma: HDF5 C types failed check

comment:10 Changed 10 months ago by jmroot (Joshua Root)

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