LAPACK Archives

[Lapack] how to build shared library libblas.so using refblas?

This question has been answed on the Lapack forum.
See https://icl.cs.utk.edu/lapack-forum/viewtopic.php?p=1246#1246 for  
more info.

Julie Langou
On Apr 2, 2007, at 8:46 PM, Xiaoyong Guo wrote:

In make.inc, I added
   NOOPT = -fPIC

In Makefile, I appended libblas.so to the "all:..." (line 58)
     all: $(BLASLIB) libblas.so
and right below the part

$(BLASLIB): $(ALLOBJ)
      $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
      $(RANLIB) $@

I added:
 libblas.so: $(ALLOBJ)
      cc -shared -Wl,-soname,libblas.so -o libblas.so $(ALLOBJ)

but I got following error messages:

isamax.o: In function `isamax_':
isamax.f:(.text+0x0): multiple definition of `isamax_'
isamax.o:isamax.f:(.text+0x0): first defined here
sasum.o: In function `sasum_':
sasum.f:(.text+0x0): multiple definition of `sasum_'
sasum.o:sasum.f:(.text+0x0): first defined here
saxpy.o: In function `saxpy_':
saxpy.f:(.text+0x0): multiple definition of `saxpy_'
saxpy.o:saxpy.f:(.text+0x0): first defined here
scopy.o: In function `scopy_':
scopy.f:(.text+0x0): multiple definition of `scopy_'
scopy.o:scopy.f:(.text+0x0): first defined here
snrm2.o: In function `snrm2_':
snrm2.f:(.text+0x0): multiple definition of `snrm2_'
snrm2.o:snrm2.f:(.text+0x0): first defined here
sscal.o: In function `sscal_':
sscal.f:(.text+0x0): multiple definition of `sscal_'
sscal.o:sscal.f:(.text+0x0): first defined here
idamax.o: In function `idamax_':
idamax.f:(.text+0x0): multiple definition of `idamax_'
idamax.o:idamax.f:(.text+0x0): first defined here
dasum.o: In function `dasum_':
dasum.f:(.text+0x0): multiple definition of `dasum_'
dasum.o:dasum.f:(.text+0x0): first defined here
daxpy.o: In function `daxpy_':
daxpy.f:(.text+0x0): multiple definition of `daxpy_'
daxpy.o:daxpy.f:(.text+0x0): first defined here
dcopy.o: In function `dcopy_':
dcopy.f:(.text+0x0): multiple definition of `dcopy_'
dcopy.o:dcopy.f:(.text+0x0): first defined here
dnrm2.o: In function `dnrm2_':
dnrm2.f:(.text+0x0): multiple definition of `dnrm2_'
dnrm2.o:dnrm2.f:(.text+0x0): first defined here
dscal.o: In function `dscal_':
dscal.f:(.text+0x0): multiple definition of `dscal_'
dscal.o:dscal.f:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [libblas.so] Error 1

I hope get some hint here,
thanks

Xiaoyong
_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.cs.utk.edu/listinfo/lapack

******************************
Julie Langou; Innovative Computing Laboratory; Computer Science Dept;
University of Tennessee from Denver, Colorado ;-)
julie@Domain.Removed; http://www.cs.utk.edu/~julie/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.cs.utk.edu/private/lapack/attachments/20070405/55161b1c/attachment-0001.htm
 

<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or