[Dune] Failing to build DUNE with SuperLU

Uli Sack usack at math.fu-berlin.de
Fri May 2 11:06:11 CEST 2008


Markus Blatt wrote:
> RTFM of SuperLU and add
> 
> CDEFS        = -DAdd_
> 
> to make.inc there.

I did Read The F*** Manual. But -DNoChange was the only way I could get 
SuperLU to compile. -DAdd_ as well as -DAdd__ results in undefined 
references:

sp_sget02.o: In function `sp_sget02':
sp_sget02.c:(.text+0x149): undefined reference to `sasum_'
sp_sget02.c:(.text+0x162): undefined reference to `sasum_'
sp_sget04.o: In function `sp_sget04':
sp_sget04.c:(.text+0xab): undefined reference to `isamax_'
sp_sget07.o: In function `sp_sget07':
sp_sget07.c:(.text+0xde): undefined reference to `isamax_'
libtmglib.a(slatms.o): In function `slatms_':
slatms.c:(.text+0x825): undefined reference to `sscal_'
slatms.c:(.text+0x96d): undefined reference to `scopy_'
slatms.c:(.text+0x1459): undefined reference to `scopy_'
slatms.c:(.text+0x1934): undefined reference to `scopy_'
slatms.c:(.text+0x2025): undefined reference to `scopy_'
libtmglib.a(slagge.o): In function `slagge_':
slagge.c:(.text+0x1ed): undefined reference to `snrm2_'
slagge.c:(.text+0x2b7): undefined reference to `sgemv_'
slagge.c:(.text+0x336): undefined reference to `sger_'
slagge.c:(.text+0x396): undefined reference to `snrm2_'
slagge.c:(.text+0x45a): undefined reference to `sgemv_'
slagge.c:(.text+0x4d3): undefined reference to `sger_'
slagge.c:(.text+0x5e5): undefined reference to `snrm2_'
slagge.c:(.text+0x6da): undefined reference to `sgemv_'
slagge.c:(.text+0x768): undefined reference to `sger_'
slagge.c:(.text+0x7e6): undefined reference to `snrm2_'
slagge.c:(.text+0x8cc): undefined reference to `sgemv_'
[...] and so on


Now trying it with the preinstalled BLAS-lib. But doesn't seem to be 
working either:
/usr/lib/libblas-3.a(xerbla.o): In function `xerbla_':
(.text+0xd0): multiple definition of `xerbla_'
../libsuperlu_3.0.a(xerbla.o):xerbla.c:(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `xerbla_' changed from 38 in 
../libsuperlu_3.0.a(xerbla.o) to 57 in /usr/lib/libblas-3.a(xerbla.o)
collect2: ld returned 1 exit status
make[1]: *** [stest] Fehler 1

 > Or tell dune to use the right blas (the one you used to compile
 > SUPERLU with) by passing the lib via the configure flag
 >
 > --with-blas=<lib>       use BLAS library <lib>

--with-blas=../../SuperLU_3.0/blas_linux.a gibt dieselben Probleme wie 
ursprünglich

 > Have you tried it without dune??? (E.g compiled the stuff in the
 > SuperLU EXAMPLE and TESTING directories)

TESTING compiles. EXAMPLE doesn't :-(
More undefined references.

Now, as this seems to be a problem with my SuperLU and not 
Dune-with-SuperLU I guess this is the wrong place for my questions. 
Thanks for the help anyway,

So long,
Uli

-- 
************************************************************************
* Uli Sack                     ** email: usack at math.fu-berlin.de       *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75250           *
* Institut für Mathematik      **                                      *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************




More information about the Dune mailing list