[Trilinos-Users] [EXTERNAL] error linking mumps and amesos2 in Trilinos 12.6.1

Booth, Joshua Dennis jdbooth at sandia.gov
Mon Apr 25 12:16:57 EDT 2016


Hi John,

My name is Joshua Booth.  I wrote the interface and will give it a look. I know of a couple of people using MUMPS 5.0, so it should not be an issues.  More likely it is something with setup, since it is one of the more difficult packages to get linked with Trilinos.  Can you also give me a list of all the libraries and header files MUMPS provides when you compile before Trilinos and I will look over your cmake configure below.

Joshua Booth
________________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of John Jomo <john.jomo at tum.de>
Sent: Monday, April 25, 2016 9:55 AM
To: trilinos-users at trilinos.org
Subject: [EXTERNAL] [Trilinos-Users] error linking mumps and amesos2 in Trilinos 12.6.1

Hallo everyone,

I can't seem to link Mump 5.0.1 with amesos2 in Trilinos 12.6.1. The
problem seems to be caused the target Amesos2_klu2_simple.exe. Disabling
KLU2 in Amesos2 doesn't solve the problem. Trilinos 12.2.1 links without
any problmes.

I get the following error message:

#------ error message --------------------------------------

[ 99%] Linking CXX executable Amesos2_klu2_simple.exe
Scanning dependencies of target amesos2
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_pack_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_cancel_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_type_commit_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_iprobe_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_initialized_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_op_free_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_alltoall_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_reduce_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_unpack_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_gatherv_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_ssend_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_wait_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_comm_size_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_send_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_barrier_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_allreduce_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_wtime_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_comm_dup_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_type_contiguous_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_get_count_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_test_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_pack_size_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_irecv_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_comm_free_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_request_free_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_type_free_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_comm_split_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_abort_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_isend_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_comm_rank_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_recv_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_gather_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_bcast_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_waitany_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_reduce_scatter_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_get_processor_name_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_op_create_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_probe_'
../../../../../amesos/src/libamesos.so.12.6.1: undefined reference to
`mpi_waitall_'
collect2: error: ld returned 1 exit status
packages/amesos2/src/SuiteSparse/KLU2/Source/CMakeFiles/Amesos2_klu2_simple.dir/build.make:128:
recipe for target
'packages/amesos2/src/SuiteSparse/KLU2/Source/Amesos2_klu2_simple.exe'
failed
make[5]: ***
[packages/amesos2/src/SuiteSparse/KLU2/Source/Amesos2_klu2_simple.exe]
Error 1
CMakeFiles/Makefile2:5440: recipe for target
'packages/amesos2/src/SuiteSparse/KLU2/Source/CMakeFiles/Amesos2_klu2_simple.dir/all'
failed
make[4]: ***
[packages/amesos2/src/SuiteSparse/KLU2/Source/CMakeFiles/Amesos2_klu2_simple.dir/all]
Error 2
make[4]: *** Waiting for unfinished jobs....
#-------------------------- error message
------------------------------------------

I use the following config-file to build trilinos - I do not get any
warnings or errors during configuration:

#-------------------------- config file
------------------------------------------
#!/bin/bash

# root of my Trilinos source directory
SOURCE_BASE=${BASE_DIR}/trilinos-12.6.1-Source/

# for invoking additional command-line arguments
EXTRA_ARGS=$@

# delete existing CMakeCache so that changes to variables can be detected
ls ${PWD} | grep -i "CMake*" | xargs rm -rf

# Enable primary Trilinos packages
cmake \
   -D CMAKE_BUILD_TYPE:STRING=RELEASE \
   -D CMAKE_INSTALL_PREFIX:PATH=${BASE_DIR}/TPL/Trilinos/install \
   -D Trilinos_ENABLE_TESTS:BOOL=OFF \
   -D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
   -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \
   -D BUILD_SHARED_LIBS:BOOL=ON \
   -D Trilinos_ENABLE_Epetra:BOOL=ON \
   -D Trilinos_ENABLE_Galeri:BOOL=ON \
   -D Trilinos_ENABLE_Amesos:BOOL=ON \
   -D Trilinos_ENABLE_Amesos2:BOOL=ON \
   -D Trilinos_ENABLE_AztecOO:BOOL=ON \
   -D Trilinos_ENABLE_Belos:BOOL=ON \
   -D Trilinos_ENABLE_Teuchos:BOOL=ON \
   -D Trilinos_ENABLE_Tpetra:BOOL=ON \
   -D TPL_ENABLE_MPI:BOOL=ON \
   -D TPL_ENABLE_ParMETIS:BOOL=ON \
   -D TPL_ENABLE_SCALAPACK:BOOL=ON \
   -D TPL_ENABLE_MUMPS:BOOL=ON \
   -D ParMETIS_LIBRARY_DIRS:FILEPATH=${BASE_DIR}/TPL/parmetis/install/lib \
   -D
ParMETIS_INCLUDE_DIRS:FILEPATH=${BASE_DIR}/TPL/parmetis/install/include \
   -D Amesos_ENABLE_ParMETIS:BOOL=ON \
   -D CMAKE_CXX_COMPILER:STRINGS=mpicxx \
   -D CMAKE_C_COMPILER:STRINGS=mpicc \
   -D CMAKE_CXX_FLAGS:STRINGS="-fPIC -fpermissive -Wno-literal-suffix" \
   -D Amesos_ENABLE_SuperLUDist:BOOL=ON\
   -D Amesos_ENABLE_MUMPS:BOOL=ON\
   -D Amesos_ENABLE_SCALAPACK:BOOL=ON\
   -D SCALAPACK_LIBRARY_DIRS:FILEPATH=/opt/ScaLapack/install/lib \
   -D SCALAPACK_LIBRARY_NAMES:STRING="libscalapack.so" \
   -D Amesos2_ENABLE_SuperLUDist:BOOL=ON\
   -D Amesos2_ENABLE_MUMPS:BOOL=OFF\
   -D Amesos2_ENABLE_SCALAPACK:BOOL=OFF\
   -D MUMPS_LIBRARY_DIRS:FILEPATH=/opt/MUMPS/MUMPS_5.0.1/lib \
   -D MUMPS_INCLUDE_DIRS:FILEPATH=/opt/MUMPS/MUMPS_5.0.1/include \
   -D SuperLUDist_INCLUDE_DIRS:FILEPATH=${BASE_DIR}/SuperLU_DIST_4.3/SRC \
   -D SuperLUDist_LIBRARY_DIRS:FILEPATH=${BASE_DIR}/SuperLU_DIST_4.3/lib \
   -D SuperLUDist_LIBRARY_NAMES:STRING="libsuperlu_dist_4.2.a"\
   -D Trilinos_ENABLE_Zoltan:BOOL=ON \
   -D Zoltan_ENABLE_EXAMPLES:BOOL=ON \
   -D Zoltan_ENABLE_TESTS:BOOL=ON \
   -D Zoltan_ENABLE_ParMETIS:BOOL=ON \
   -D Teuchos_ENABLE_COMPLEX:BOOL=OFF \
   -D KokkosTSQR_ENABLE_Complex:BOOL=OFF \
   -D Trilinos_ENABLE_CXX11=ON \
   $EXTRA_ARGS \
   ${SOURCE_BASE}

#-------------------------- config file
------------------------------------------

Would really appreciate some insight on this issue.

thanks in advance

regards

John.


--
John Jomo M.Sc.
Technische Universität München
Computation in Engineering
Simulation in Applied Mechanics - SAM
Arcisstraße 21
80333 München
Tel.:     0049 / 89 / 289 25064
Fax:      0049 / 89 / 289 25051
E-Mail:   john.jomo at tum.de<mailto:john.jomo at tum.de>
Internet: www.cie.bgu.tum.de<http://www.cie.bgu.tum.de/>

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at trilinos.org
https://trilinos.org/mailman/listinfo/trilinos-users


More information about the Trilinos-Users mailing list