Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#29464 closed defect (fixed)

hdf5-18 +gcc45 has an undeclared dependency on openmpi

Reported by: jdswinbank (John Swinbank) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: mamoll (Mark Moll)
Port: hdf5-18

Description

Attempting to install hdf5-18 @1.8.7 +gcc45 produces:

$ sudo port install -d hdf5=18 +gcc45
[...]
checking for Fortran libraries of /opt/local/bin/gfortran-mp-4.5...  -L/opt/local/lib -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3 -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3/../../.. -lmpi_f90 -lmpi_f77 -lmpi -lgfortran
checking for dummy main to link with Fortran libraries... unknown
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_hdf5-18/work/hdf5-1.8.7':
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_hdf5-18/work/hdf5-1.8.7" && ./configure --prefix=/opt/local --with-zlib=yes --with-szlib=yes --enable-filters=all --enable-production --enable-cxx --enable-shared --enable-static --disable-parallel --enable-fortran LDFLAGS="-L/opt/local/lib" " 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)
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for hdf5-18): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for hdf5-18 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_hdf5-18/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Checking /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_hdf5-18/work/hdf5-1.8.7/config.log, I have:

configure:5960: /usr/bin/gcc-4.2 -o conftest  -pipe -O2 -arch x86_64  -I/opt/local/include  -L/opt/local/lib conftest.c   -L/opt/local/lib -L/opt/local/lib/gcc45/gcc/x86_64-apple-darwin10/4.5.3 -L/opt/local/lib/gcc45/gcc/x86_64-apple-d
ld: library not found for -lmpi_f90
collect2: ld returned 1 exit status

libmpi_f90.dylib is provided by openmpi; sure enough, installing that package fixes the hdf5-18 build.

Change History (2)

comment:1 Changed 10 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed

Fixed in r78622.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Port: hdf5-18 added
Note: See TracTickets for help on using tickets.