Opened 12 years ago

Closed 12 years ago

#36203 closed defect (fixed)

hdf5-18: Variant openmpi conflicts with gcc45

Reported by: massonseb Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: eborisch (Eric A. Borisch)
Port: hdf5-18

Description

I have hdf5-18 installed with the variants gcc45 and openmpi:

bash-3.2$ port installed hdf5-18
The following ports are currently installed:
  hdf5-18 @1.8.9_0+gcc45+openmpi (active)

since version 1.8.9.1, hdf5-18 the compatibility with previous version is lost and it doesn't accept anymore gcc45+openmpi variants. I cannot upgrade this package and the related packages.

Error: hdf5-18: Variant openmpi conflicts with gcc45

However, I need gcc45+openmpi for netcdf and wgrib2 that depends on hdf5-18.
How should I proceed?

Change History (10)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to mmoll@…
Port: hdf5-18 added

Install hdf5-18 without the +gcc45 variant. This change was intentional.

comment:2 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:3 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… removed

Cc Me!

comment:4 Changed 12 years ago by eborisch (Eric A. Borisch)

If you were using mpich2, I would say use 'port install mpich2 +gcc45' and then 'port install hdf5-18 +mpich2'; hdf5-18 now uses the selected mpi's wrappers, which, at least in mpich2's case, means that gcc45's CC, CXX, and fortran compilers will be used for compiling hdf5-18.

The openmpi port currently uses only the fortran compiler from the requested +gccNN variant. If you would like that behavior to change, please file a separate ticket. For these scientific packages, in my opinion, if the user is requesting a particular +gccNN variant, they are probably expecting/desiring that compiler's CC,CXX, and F90 to be used for everything (not just fortran), but that's just my point of view...

Installing 'openmpi +gcc45' and then 'hdf5-18 +openmpi' will likely still work, but I haven't tried it myself.

comment:5 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:6 in reply to:  1 Changed 12 years ago by massonseb

Replying to ryandesign@…:

Install hdf5-18 without the +gcc45 variant. This change was intentional.

yes but i need netcdf+gcc45+openmpi and netcdf uses hdf5-18 and automatically compiles it with gcc45+openmpi. idem for wgrib2

comment:7 in reply to:  4 ; Changed 12 years ago by massonseb

Replying to eborisch@…:

If you were using mpich2, I would say use 'port install mpich2 +gcc45' and then 'port install hdf5-18 +mpich2'; hdf5-18 now uses the selected mpi's wrappers, which, at least in mpich2's case, means that gcc45's CC, CXX, and fortran compilers will be used for compiling hdf5-18.

People told me that openmpi was more popular that mpich2. So I use openmpi. I could try to switch to mpich2...

The openmpi port currently uses only the fortran compiler from the requested +gccNN variant. If you would like that behavior to change, please file a separate ticket. For these scientific packages, in my opinion, if the user is requesting a particular +gccNN variant, they are probably expecting/desiring that compiler's CC,CXX, and F90 to be used for everything (not just fortran), but that's just my point of view...

I agree with your point. I will put another ticket.

Installing 'openmpi +gcc45' and then 'hdf5-18 +openmpi' will likely still work, but I haven't tried it myself.

comment:8 in reply to:  7 Changed 12 years ago by eborisch (Eric A. Borisch)

Replying to smasson@…:

People told me that openmpi was more popular that mpich2. So I use openmpi. I could try to switch to mpich2...

Depends who you ask. ;) (I am the mpich2[-devel] port maintainer.) I also work on a cluster running mvapich2 (which is based on mpich2) so I use mpich2 as it is "more related."

comment:9 Changed 12 years ago by massonseb

It seems to work with the variants:

hdf5-18 +fortran +openmpi

comment:10 Changed 12 years ago by eborisch (Eric A. Borisch)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.