[Lapackpp-devel] Problem building lapackpp under SLES10SP2 (X86_64)
Status: Beta
Brought to you by:
cstim
|
From: Dr.Peer-Joachim K. <pk...@bg...> - 2010-11-04 09:44:19
|
Hi,
I just downloaded the source set the comipler to gcc, g++ and gfortran
made a configure and try to build it.
The linking step fails.
Everything was build with "-fPIC".
Any idea what's wrong ?
Building with pgi (all compilers) "seems" to work, but there is now
shared lib created, just the static one.
Bye, Peer
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I../include -I../include -I../include -DLA_COMPLEX_SUPPORT
-DLinux -g -O2 -Wall -MT systime.lo -MD -MP -MF
".deps/systime.Tpo" -c -o systime.lo systime.c; \
then mv -f ".deps/systime.Tpo" ".deps/systime.Plo"; else rm -f
".deps/systime.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include
-I../include -DLA_COMPLEX_SUPPORT -DLinux -g -O2 -Wall -MT systime.lo
-MD -MP -MF .deps/systime.Tpo -c systime.c -fPIC -DPIC -o .libs/systime.o
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -o
liblapackpp.la -rpath /usr/local/apps/lapackpp/2.5.3/lib -no-undefined
-version-info 16:0:2 dopla.lo dtimmg.lo eigslv.lo genmd.lo laprefs.lo
lasvd.lo lautil.lo linslv.lo systime.lo ../matrix/src/liblamatrixpp.la
../blaspp/src/libblaspp.la -llapack -lblas
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.. -lgfortran -lm -lgcc_s
g++ -shared -nostdlib
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crti.o
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginS.o .libs/dopla.o
.libs/dtimmg.o .libs/eigslv.o .libs/genmd.o .libs/laprefs.o
.libs/lasvd.o .libs/lautil.o .libs/linslv.o .libs/systime.o
-Wl,--whole-archive ../matrix/src/.libs/liblamatrixpp.a
../blaspp/src/.libs/libblaspp.a -Wl,--no-whole-archive -Wl,--rpath
-Wl,/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -Wl,--rpath
-Wl,/usr/lib64/gcc/x86_64-suse-linux/4.1.2 -llapack -lblas
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/lib
-L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../.. -lgfortran
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/libstdc++.so -lm -lc -lgcc_s
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtendS.o
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/crtn.o
-Wl,-soname -Wl,liblapackpp.so.14 -o .libs/liblapackpp.so.14.2.0
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/liblapack.a(dgeev.i):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../lib64/liblapack.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [liblapackpp.la] Fehler 1
make[2]: Leaving directory `/tmp/lapackpp-2.5.3/src'
--
Mit freundlichem Gruß
Peer-Joachim Koch
_________________________________________________________
Max-Planck-Institut fuer Biogeochemie
Dr. Peer-Joachim Koch
Hans-Knöll Str.10 Telefon: ++49 3641 57-6705
D-07745 Jena Telefax: ++49 3641 57-7705
|