这是indexloc提供的服务,不要输入任何密码
Skip to content

Openmpi CC_FOR_BUILD and friends also target host now #173

@zklaus

Description

@zklaus

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

For hdf5, we need to build a build time tool with the mpifort and mpicc. Up to now, this works nicely by setting CC_FOR_BUILD/FC_FOR_BUILD to $BUILD_PREFIX/bin/mpicc (mpifort, respectively).
However, with openmpi 5.0.5, these compilers also target the host, i.e. just like the regular $PREFIX/bin/mpicc, they produce osx-arm64 binaries in cross compilation mode, which cannot link with the right library (see here) or fail to execute due to bad cpu type.

I am not 100% sure which change is responsible for this or which version is the last one that worked, but I can say that things worked with openmpi 5.0.3-h324cb95_104 and that I suspect the culprit to be this line.

Installed packages

-

Environment info

-

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions