Compilation error

41 views
Skip to first unread message

Pedro Rodrigues

unread,
Nov 26, 2022, 9:33:29 AM11/26/22
to deal.II User Group
Hello

I am trying to build the library with your candi script but I got an error, apparently with a missing function from Trilinos library:

[ 75%] Linking CXX executable ../bin/step-1.debug
/usr/bin/ld: /root/dealii-candi/trilinos-release-13-2-0/lib/libepetra.so: undefined reference to `dggsvd_'
/usr/bin/ld: /root/dealii-candi/trilinos-release-13-2-0/lib/libepetra.so: undefined reference to `sggsvd_'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/CMakeFiles/step-1.debug.dir/build.make:249: bin/step-1.debug] Error 1
make[1]: *** [CMakeFiles/Makefile2:3998: examples/CMakeFiles/step-1.debug.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Failure with exit status: 2
Exit message: There was a problem building dealii v9.4.0.

can you help?

thanks in advance

Pedro R.


Wolfgang Bangerth

unread,
Nov 27, 2022, 6:20:19 PM11/27/22
to dea...@googlegroups.com
On 11/26/22 07:33, Pedro Rodrigues wrote:
>
> I am trying to build the library with your candi script but I got an error,
> apparently with a missing function from Trilinos library:
>
> [ 75%] Linking CXX executable ../bin/step-1.debug
> /usr/bin/ld: /root/dealii-candi/trilinos-release-13-2-0/lib/libepetra.so:
> undefined reference to `dggsvd_'
> /usr/bin/ld: /root/dealii-candi/trilinos-release-13-2-0/lib/libepetra.so:
> undefined reference to `sggsvd_'
> collect2: error: ld returned 1 exit status
> make[2]: *** [examples/CMakeFiles/step-1.debug.dir/build.make:249:
> bin/step-1.debug] Error 1
> make[1]: *** [CMakeFiles/Makefile2:3998:
> examples/CMakeFiles/step-1.debug.dir/all] Error 2
> make: *** [Makefile:136: all] Error 2

Pedro,
the missing functions are part of BLAS. It is a bug in Trilinos that it does
not make sure the BLAS library appears on the linker line, but I don't know
how to fix this. What kind of system are you on? Can you just install deal.II
from an existing package?

Best
W.

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


Pedro Rodrigues

unread,
Nov 28, 2022, 9:04:49 AM11/28/22
to dea...@googlegroups.com
Hello
I think I have solved the problem. I had a custom lapack installation in /usr/local/lib and Trilinos was picking that one instead of the version from *candi* at /usr/lib. After removing the first one I was able to build the library with *candi*. I noticed too many warnings related to casting from *void*. I hope that it doesn't create execution problems.
Another problem I have  found was related to *mpiexec*. It sends a warning about running as *root* and does not run. I had to add  two *export* lines in *.bashrc* to bypass it.
My system is UbuntuLTS 22.04 running in VBox.  

thanks for your quick reply

regards

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6e6c9529-cec5-133a-7deb-14c8800324fd%40colostate.edu.


--
atenciosamente,

Pedro Rodrigues
Reply all
Reply to author
Forward
0 new messages