[MacPorts] #29464: hdf5-18 +gcc45 has an undeclared dependency on openmpi

MacPorts noreply at macports.org
Sat May 14 11:24:13 PDT 2011


#29464: hdf5-18 +gcc45 has an undeclared dependency on openmpi
---------------------------------------+------------------------------------
 Reporter:  swinbank@…                 |       Owner:  macports-tickets@…                   
     Type:  defect                     |      Status:  new                                  
 Priority:  Normal                     |   Milestone:                                       
Component:  ports                      |     Version:  1.9.2                                
 Keywords:                             |        Port:                                       
---------------------------------------+------------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/29464>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list