[Trilinos-Users] Problem linking amesos - V12.17

Villa Andrea (RSE) Andrea.Villa at rse-web.it
Wed May 6 06:31:50 MST 2020


Dear Trilinos developers, I haveloped an application (https://github.com/feof81/morganaPublic) based on trilinos and I'm currently updating the underlying version from 12.10.1 to the 12.17 one.
I have used the configure script listed below which is very similar to the one used for the 12.10.1.
The 12.17 is built in a correct manner but, I'm experiencing some problems during the linking phase:

/home/avilla/Documenti/trilinos-12.17-release/lib/libifpack.a(Ifpack_AMDReordering.cpp.o): nella funzione "Ifpack_AMDReordering::Compute(Ifpack_Graph const&)":
Ifpack_AMDReordering.cpp:(.text+0xf10): riferimento non definito a "trilinos_amd_order"
/home/avilla/Documenti/trilinos-12.17-release/lib/libamesos.a(Amesos_Klu.cpp.o): nella funzione "Amesos_Klu::PerformSymbolicFactorization()":
Amesos_Klu.cpp:(.text+0x3e25): riferimento non definito a "trilinos_klu_defaults"
Amesos_Klu.cpp:(.text+0x3e6e): riferimento non definito a "trilinos_klu_free_symbolic"
Amesos_Klu.cpp:(.text+0x3e8c): riferimento non definito a "trilinos_klu_analyze"
/home/avilla/Documenti/trilinos-12.17-release/lib/libamesos.a(Amesos_Klu.cpp.o): nella funzione "Amesos_Klu::PerformNumericFactorization()":
Amesos_Klu.cpp:(.text+0x42c4): riferimento non definito a "trilinos_klu_free_numeric"
Amesos_Klu.cpp:(.text+0x42ce): riferimento non definito a "trilinos_klu_factor"
Amesos_Klu.cpp:(.text+0x4617): riferimento non definito a "trilinos_klu_refactor"
Amesos_Klu.cpp:(.text+0x474b): riferimento non definito a "trilinos_klu_rcond"
/home/avilla/Documenti/trilinos-12.17-release/lib/libamesos.a(Amesos_Klu.cpp.o): nella funzione "Amesos_Klu::Solve()":
Amesos_Klu.cpp:(.text+0x54ad): riferimento non definito a "trilinos_klu_solve"
Amesos_Klu.cpp:(.text+0x55b9): riferimento non definito a "trilinos_klu_tsolve"
collect2: error: ld returned 1 exit status
Makefile:355: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: uscita dalla directory "/home/avilla/Documenti/morganaTemp/src"
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

(riferimento non definito -> undefined reference, nella funzione -> in function)
It seeems that klu is not built or moved to another library. I guess that klu should be embedded in amesos and, apparently, there is no way to prevent its building (it has no dependancies). I also attach the list of packages I'm passing to the linker when buildind my application. Am I missing something? This list was working correctly with the 12.10.1 version.

Any suggestion would be useful.
Thank you very much.
Best regards.

Andrea Villa.


cmake \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D CMAKE_CXX_FLAGS:STRING="-DBOOST_SP_DISABLE_THREADS" \
-D CMAKE_INSTALL_PREFIX:PATH=/home/avilla/Documenti/trilinos-12.17-release \
-D MEMORYCHECK_COMMAND:FILEPATH=/usr/bin \
-D DART_TESTING_TIMEOUT:STRING=600 \
-D TPL_ENABLE_Boost=OFF \
-D TPL_ENABLE_BoostLib=OFF \
-D TPL_ENABLE_MPI:BOOL=ON \
-D TPL_ENABLE_HDF5:BOOL=ON \
-D TPL_ENABLE_MUMPS:BOOL=ON \
-D TPL_ENABLE_METIS:BOOL=ON \
-D TPL_ENABLE_ParMETIS:BOOL=ON \
-D TPL_ENABLE_Netcdf:BOOL=OFF \
-D TPL_ENABLE_Matio=OFF \
-D BUILD_SHARED_LIBS:BOOL=OFF \
-D MUMPS_INCLUDE_DIRS:PATH=/home/avilla/Documenti/MUMPS_5.2.1/include \
-D MUMPS_LIBRARY_DIRS:PATH=/home/avilla/Documenti/MUMPS_5.2.1/lib \
-D HDF5_INCLUDE_DIRS:PATH=/home/avilla/Documenti/hdf5-1.10.6-release/include \
-D HDF5_LIBRARY_DIRS:PATH=/home/avilla/Documenti/hdf5-1.10.6-release/lib \
-D METIS_INCLUDE_DIRS:PATH=/home/avilla/Documenti/metis-4.0.3-release/include \
-D METIS_LIBRARY_DIRS:PATH=/home/avilla/Documenti/metis-4.0.3-release/lib \
-D ParMETIS_INCLUDE_DIRS:PATH=/home/avilla/Documenti/parmetis-4.0.3-release/include \
-D ParMETIS_LIBRARY_DIRS:PATH=/home/avilla/Documenti/parmetis-4.0.3-release/lib \
-D MPI_BASE_DIR:PATH=/home/avilla/Documenti/openmpi-4.0.2-release \
-D MPI_EXEC:FILEPATH="/home/avilla/Documenti/openmpi-4.0.2-release/bin/mpirun" \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_SEACAS:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
-D Zoltan2_ENABLE_ParMETIS=OFF


-lnoxepetra \
 -lnox \
 -lanasazi \
 -lanasaziepetra \
 -lbelos \
 -lbelosepetra \
 -lml \
 -lifpack \
 -lamesos2 \
 -lamesos \
 -laztecoo \
 -lzoltan \
 -lepetraext \
 -lepetra \
 -ltpetra \
 -ltpetraclassic \
 -ltpetraclassiclinalg \
 -ltpetraclassicnodeapi \
 -ltpetrainout \
 -ltpetraext \
 -lthyracore \
 -lthyraepetra \
 -lthyraepetraext \
 -lrtop \
 -lteuchosremainder \
 -lteuchosnumerics \
 -lteuchoskokkoscompat \
 -lteuchoscomm \
 -lteuchosparameterlist \
 -lteuchoscore \
 -lkokkosalgorithms \
 -lkokkoscontainers \
 -lkokkostsqr \
 -lkokkoscore \
 -ltriutils \
 -ldmumps \
 -lmumps_common \
 -lpord \
 -lhdf5 \
 -lparmetis \
 -lmetis \
 -lboost_thread \
 -lboost_mpi \
 -lboost_serialization \
 -lboost_system \
 -llapack \
 -lblas \
 -lscalapack \
 -lgfortran \
 -lmpi \
 -lmpi_mpifh \
 -lz \
 -ldl


Andrea Barbareschi Villa
Dipartimento Tecnologie di Trasmissione e Distribuzione
Tel: +390239925870 - Mobile: +393206152196

[http://signature.rse-web.it/rse_logo.png]                      Ricerca sul Sistema Energetico - RSE S.p.A.
Via R. Rubattino 54 - 20134 Milano
www.rse-web.it<http://www.rse-web.it>
[http://signature.rse-web.it/linkedin.png]<https://it.linkedin.com/company/ricerca-sul-sistema-energetico---rse-spa> [http://signature.rse-web.it/twitter.png] <https://twitter.com/rsenergetico>  [http://signature.rse-web.it/youtube.png] <https://www.youtube.com/user/RSEmedia>

P  Per la tutela dell'ambiente, prima di stampare questa e-mail pensa bene se è veramente necessario
________________________________


RSE SpA ha adottato il Modello Organizzativo ai sensi del D.Lgs.231/2001, in forza del quale l'assunzione di obbligazioni da parte della Società avviene con firma di un procuratore, munito di idonei poteri.
RSE adopts a Compliance Programme under the Italian Law (D.Lgs.231/2001). According to this RSE Compliance Programme, any commitment of RSE is taken by the signature of one Representative granted by a proper Power of Attorney. Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e' vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente. The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trilinos.org/pipermail/trilinos-users_trilinos.org/attachments/20200506/41379798/attachment.html>


More information about the Trilinos-Users mailing list