-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix hypre/package.py: Not linking MPI properly #512
Description
Follows is the key to fix hypre/package.py to build with shared libraries:
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: