Opened 8 years ago
Closed 8 years ago
#51902 closed defect (fixed)
gnudatalanguage @0.9.6 build error
Reported by: | majoc-at-astro (majoc-at-astro) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | hdf5 openmpi | Cc: | |
Port: | gnudatalanguage |
Description
Port hdf5 @1.10.0_1+cxx+fortran+gcc5+hl+openmpi present and active, but build fails with:
/opt/local/include/H5public.h:61:13: fatal error: 'mpi.h' file not found
Please see enclosed build log for 10.11 (10.10 has an exactly similar build error).
This appears to be a different problem from Trac #51865, for which thanks. I've seen failures of the above form with other ports in our build set, for which the usual fix is to add +openmpi, or in one instance +openmp; but attempting to install gnudatalanguage with +openmp yields conflicts between other packages and gcc44.
Thanks in advance. Do please let me know if you require more information. Apologies for terseness and typos: shredded-fingers error.
Attachments (1)
Change History (6)
Changed 8 years ago by majoc-at-astro (majoc-at-astro)
Attachment: | gnudatalanguage.log.2016-07-25_09.12.12 added |
---|
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | takeshi@… removed |
---|---|
Owner: | changed from macports-tickets@… to takeshi@… |
Port: | gnudatalanguage added; gudatalanguage removed |
comment:2 follow-up: 3 Changed 8 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 Changed 8 years ago by majoc-at-astro (majoc-at-astro)
Replying to takeshi@…:
openmpi
is disabled because it is not supported. I tried but I still have build errors. You should be able to install gdl without MPI or with MPICH.
I tried and failed with MPICH: there's some incompatibility with our OpenMPI-oriented build set which I frankly didn't understand. We found a workaround which keeps faith with the remainder of our setup:
port select --set mpi openmpi-gcc5-fortran
.... (immediately after port install openmpi-gcc5 +fortran
in the build sequence) causes the correct mpi.h
to be found by the GDL build, which then succeeds.
Hope this helps. Apologies for not replying earlier.
comment:4 Changed 8 years ago by tenomoto (Takeshi Enomoto)
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
comment:5 Changed 8 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Your workaround probably does not enable the compiliation of gdl-0.9.6/src/mpi.cpp
although it resolve the the problem with mpi.h
. Motivated by your feedback, I investigated the build process and source. MPI_C_COMPILER
and MPI_CXX_COMPILER
rather than MPI_COMPILER
have to be set. With a little patch, I was able to compile gdl-0.9.6/src/mpi.cpp
with OpenMPI. Done in r150944.
openmpi
is disabled because it is not supported. I tried but I still have build errors. You should be able to install gdl without MPI or with MPICH.Portfile: