[Dune] Failing to build DUNE with SuperLU
Markus Blatt
Markus.Blatt at ipvs.uni-stuttgart.de
Wed Apr 30 15:00:56 CEST 2008
Hi,
On Wed, Apr 30, 2008 at 10:48:10AM +0200, Uli Sack wrote:
> Hi!
>
> I fail to include the superLU library when building DUNE. I am at a loss
> what else I can do to make this work. Anyone have a solution?
>
sudo aptitude install libsuperlu3 libsuperlu3-dev, if there is no
particular reason for using a self-compiled version
> I work (or want to work) with a sequential SuperLU 3.0 compiled with
> cblas on my machine (Debian Etch).
>
Judging from configure.log there are problems finding blas functions
(e.g. dcopy) also -lblas is specified.
This is weired, because on your system this function is called dcopy_!
Are you sure, you compiled superlu correctly?
Have you tried it without dune??? (E.g compiled the stuff in the
SuperLU EXAMPLE and TESTING directories)
Cheers,
Markus
>[...]
>
> configure:28087: checking for sgemm_ in -lblas
> configure:28155: result: yes
> configure:28471: checking slu_ddefs.h usability
> configure:28488: g++-4.2.2 -c -g -O3 -funroll-loops -I../../SuperLU_3.0/SRC conftest.cpp >&5
> configure:28494: $? = 0
> configure:28508: result: yes
> configure:28512: checking slu_ddefs.h presence
> configure:28527: g++-4.2.2 -E -I../../SuperLU_3.0/SRC conftest.cpp
> configure:28533: $? = 0
> configure:28547: result: yes
> configure:28580: checking for slu_ddefs.h
> configure:28588: result: yes
> configure:28703: checking static superlu library "libsuperlu_3.0.a" in "../../SuperLU_3.0/"
> configure:28707: checking for dgssvx
> configure:28771: g++-4.2.2 -o conftest -g -O3 -funroll-loops -I../../SuperLU_3.0/SRC -L../../SuperLU_3.0/ conftest.cpp ../../SuperLU_3.0//libsuperlu_3.0.a -lblas -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lfrtbegin -lg2c -lm >&5
> ../../SuperLU_3.0//libsuperlu_3.0.a(dgsrfs.o): In function `dgsrfs':
> dgsrfs.c:(.text+0x4c1): undefined reference to `dcopy'
> dgsrfs.c:(.text+0x710): undefined reference to `daxpy'
> ../../SuperLU_3.0//libsuperlu_3.0.a(dlacon.o): In function `dlacon':
> dlacon.c:(.text+0xd4): undefined reference to `dasum'
> dlacon.c:(.text+0x11a): undefined reference to `dcopy'
> dlacon.c:(.text+0x138): undefined reference to `dasum'
> dlacon.c:(.text+0x200): undefined reference to `dasum'
> dlacon.c:(.text+0x476): undefined reference to `idamax'
> dlacon.c:(.text+0x4bf): undefined reference to `idamax'
> dlacon.c:(.text+0x5a7): undefined reference to `dcopy'
> ../../SuperLU_3.0//libsuperlu_3.0.a(dsp_blas2.o): In function `sp_dtrsv':
> dsp_blas2.c:(.text+0xbbe): undefined reference to `dtrsv'
> dsp_blas2.c:(.text+0xdf9): undefined reference to `dtrsv'
> collect2: ld returned 1 exit status
> configure:28777: $? = 1
More information about the Dune
mailing list