Problem When Install svFSI by Souce
Posted: Fri Jul 17, 2020 8:02 pm
Dear developer:
I am installing the svFSI by source. After entering the Prefix_Path with Trilinos, and changing the compiler to gcc & g++, I ran make but met:
CMakeFiles/svFSI.dir/trilinos_linear_solver.cpp.o: In function `trilinos_lhs_create_':
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::Epetra_MpiComm(int)'
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
/usr/local/lib/libepetra.a(Epetra_LAPACK.cpp.o): In function `Epetra_LAPACK::GGSVD(char, char, char, int, int, int, int*, int*, double*, int, double*, int, double*, double*, double*, int, double*, int, double*, int, double*, int*, int*) const':
Epetra_LAPACK.cpp:(.text+0x1485): undefined reference to `dggsvd_'
/usr/local/lib/libepetra.a(Epetra_LAPACK.cpp.o): In function `Epetra_LAPACK::GGSVD(char, char, char, int, int, int, int*, int*, float*, int, float*, int, float*, float*, float*, int, float*, int, float*, int, float*, int*, int*) const':
Epetra_LAPACK.cpp:(.text+0x1565): undefined reference to `sggsvd_'
collect2: error: ld returned 1 exit status
Source/svFSI/CMakeFiles/svFSI.dir/build.make recipe for target 'bin/svFSI' failed
make[2]: *** [bin/svFSI] Error 1
CMakeFiles/Makefile2:440: recipe for target 'Source/svFSI/CMakeFiles/svFSI.dir/all' failed
make[1]: *** [Source/svFSI/CMakeFiles/svFSI.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I know this undefined reference to might mean that Epetra is not linked. What's the solution of it?
Thanks,
Yurui
I am installing the svFSI by source. After entering the Prefix_Path with Trilinos, and changing the compiler to gcc & g++, I ran make but met:
CMakeFiles/svFSI.dir/trilinos_linear_solver.cpp.o: In function `trilinos_lhs_create_':
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::Epetra_MpiComm(int)'
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
/home/yurui/software/svFSI/svFSI-master/Code/Source/svFSI/trilinos_linear_solver.cpp:162: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
/usr/local/lib/libepetra.a(Epetra_LAPACK.cpp.o): In function `Epetra_LAPACK::GGSVD(char, char, char, int, int, int, int*, int*, double*, int, double*, int, double*, double*, double*, int, double*, int, double*, int, double*, int*, int*) const':
Epetra_LAPACK.cpp:(.text+0x1485): undefined reference to `dggsvd_'
/usr/local/lib/libepetra.a(Epetra_LAPACK.cpp.o): In function `Epetra_LAPACK::GGSVD(char, char, char, int, int, int, int*, int*, float*, int, float*, int, float*, float*, float*, int, float*, int, float*, int, float*, int*, int*) const':
Epetra_LAPACK.cpp:(.text+0x1565): undefined reference to `sggsvd_'
collect2: error: ld returned 1 exit status
Source/svFSI/CMakeFiles/svFSI.dir/build.make recipe for target 'bin/svFSI' failed
make[2]: *** [bin/svFSI] Error 1
CMakeFiles/Makefile2:440: recipe for target 'Source/svFSI/CMakeFiles/svFSI.dir/all' failed
make[1]: *** [Source/svFSI/CMakeFiles/svFSI.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I know this undefined reference to might mean that Epetra is not linked. What's the solution of it?
Thanks,
Yurui