[Rd] Building R-alpha with ATLAS libraries?

M. Edward (Ed) Borasky znmeb at cesmail.net
Thu Mar 26 15:15:24 CET 2009


I'm trying to build R-alpha using the ATLAS libraries as described in
the R-admin manual, section A.3.1.1 (BLAS) and A.3.2 (LAPACK). I built
ATLAS with LAPACK as described in the ATLAS documentation, and the
ATLAS version is the latest, 3.9.10. The platform is openSUSE 11.1
x86_64 with GCC 4.3.2.

"configure" is finding the ATLAS BLAS all right, but it is not finding
the ATLAS LAPACK. The configure command string is

./configure --enable-threads --disable-R-profiling \
  --with-blas="-L/usr/local/atlas/lib -lptf77blas -lpthread -latlas" \
  --with-lapack="-L/usr/local/atlas/lib -llapack -lptcblas" \
  --with-tcltk --with-cairo --with-libpng --with-jpeglib --with-x \
  2>&1 | tee ../R-alpha-config.log

Here's what's in the "R-alpha-config.log" file when it gets to the
library check part:

checking for dgemm_ in -L/usr/local/atlas/lib -lptf77blas -lpthread
-latlas... yes
checking whether double complex BLAS can be used... yes
checking whether the BLAS is complete... yes
checking for zgeev_... no
checking for zgeev_ in -L/usr/local/atlas/lib -llapack -lptcblas... no
checking for zgeev_ in -llapack... no

I looked in "R-alpha/config.log" and it looks like "configure" is not
searching the right libraries for "zgeev_":

configure:38501: checking for zgeev_
configure:38565: gcc -std=gnu99 -o conftest -O3 -march=native -g -pipe
 -I/usr/local/include  -L/usr/local/lib64 conftest.c
-L/usr/local/atlas/lib -lptf77blas -lpthread -latlas  -lgfortran -lm
-ldl -lm  >&5
/tmp/ccETmjPn.o: In function `main':
/home/Projects/linux_perf_viz/build-scripts/R-alpha/conftest.c:218:
undefined reference to `zgeev_'
collect2: ld returned 1 exit status
configure:38571: $? = 1

I checked the ATLAS libraries and "zgeev_" is there. Did I miss
something in the "configure" parameters?
-- 
M. Edward (Ed) Borasky
http://www.linkedin.com/in/edborasky

I've never met a happy clam. In fact, most of them were pretty steamed.



More information about the R-devel mailing list