← Back to team overview

dolfin team mailing list archive

Re: [Question #157005]: dolfin installation errors

 

Question #157005 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/157005

    Status: Answered => Open

Chunhe Lee is still having a problem:
Johannes ,

I hvae reinstalled lapack and bals according to what you said, and reinstalled armadillo and dolfin. But this time, "armadillo can not be found" question appear agian, which you have help me to solved it in the last question. I am sure I have uses your method to find armadillo by changing FindArmadillo.cmake.
Is there a sequance to install all these things? because I have installed boost, lapack, swig, armadillo, ufc at different time. Thanks!

cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_PIPE
-- Performing Test HAVE_PIPE - Success
-- Performing Test HAVE_PEDANTIC
-- Performing Test HAVE_PEDANTIC - Success
-- Performing Test HAVE_STD
-- Performing Test HAVE_STD - Success
-- Performing Test HAVE_DEBUG
-- Performing Test HAVE_DEBUG - Success
-- Performing Test HAVE_O2_OPTIMISATION
-- Performing Test HAVE_O2_OPTIMISATION - Success
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   system
--   thread
-- Checking for package 'Armadillo'
-- Performing Test ARMADILLO_TEST_RUNS
-- Performing Test ARMADILLO_TEST_RUNS - Failed
-- Checking for package 'LAPACK'
-- Found LAPACK: /home/rhome/lihe/bin/lapack/lib/liblapack.a
-- Performing Test ARMADILLO_LAPACK_TEST_RUNS
-- Performing Test ARMADILLO_LAPACK_TEST_RUNS - Failed
-- Checking for package 'BLAS'
-- Found BLAS: /home/rhome/lihe/bin/lapack/lib/libblas.a
-- Performing Test ARMADILLO_BLAS_TEST_RUNS
-- Performing Test ARMADILLO_BLAS_TEST_RUNS - Failed
CMake Error at /home/cluster/cmake/2.8.2/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
  Armadillo could not be found.  Be sure to set ARMADILLO_DIR.  (missing:
  ARMADILLO_TEST_RUNS)
Call Stack (most recent call first):
  cmake/modules/FindArmadillo.cmake:162 (find_package_handle_standard_args)
  CMakeLists.txt:164 (find_package)


CmakeError.log:


Performing C++ SOURCE FILE Test ARMADILLO_TEST_RUNS failed with the following output:
Change Dir: /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
gmake: Warning: File `Makefile' has modification time 3.2e+02 s in the future
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake[1]: Warning: File `CMakeFiles/cmTryCompileExec.dir/flags.make' has modification time 3.2e+02 s in the future
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_progress_report /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/usr/bin/c++    -DARMADILLO_TEST_RUNS -I/home/rhome/lihe/bin/armadillo/include -I/home/rhome/lihe/bin/boost/include   -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++      -DARMADILLO_TEST_RUNS   CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic /home/rhome/lihe/bin/armadillo/lib64/libarmadillo.so -lgfortran -Wl,-rpath,/home/rhome/lihe/bin/armadillo/lib64 
gmake[1]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[1]: Leaving directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake: warning:  Clock skew detected.  Your build may be incomplete.
Return value: FAILED_TO_RUN
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*exp(-beta*x);
  }
  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 ARMADILLO_LAPACK_TEST_RUNS failed with the following output:
Change Dir: /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
gmake: Warning: File `Makefile' has modification time 3.2e+02 s in the future
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake[1]: Warning: File `CMakeFiles/cmTryCompileExec.dir/flags.make' has modification time 3.2e+02 s in the future
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_progress_report /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/usr/bin/c++    -DARMADILLO_LAPACK_TEST_RUNS -I/home/rhome/lihe/bin/armadillo/include -I/home/rhome/lihe/bin/boost/include   -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++      -DARMADILLO_LAPACK_TEST_RUNS   CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic /home/rhome/lihe/bin/armadillo/lib64/libarmadillo.so -lgfortran /home/rhome/lihe/bin/lapack/lib/liblapack.a -Wl,-rpath,/home/rhome/lihe/bin/armadillo/lib64 
gmake[1]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[1]: Leaving directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake: warning:  Clock skew detected.  Your build may be incomplete.
Return value: FAILED_TO_RUN
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*exp(-beta*x);
  }
  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 ARMADILLO_BLAS_TEST_RUNS failed with the following output:
Change Dir: /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
gmake: Warning: File `Makefile' has modification time 3.2e+02 s in the future
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake[1]: Warning: File `CMakeFiles/cmTryCompileExec.dir/flags.make' has modification time 3.2e+02 s in the future
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_progress_report /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o
/usr/bin/c++    -DARMADILLO_BLAS_TEST_RUNS -I/home/rhome/lihe/bin/armadillo/include -I/home/rhome/lihe/bin/boost/include   -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTryCompileExec
/home/cluster/cmake/2.8.2/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/c++      -DARMADILLO_BLAS_TEST_RUNS   CMakeFiles/cmTryCompileExec.dir/src.cxx.o  -o cmTryCompileExec -rdynamic /home/rhome/lihe/bin/armadillo/lib64/libarmadillo.so -lgfortran /home/rhome/lihe/bin/lapack/lib/liblapack.a /home/rhome/lihe/bin/lapack/lib/libblas.a -Wl,-rpath,/home/rhome/lihe/bin/armadillo/lib64 
gmake[1]: warning:  Clock skew detected.  Your build may be incomplete.
gmake[1]: Leaving directory `/home/rhome/lihe/program/install/dolfin-0.9.10/build/CMakeFiles/CMakeTmp'
gmake: warning:  Clock skew detected.  Your build may be incomplete.
Return value: FAILED_TO_RUN
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*exp(-beta*x);
  }
  i = n-1;  x = (i-1)*h;
  A(i, i-1) = 2;  A(i, i) = -2;
  u = solve(A, b);
  return 0;
}

Best regards!
Chunhe


2011-05-12

You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.