C++ error! MPI_Finalize() could not be located!
I am trying to compile on Fedora 14 with Dorsal (dorsal-1.0-beta2). I have openmpi installed. I have previously installed all of the packages indicated on the yum command displayed at the start of the dorsal.sh script. I have added 'module load openmpi-i386' to my bashrc (and 'module list' shows the openmpi environment as loaded).
Parametis is downloaded and compiled, but PETSc fails with:
*******
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
-------
C++ error! MPI_Finalize() could not be located!
*******
Failure with exit status: 1
Exit message: There was a problem configuring petsc-3.1-p8.
What should I be looking for in configure.log to diagnose this problem? Thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Dorsal Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johannes Ring
- Solved:
- 2011-11-22
- Last query:
- 2011-11-22
- Last reply:
- 2011-11-22
|
#1 |
You can paste the configure.log here, or maybe better, try the development version of Dorsal:
bzr branch lp:dorsal
Then you will get the latest PETSc 3.2.
jstults (joshua-stults) said : | #2 |
Got the development version of dorsal as Johannes Ring suggested. I removed all of the directories and files under ~/Work/FEniCS.
Now Trilinos fails with:
CMake Error at cmake/package_
Could not find the UMFPACK headers include directory! Please manually set
UMFPACK_
TPL_UMFPACK_
On my install umfpack.h is located at /usr/include/
Added this to bashrcl:
export UMFPACK_
Removed the Trilinos dorsal_build_dir, and re-attempted ./dorsal.sh. Still fails with:
CMake Error at cmake/package_
Could not find the UMFPACK headers include directory! Please manually set
UMFPACK_
TPL_UMFPACK_
'echo $UMFPACK_
Johannes Ring (johannr) said : | #3 |
Try to add -DUMFPACK_
=== modified file 'FEniCS/
--- FEniCS/
+++ FEniCS/
@@ -14,7 +14,8 @@
-D CMAKE_BUILD_
-D BUILD_SHARED_
-D TPL_ENABLE_
- -D TPL_ENABLE_
+ -D TPL_ENABLE_
+ -D UMFPACK_
if [ -x "${SWIG_
CONFOPTS=
Martin Sandve Alnæs (martinal) said : | #4 |
Getting the same trilinos problem, the last fix by Johannes solves one problem, but now I get:
Getting information for all enabled TPLs ...
-- Processing enabled TPL: Pthread
-- Attempting to enable tentatively enabled TPL 'Pthread' ...
-- Searching for library 'pthread' ...
-- Found Pthread TPL library: /usr/lib/
-- TPL_Pthread_
-- Found Pthread TPL header: /usr/include/
-- Found Pthread TPL header path: /usr/include
-- TPL_Pthread_
-- Attempt to enable tentatively enabled TPL 'Pthread' passed!
-- Processing enabled TPL: BinUtils
-- Attempting to enable tentatively enabled TPL 'BinUtils' ...
-- Must find all libraries in "bfd;iberty"
-- Searching for library 'bfd' ...
-- Error: Could not find a library in the set "bfd" for the TPL BinUtils! Please manually set BinUtils_
-- Searching for library 'iberty' ...
-- Error: Could not find a library in the set "iberty" for the TPL BinUtils! Please manually set BinUtils_
-- Could not find the BinUtils Library! Please manually set BinUtils_
-- _BinUtils_
-- TPL_BinUtils_
-- Must find all headers in "link.h;bfd.h"
-- Searching for headers "link.h"
-- Found BinUtils TPL header: /usr/include/link.h
-- Searching for headers "bfd.h"
-- Did not find BinUtils TPL header: bfd.h
-- Found BinUtils TPL header path: /usr/include
-- TPL_BinUtils_
-- TPL_ENABLE_
Martin Sandve Alnæs (martinal) said : | #5 |
So the above "Error: Could not find a library in the set "iberty" for the TPL BinUtils!" was not a showstopper, I managed to build trilinos by fixing an unrelated problem.
But scipy doesn't find UMFPACK either:
swig -python -I/usr/
scipy/sparse/
How do I set the equivalent of -DUMFPACK_
jstults (joshua-stults) said : | #6 |
Adding the UMFPACK_
Possible ERROR while running linker: /tmp/petsc-
conftest.
collect2: ld returned 1 exit status
output: ret = 256
error message = {/tmp/petsc-
conftest.
collect2: ld returned 1 exit status
}
in gfortran -o /tmp/petsc-
Source:
program main
include 'mpif.h'
integer ierr
call mpi_init(ierr)
end
*******
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
-------
Fortran error! mpi_init() could not be located!
*******
File "./config/
framework.
File "/home/
child.
File "/home/
self.
File "/home/
ret = apply(test, args,kargs)
File "/home/
self.
File "/home/
ret = apply(test, args,kargs)
File "/home/
raise RuntimeError(
How do I tell dorsal to use the system libraries/includes, and not the ones that came with OpenFoam?
jstults (joshua-stults) said : | #7 |
I had sourced the OpenFOAM environment script from my bashrc; commenting that out and trying again seems to fix things. Sorry to be a bother!
jstults (joshua-stults) said : | #8 |
Thanks Johannes Ring, that solved my question.