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)

gnudatalanguage.log.2016-07-25_09.12.12 (339.5 KB) - added by majoc-at-astro (majoc-at-astro) 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by majoc-at-astro (majoc-at-astro)

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 Changed 8 years ago by tenomoto (Takeshi Enomoto)

Resolution: wontfix
Status: newclosed

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.

$ port info
gnudatalanguage @0.9.6 (math, science)
Variants:             clang33, clang34, clang35, clang36, clang37, clang38, clang39, debug, gcc44, gcc45, gcc46, gcc47, gcc48,
                      gcc49, gcc5, gcc6, gcc7, gshhs, llvm, mpich, mpich_devel, openmp, python25, python26, python27, universal,
                      wxWidgets

Portfile:

mpi.setup                   -openmpi -openmpi_devel -dragonegg

comment:3 in reply to:  2 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: closedreopened

comment:5 Changed 8 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.