Opened 4 years ago

Closed 4 years ago

#62803 closed defect (fixed)

mpich: declare lib dependency on target compiler

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mpich

Description

While the various mpich-* subports declare a build dependency on the target compiler, they do not declare a lib dependency for GCC subports.

The implications are that:

  1. The target compiler will be installed for a source build, only to be uninstalled during a reclaim operation.
  2. For a binary install, the target compiler will never be installed. So when a user attempts to use the associated compiler wrappers, they will fail with "The Open MPI wrapper compiler was unable to find the specified compiler."

This doesn't provide a good user experience. Instead, we should add a lib dependency on the target compiler, to avoid this situation.

Of note, this is being done for Clang subports; it simply isn't for those using GCC as a target.

Change History (3)

comment:1 Changed 4 years ago by mascguy (Christopher Nielsen)

I'll take care of fixing this, as I just made similar changes to openmpi.

See issue:62795 - openmpi: declare lib dependency on target compiler

comment:2 Changed 4 years ago by mascguy (Christopher Nielsen)

comment:3 Changed 4 years ago by Christopher Nielsen <62156882+mascguy@…>

Resolution: fixed
Status: assignedclosed

In e160337bd7dafb4366dcbce7901bc25e785659a3/macports-ports (master):

mpich: ensure target compilers are added to depends_lib (https://github.com/macports/macports-ports/pull/10879)

  • Add myself as a maintainer

Fixes: #62803

Co-authored-by: Christopher Nielsen <mascguy@…>

Note: See TracTickets for help on using tickets.