[Trilinos-Users] Trilinos installation error

Willenbring, James M jmwille at sandia.gov
Wed Apr 27 13:10:04 MDT 2011


K. Nardendiran,

It appears that you are trying to link to multiple versions of the BLAS and LAPACK.  The easiest thing to do would be to pick the system static version of each and try that.  The CLAPACK version is being found now because it is listed first.  I think the problem you are seeing is that you also need to link to the f2c library when using CLAPACK.  In your case, I recommend just using the system installed static version (the middle library you currently have listed for both BLAS and LAPACK).

Jim

From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of narendiran kumar
Sent: Thursday, March 24, 2011 12:01 PM
To: Perschbacher, Brent M; trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Trilinos installation error

Dear Sir,

Here i have shown below the actual error, while i am trying to make ("make -j4").


[  1%] Building CXX object packages/teuchos/test/BLAS/CMakeFiles/Teuchos_BLAS_test.dir/cxx_main.cpp.o
cd /home/narendiran/Downloads/trilinos-10.6.3-Build/packages/teuchos/test/BLAS && /usr/bin/g++    -fprofile-arcs -ftest-coverage  -g -O0 -I/home/narendiran/Downloads/trilinos-10.6.3-Build -I/home/narendiran/Downloads/trilinos-10.6.3-Source -I/home/narendiran/Downloads/trilinos-10.6.3-Build/packages/teuchos/src -I/home/narendiran/Downloads/trilinos-10.6.3-Source/packages/teuchos/src   -o CMakeFiles/Teuchos_BLAS_test.dir/cxx_main.cpp.o -c /home/narendiran/Downloads/trilinos-10.6.3-Source/packages/teuchos/test/BLAS/cxx_main.cpp
Linking CXX executable Teuchos_BLAS_test.exe
cd /home/narendiran/Downloads/trilinos-10.6.3-Build/packages/teuchos/test/BLAS && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/Teuchos_BLAS_test.dir/link.txt --verbose=1
/usr/bin/g++   -fprofile-arcs -ftest-coverage  -g -O0  -fprofile-arcs -ftest-coverage  CMakeFiles/Teuchos_BLAS_test.dir/cxx_main.cpp.o  -o Teuchos_BLAS_test.exe -rdynamic -L/home/narendiran/Downloads/trilinos-10.6.3-Build/packages/teuchos/src ../../src/libteuchos.so /home/narendiran/Downloads/clapack-3.2.1-CMAKE/lapack_LINUX.a -Wl,-Bstatic -llapack -Wl,-Bdynamic -llapack /home/narendiran/Downloads/clapack-3.2.1-CMAKE/blas_LINUX.a -Wl,-Bstatic -lblas -Wl,-Bdynamic -lblas -Wl,-rpath,/home/narendiran/Downloads/trilinos-10.6.3-Build/packages/teuchos/src
../../src/libteuchos.so: undefined reference to `d_cnjg'
../../src/libteuchos.so: undefined reference to `c_abs'
../../src/libteuchos.so: undefined reference to `z_abs'
../../src/libteuchos.so: undefined reference to `r_cnjg'
../../src/libteuchos.so: undefined reference to `z_div'
collect2: ld returned 1 exit status
make[2]: *** [packages/teuchos/test/BLAS/Teuchos_BLAS_test.exe] Error 1
make[2]: Leaving directory `/home/narendiran/Downloads/trilinos-10.6.3-Build'
make[1]: *** [packages/teuchos/test/BLAS/CMakeFiles/Teuchos_BLAS_test.dir/all] Error 2
make[1]: Leaving directory `/home/narendiran/Downloads/trilinos-10.6.3-Build'
make: *** [all] Error 2
root at narendiran:/home/narendiran/Downloads/trilinos-10.6.3-Build#



Regards,
K. Narendiran

On Thu, Mar 24, 2011 at 8:35 PM, Perschbacher, Brent M <bmpersc at sandia.gov<mailto:bmpersc at sandia.gov>> wrote:
The snippet from your make output doesn't have the actual error that was encountered. Could you attach all the output from your make run so that we can help you figure out what the problem is?

Thanks,

Brent



On 3/24/11 4:41 AM, "narendiran kumar" <narendirankumar at gmail.com<http://narendirankumar@gmail.com>> wrote:
Dear Sir/Madam,

I am trying to install trilinos package (10.6.3).  After i completed "./do-configure" step.  I tired to "make -j4".  But it is giving the error that

make[2]: Leaving directory `/home/narendiran/Downloads/trilinos-10.6.3-Build'
/usr/local/bin/cmake -E cmake_progress_report /home/narendiran/Downloads/trilinos-10.6.3-Build/CMakeFiles  92
[ 20%] Built target teuchos
make[1]: Leaving directory `/home/narendiran/Downloads/trilinos-10.6.3-Build'
make: *** [all] Error 2
root at narendiran:/home/narendiran/Downloads/trilinos-10.6.3-Build#

Can anyone please help me.  How to processed further to move.


Regards,
K. Narendiran


*** do-configure script ***

#!/bin/bash

TRILINOS_PATH=/home/narendiran/Downloads/trilinos-10.6.3-Source

EXTRA_ARGS=$@

rm -f CMakeCache.txt


cmake \
  -D CMAKE_BUILD_TYPE:STRING=DEBUG \
  -D CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++  \
  -D CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc  \
  -D CMAKE_Fortran_COMPILER:FILEPATH=/usr/bin/gfortran  \
  -D Trilinos_ENABLE_Epetra:BOOL=ON \
  -D Trilinos_ENABLE_EpetraExt:BOOL=ON \
  -D Trilinos_ENABLE_Teuchos:BOOL=ON \
  -D Trilinos_ENABLE_AztecOO:BOOL=ON \
  -D Trilinos_ENABLE_Epetra:BOOL=ON \
  -D Trilinos_ENABLE_Teuchos:BOOL=ON \
  -D Trilinos_ENABLE_NOX:BOOL=ON \
  -D Trilinos_ENABLE_MOOCHO:BOOL=ON \
  -D Trilinos_ENABLE_Anasazi:BOOL=ON \
  -D Trilinos_ENABLE_Sacado:BOOL=ON \
  -D Trilinos_ENABLE_Stokhos:BOOL=ON \
  -D Trilinos_ENABLE_Rythmos:BOOL=ON \
  -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
  -D Trilinos_ENABLE_ForTrilinos:BOOL=ON \
  -D Trilinos_ENABLE_FEI:BOOL=ON \
  -D Trilinos_ENABLE_Intrepid:BOOL=ON \
  -D Trilinos_ENABLE_STK:BOOL=ON \
  -D Trilinos_ENABLE_Teuchos:BOOL=ON \
  -D Trilinos_ENABLE_CTrilinos:BOOL=ON \
  -D Trilinos_ENABLE_ForTrilinos:BOOL=ON \
  -D Trilinos_ENABLE_Epetra:BOOL=ON \
  -D Trilinos_ENABLE_RTOp:BOOL=ON \
  -D Trilinos_ENABLE_Galeri:BOOL=ON \
  -D Trilinos_ENABLE_Optika:BOOL=ON \
  -D Trilinos_ENABLE_ThreadPool:BOOL=ON \
  -D Trilinos_ENABLE_Phalanx:BOOL=ON \
  -D Trilinos_ENABLE_Shards:BOOL=ON \
  -D Trilinos_ENABLE_Didasko:BOOL=ON \
  -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
  -D Trilinos_ENABLE_TESTS:BOOL=ON \
  -D Trilinos_ENABLE_EXAMPLES:BOOL=ON \
  -D DART_TESTING_TIMEOUT:STRING=600 \
  -D BUILD_SHARED_LIBS:BOOL=ON \
  -D TPL_ENABLE_MPI:BOOL=OFF \
  -D CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE  \
  -D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE   \
  -D Trilinos_ENABLE_COVERAGE_TESTING:BOOL=ON  \
  -D BLAS_LIBRARY_NAMES:STRING="blas_LINUX.a" \
  -D TPL_ENABLE_LAPACK:STRING=ON \
  -D TPL_ENABLE_QT:STRING=OFF \
  -D TPL_BLAS_LIBRARIES:FILEPATH="/home/narendiran/Downloads/clapack-3.2.1-CMAKE/blas_LINUX.a;/usr/lib/libblas.a;/usr/lib/libblas.so" \
  -D TPL_LAPACK_LIBRARIES:FILEPATH="/home/narendiran/Downloads/clapack-3.2.1-CMAKE/lapack_LINUX.a;/usr/lib/liblapack.a;/usr/lib/liblapack.so" \
  -D LAPACK_LIBRARY_NAMES:STRING="lapack_LINUX.a" \
  -D CMAKE_INSTALL_PREFIX="/home/narendiran/Downloads/trilinos-10.6.3-Build" \
$EXTRA_ARGS \
${TRILINOS_PATH}




________________________________
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<http://Trilinos-Users@software.sandia.gov>
http://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110427/fc0d2ce8/attachment.html 


More information about the Trilinos-Users mailing list