Error while installing dealii

137 views
Skip to first unread message

PUNITH M

unread,
Mar 15, 2022, 7:09:55 AM3/15/22
to deal.II User Group
I've compiled a deal.ii using CMake with the below options 

cmake -DCMAKE_INSTALL_PREFIX=/apps/codes/deal_II/9.3.3 -DHDF5_DIR=/apps/libs/hdf5/gcc/1.12.1 -DP4EST_DIR=/apps/libs/p4est-2.8 -DDEAL_II_WITH_MPI=ON -DTRILINOS_DIR=/apps/libs/Trillions-13.2 ../

compile was successful
while installing using the command make --jobs=4 install I'm getting the below error

../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Epetra_MpiComm::Epetra_MpiComm(int)'
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Teuchos::details::safeCommFree(int*)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/step-10.release] Error 1
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Epetra_MpiComm::Epetra_MpiComm(int)'
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Teuchos::details::safeCommFree(int*)'
make[1]: *** [examples/CMakeFiles/step-10.release.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'collect2: error: ld returned 1 exit status
Epetra_MpiComm::Epetra_MpiComm(int)'
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Teuchos::details::safeCommFree(int*)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/step-12.release] Error 1
make[2]: *** [bin/step-11.release] Error 1
make[1]: *** [examples/CMakeFiles/step-12.release.dir/all] Error 2
make[1]: *** [examples/CMakeFiles/step-11.release.dir/all] Error 2
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Epetra_MpiComm::Epetra_MpiComm(int)'
../lib/libdeal_II.so.9.3.3: error: undefined reference to 'Teuchos::details::safeCommFree(int*)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/step-1.release] Error 1
make[1]: *** [examples/CMakeFiles/step-1.release.dir/all] Error 2
make: *** [all] Error 2

Bruno Turcksin

unread,
Mar 15, 2022, 8:35:48 AM3/15/22
to deal.II User Group
Hello,

Did you configure Trilinos with MPI support?

Best,

Bruno

PUNITH M

unread,
Mar 16, 2022, 1:26:57 AM3/16/22
to deal.II User Group
S I did with the following options 

cmake -DTPL_ENABLE_MPI=ON -DMPI_BASE_DIR=/apps/compilers/openmpi/4.1.1 -DTrilinos_ENABLE_ALL_PACKAGES=ON -DTPL_ENABLE_Boost=OFF -DBUILD_SHARED_LIBS=ON -DTPL_ENABLE_Netcdf=OFF -DCMAKE_INSTALL_PREFIX=/apps/libs/Trillions-13.2 ../

Wolfgang Bangerth

unread,
Mar 17, 2022, 1:25:03 PM3/17/22
to dea...@googlegroups.com
On 3/15/22 23:26, PUNITH M wrote:
>
> cmake -DTPL_ENABLE_MPI=ON -DMPI_BASE_DIR=/apps/compilers/openmpi/4.1.1
> -DTrilinos_ENABLE_ALL_PACKAGES=ON -DTPL_ENABLE_Boost=OFF
> -DBUILD_SHARED_LIBS=ON -DTPL_ENABLE_Netcdf=OFF
> -DCMAKE_INSTALL_PREFIX=/apps/libs/Trillions-13.2 ../

Is this the same MPI installation as you used for deal.II?

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages