[Trilinos-Users] CMake problems with lapack-provided blas

Shota Soga ssoga at ncsu.edu
Wed Sep 14 09:04:27 MDT 2011


Not sure this works, but add the following command. The error seems from
gfortran...

-D Trilinos_EXTRA_LINK_FLAGS:STRING="-lgfortran" \

On Wed, Sep 14, 2011 at 10:36 AM, <andrea3.villa at mail.polimi.it> wrote:

> Hi, I have a little trouble to install Trilinos with lapack-provided
> blas libraries. I attach the CMAKE configuration script below.
> I get the following linking errors:
>
> Linking CXX executable Teuchos_BLAS_test.exe
>
> /data1/cluster/lapack-3.3.0/blas_LINUX.a(xerbla.o): In function `xerbla_':
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:39: undefined reference
> to `_gfortran_st_write'
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:39: undefined reference
> to `_gfortran_string_len_trim'
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:39: undefined reference
> to `_gfortran_transfer_character'
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:39: undefined reference
> to `_gfortran_transfer_integer'
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:39: undefined reference
> to `_gfortran_st_write_done'
> /data1/cluster/lapack-3.3.0/BLAS/SRC/xerbla.f:41: undefined reference
> to `_gfortran_stop_numeric'
>
> collect2: ld returned 1 exit status
>
>
>
> Is there any work around?
> Thankyou very much.
> Best regards.
> Andrea.
>
>
>
>
>
> EXTRA_ARGS=$@
>
> /data1/cluster/Cmake/bin/cmake \
> -D CMAKE_BUILD_TYPE:STRING=RELEASE \
> -D CMAKE_CXX_FLAGS:STRING="-DBOOST_SP_DISABLE_THREADS" \
> -D CMAKE_INSTALL_PREFIX:PATH=/data1/cluster/TrilinosSerial/ReleaseA/ \
> -D MEMORYCHECK_COMMAND:FILEPATH=/usr/bin \
> -D DART_TESTING_TIMEOUT:STRING=600 \
> -D TPL_ENABLE_Boost:BOOL=OFF \
> -D BLAS_LIBRARY_NAMES:STRING="blas_LINUX.a" \
> -D BLAS_LIBRARY_DIRS:PATH=/data1/cluster/lapack-3.3.0/ \
> -D LAPACK_LIBRARY_NAMES:STRING="lapack_LINUX.a" \
> -D LAPACK_LIBRARY_DIRS:PATH=/data1/cluster/lapack-3.3.0/ \
> -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
> -D Trilinos_ENABLE_TESTS:BOOL=ON \
> -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
> $EXTRA_ARGS \
> ../trilinos-10.6.3-Source
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>


-- 
Shota Soga
Graduate Assistant at North Carolina State University

Email: ssoga at ncsu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110914/ccb3f4ce/attachment.html 


More information about the Trilinos-Users mailing list