Opened 10 years ago

Closed 10 years ago

#43350 closed defect (fixed)

mpich and openmpi shouldn't have compilers as only build-time dependencies

Reported by: dstrubbe (David Strubbe) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: seanfarley (Sean Farley), eborisch (Eric A. Borisch)
Port: mpich-default, openmpi-default

Description

These ports list the compiler used (e.g. gcc48) as a build dependency. This doesn't seem sufficient: the compiler wrappers will not work if that port is uninstalled. I think it needs to be a runtime dependency.

For mpich-default @3.1_0+gcc48, I deactivated gcc48 and then:

$ mpif90-mpich-mp test.f90
gfortran-mp-4.8: error trying to exec 'f951': execvp: No such file or directory

For openmpi-default @1.7.5_0+gcc45, I deactivated gcc45 and then:

$ mpif90-openmpi-mp test.f90 
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
/opt/local/bin/gfortran-mp-4.5 in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------

Change History (2)

comment:1 Changed 10 years ago by seanfarley (Sean Farley)

Owner: changed from macports-tickets@… to sean@…
Status: newassigned

Ah, good catch. I'm refactoring both openmpi and mpich portfiles to include mpirun so I'll fix this as well. Thanks for the report.

comment:2 Changed 10 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: assignedclosed

Fixed in r118961.

Note: See TracTickets for help on using tickets.