MacPorts
2018-08-27 22:51:03 UTC
#57045: gdal-2.3.1_0+hdf5+netcdf+postgresql95 fails to build
------------------------+------------------------
Reporter: EJFielding | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: | Port: gdal, hdf5
------------------------+------------------------
I recently updated several ports to be +openmpi, which triggered
rebuilding of gdal among other ports. The rebuild failed because it is not
finding the "mpi.h" header reference in the hdf5.h (hdf5 was installed
with +openmpi). Here is the part of the log file that I assume is relevant
(full log attached).
{{{
...
:info:build /bin/sh
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/libtool
--mode=compile --silent --tag=CXX /usr/bin/clang++ -std=c++14
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/gcore
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/alg
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/ogr
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/ogr/ogrsf_frmts
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/gnm
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/apps
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME
-DHAVE_SSE_AT_COMPILE_TIME -pipe -DGDAL_COMPILATION -stdlib=libc++ -arch
x86_64 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror
=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow
-Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-
conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-
private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-
dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough
-DGNM_ENABLED
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/port
-DGDAL_COMPILATION -I/opt/local/include -c -o ../o/gifdataset.lo
gifdataset.cpp
:info:build In file included from hdf5dataset.cpp:42:
:info:build In file included from /opt/local/include/hdf5.h:22:
:info:build /opt/local/include/H5public.h:60:13: fatal error: 'mpi.h' file
not found
:info:build # include <mpi.h>
:info:build ^~~~~~~
:info:build 1 error generated.
...
}}}
I have selected one of the openmpi port versions.
{{{
none
openmpi-gcc7-fortran
openmpi-mp-fortran (active)
}}}
------------------------+------------------------
Reporter: EJFielding | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.3
Keywords: | Port: gdal, hdf5
------------------------+------------------------
I recently updated several ports to be +openmpi, which triggered
rebuilding of gdal among other ports. The rebuild failed because it is not
finding the "mpi.h" header reference in the hdf5.h (hdf5 was installed
with +openmpi). Here is the part of the log file that I assume is relevant
(full log attached).
{{{
...
:info:build /bin/sh
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/libtool
--mode=compile --silent --tag=CXX /usr/bin/clang++ -std=c++14
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/port
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/gcore
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/alg
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/ogr
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/ogr/ogrsf_frmts
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/gnm
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/apps
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME
-DHAVE_SSE_AT_COMPILE_TIME -pipe -DGDAL_COMPILATION -stdlib=libc++ -arch
x86_64 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror
=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow
-Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-
conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-
private-field -Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-
dtor -Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough
-DGNM_ENABLED
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.3.1/gdal/port
-DGDAL_COMPILATION -I/opt/local/include -c -o ../o/gifdataset.lo
gifdataset.cpp
:info:build In file included from hdf5dataset.cpp:42:
:info:build In file included from /opt/local/include/hdf5.h:22:
:info:build /opt/local/include/H5public.h:60:13: fatal error: 'mpi.h' file
not found
:info:build # include <mpi.h>
:info:build ^~~~~~~
:info:build 1 error generated.
...
}}}
I have selected one of the openmpi port versions.
{{{
port select mpi
Available versions for mpi:none
openmpi-gcc7-fortran
openmpi-mp-fortran (active)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57045>
MacPorts <https://www.macports.org/>
Ports system for macOS
Ticket URL: <https://trac.macports.org/ticket/57045>
MacPorts <https://www.macports.org/>
Ports system for macOS