[Trilinos-Users] [EXTERNAL] [TRILINOS-11.14.1 INSTALLATION ERRORS]--UNDEFINED REFERENCE TO "CHOLMOD/ SUITESPARSE"--CONFIG STATEMENTS

Bruno Turcksin bruno.turcksin at gmail.com
Thu Apr 16 18:00:22 MDT 2015


Joseph,

you probably want to add something like:
-DTPL_CHOLMOD_LIBRARIES=path/to/library \
-DTPL_SUITESPARSE_LIBRARIES=path/to/library \

The linker cannot find where these libraries are. Your configuration only
says where the header files are not the compiled libraries.

Best,

Bruno


2015-04-16 17:58 GMT-05:00 Ofosu Ampadu Joseph <joseph at al.t.u-tokyo.ac.jp>:

> Dear All,
>
> In order to provide a broader picture to the installation errors, I have
> provided the configuration statements I used for configuring below:
>
> sudo cmake -DTrilinos_ENABLE_Sacado=ON \
> -DTrilinos_ENABLE_Stratimikos=ON \
> -DCMAKE_BUILD_TYPE=RELEASE \
> -DCMAKE_CXX_FLAGS="-g -O3" \
> -DCMAKE_C_FLAGS="-g -O3" \
> -DCMAKE_FORTRAN_FLAGS="-g -O5" \
> -DTrilinos_EXTRA_LINK_FLAGS="-lgfortran" \
> -DTrilinos_ENABLE_ALL_PACKAGES=ON \
> -DCMAKE_VERBOSE_MAKEFILE=FALSE \
> -DTrilinos_VERBOSE_CONFIGURE=FALSE \
> -DTPL_ENABLE_MPI=ON \
> -DBUILD_SHARED_LIBS=ON \
> -DTPL_ENABLE_UMFPACK=ON \
> -DTPL_ENABLE_CHOLMOD=ON \
> -DTPL_ENABLE_SUITESPARSE=ON \
> -DTPL_ENABLE_SuperLU=ON \
> -DTPL_UMFPACK_INCLUDE_DIR="/usr/local/include" \
> -DTPL_CHOLMOD_INCLUDE_DIR="/usr/local/include" \
> -DTPL_SUITESPARSE_INCLUDE_DIR="/usr/local/include" \
> -DSuperLU_INCLUDE_DIRS="/home/ofosu/SuperLU_4.3/SRC" \
> -DTPL_SuperLU_LIBRARIES="/home/ofosu/SuperLU_4.3/lib/libsuperlu_4.3.a" \
> -DTPL_ENABLE_MUMPS=ON \
> -DTPL_ENABLE_SCALAPACK=ON \
> -DTPL_MUMPS_INCLUDE_DIRS="/usr/lib/openmpi/include/openmpi" \
> -DTPL_SCALAPACK_LIBRARIES="/home/ofosu/scalapack-2.0.2/libscalapack.a" \
> -DTPL_SWIG_INCLUDE_DIRS="/usr/local/include/share/swig/3.0.5" \
> -DCMAKE_INSTALL_PATH="/usr/local/include" \
>  /home/ofosu/trilinos-11.14.1-Source
>
>
> On 16/04/15 02:08, Siva Rajamanickam wrote:
>
>> Looks like you are configuring Trilinos with CHOLMOD, but the linker is
>> not able to find the cholmod library.
>>
>> -Siva
>>
>> On 04/15/2015 10:12 AM, Ofosu Ampadu Joseph wrote:
>>
>>> Dear All,
>>>
>>> I am new to Trilinos and would like to interface some of the libraries
>>> with Deal II.
>>> I am building on Ubuntu 14.04 LTS OS.
>>> I have been able to successfully configure Trilinos, however during
>>> installation via the command: 'sudo make install' , and after 27% of built
>>> target success, I get the following errors:
>>>
>>> [ 27%] Built target Amesos_Amesos_TESTBASIC_COPY3
>>> Linking CXX executable amesos_test.exe
>>> ../../src/libamesos.so.11.14.1: undefined reference to `cholmod_start'
>>> ../../src/libamesos.so.11.14.1: undefined reference to `cholmod_finish'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `cholmod_free_factor'
>>> ../../src/libamesos.so.11.14.1: undefined reference to `SuiteSparse_free'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `cholmod_print_common'
>>> ../../src/libamesos.so.11.14.1: undefined reference to `SuiteSparse_time'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `cholmod_free_sparse'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `cholmod_transpose'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `SuiteSparse_config'
>>> ../../src/libamesos.so.11.14.1: undefined reference to
>>> `SuiteSparse_malloc'
>>> ../../src/libamesos.so.11.14.1: undefined reference to `cholmod_analyze'
>>> collect2: error: ld returned 1 exit status
>>> make[2]: *** [packages/amesos/test/Test_Basic/amesos_test.exe] Error 1
>>> make[1]: ***
>>> [packages/amesos/test/Test_Basic/CMakeFiles/amesos_test.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>> I humbly ask if anyone could assist me with an advice of how to proceed.
>>> Thanks.
>>>
>>>
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> https://software.sandia.gov/mailman/listinfo/trilinos-users
>>
>>
> --
> ====================================
> Ofosu Joseph Ampadu
> The University of Tokyo
> Graduate Sch. of Frontier Sciences
> Department of Advanced Energy
> Komurasaki Laboratory
> +81-4-7136-4030
> ====================================
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150416/6e866577/attachment.html>


More information about the Trilinos-Users mailing list