I'm trying to install CLAPACK using a custom BLAS. My machine is a Pentium III running Ubuntu 7.04 (Feisty).
I started out following the instructions in the README.install document. CLAPACK appeared to install fine using the reference BLAS library (make blaslib) so I decided to try an optimized BLAS.
Following the instructions here, I was able to install ATLAS with a full LAPACK 3.1.1 library.
At this point, I wondered whether it was necessary to install CLAPACK since I now already had a LAPACK library compiled. However, I decided to soldier on since I wanted to run an old program written in C that included "blaswrap.h", "f2c.h", and "clapack.h".
So I did the following:
then tried to edit my CLAPACK's make.inc file to reflect the new BLAS:
BLASLIB = ../../libcblaswr.a -l/usr/local/atlas/lib/libcblas.a -l/usr/local/atlas/libatlas.a
However, when I go to BLAS/TESTING and run
make -f Makeblat2
I get the following result:
gcc -O3 -c sblat2.c
gcc sblat2.o \
../../libcblaswr.a -l/usr/local/atlas/lib/libcblas.a -l/usr/local/atlas/libatlas.a ../../F2CLIBS/libf2c.a -lm -o ../xblat2s
/usr/bin/ld: cannot find -l/usr/local/atlas/lib/libcblas.a
collect2: ld returned 1 exit status
make: *** [../xblat2s] Error 1
Any suggestions on what could be wrong here? I thought perhaps I am referencing the wrong libraries, or perhaps there could be something wrong with permissions (everything in /usr/local/atlas/lib is 0644, owner/group are root/root), or maybe weirdness with library path settings (had some trouble when doing the ATLAS install and ended up having to mess around with LD_LIBRARY_PATH.
Thanks for your help!