build problem with petsc slepc trilinos on ubuntu
I am having some problems building with TRILINOS and SLEPC on ubuntu oneiric. My CmakeError.log is posted below. I think it's having a hard time finding libpthreads. I am using the trunk version.
******
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: dolfin/
Run Build Command:
/usr/bin/make -f CMakeFiles/
make[1]: Entering directory `dolfin/
/usr/bin/cmake -E cmake_progress_
Building C object CMakeFiles/
/usr/bin/gcc -DCHECK_
Linking C executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/
/usr/bin/gcc -DCHECK_
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `dolfin/
make: *** [cmTryCompileEx
Performing C++ SOURCE FILE Test ARMADILLO_TEST_RUNS failed with the following output:
Change Dir: dolfin/
Run Build Command:
/usr/bin/make -f CMakeFiles/
make[1]: Entering directory `dolfin/
/usr/bin/cmake -E cmake_progress_
Building CXX object CMakeFiles/
/usr/bin/c++ -DARMADILLO_
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/
/usr/bin/c++ -DARMADILLO_
CMakeFiles/
src.cxx:
CMakeFiles/
src.cxx:
CMakeFiles/
src.cxx:
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `dolfin/
make: *** [cmTryCompileEx
Return value: 1
Source file was:
#include <armadillo>
using namespace arma;
int main()
{
int n = 20;
double h = 1.0/(n-1);
mat A(n, n);
vec b(n);
vec u(n);
double beta = 0.2;
double gamma = 1000;
A.fill(0.0);
b.fill(0.0);
double x; int i;
i = 0;
A(i, i) = 1;
b(i) = 0;
for (i=1; i<n-1; i++) {
x = (i-1)*h;
A(i, i-1) = 1; A(i, i) = -2; A(i, i+1) = 1;
b(i) = - h*h*gamma*
}
i = n-1; x = (i-1)*h;
A(i, i-1) = 2; A(i, i) = -2;
u = solve(A, b);
return 0;
}
Performing C++ SOURCE FILE Test SLEPC_TEST_RUNS failed with the following output:
Change Dir: dolfin/
Run Build Command:
/usr/bin/make -f CMakeFiles/
make[1]: Entering directory `dolfin/
/usr/bin/cmake -E cmake_progress_
Building CXX object CMakeFiles/
/usr/bin/c++ -DSLEPC_TEST_RUNS -fopenmp -I/usr/
Linking CXX executable cmTryCompileExec
/usr/bin/cmake -E cmake_link_script CMakeFiles/
/usr/bin/c++ -DSLEPC_TEST_RUNS -fopenmp CMakeFiles/
/usr/bin/ld: CMakeFiles/
/usr/bin/ld: note: 'ompi_mpi_
/usr/lib/
collect2: ld returned 1 exit status
make[1]: Leaving directory `dolfin/
make[1]: *** [cmTryCompileExec] Error 1
make: *** [cmTryCompileEx
Return value: 1
Source file was:
#include "petsc.h"
#include "slepceps.h"
int main()
{
PetscErrorCode ierr;
int argc = 0;
char** argv = NULL;
ierr = SlepcInitialize
EPS eps;
ierr = EPSCreate(
//ierr = EPSSetFromOptio
#if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR <= 1
ierr = EPSDestroy(eps); CHKERRQ(ierr);
#else
ierr = EPSDestroy(&eps); CHKERRQ(ierr);
#endif
ierr = SlepcFinalize(); CHKERRQ(ierr);
return 0;
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johannes Ring
- Solved:
- Last query:
- Last reply: