Skip to content

Fix hypre/package.py: Not linking MPI properly #512

@citibeth

Description

@citibeth

Follows is the key to fix hypre/package.py to build with shared libraries:

@psaravan:

Rob Falgout [email protected] added the comment:

Hi Elizabeth,

Sorry, it wasn't clear from your email (unless I missed something) if you were a developer or a user, and the problem seemed like it could be related to spack.

Anyhow, it looks to me like the issue is that you are setting the CC environment variable to 'gcc', so the hypre configure script does not look for an mpi compiler, it just uses the one you provide. When using a non-mpi compiler, you need to add the mpi library and include file information to the configure line:

--with-MPI-include=DIR
--with-MPI-libs=LIBS
--with-MPI-lib-dirs=DIRS

I'm not exactly sure how you are passing the openmpi path information to hypre. If it's through a CFLAGS environment variable, then that might appear after the MPI stuff.

Hope this helps. Let me know.

Log file of erroneous build:

hypre-package.txt
log.txt
environ.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions