[R] Compiling R, cannot open vars.mk

Arne Gjuvsland arne.gjuvsland at cigene.no
Tue Jan 20 15:56:46 CET 2004


Using GNU make solved the first problem, but now I got into trouble
with a shared library lapack.so. I found a thread in the mailing list 
concerning this problem where it was suggested that I try dyn.load from R
or the ldd on lapack.so I did that. The results are pasted under.

Arne

 >./configure CC=cc CXX=cxx F77=f77 MAKE=gmake 
SHLIB_CXXLDFLAGS=-L/lib/cmplrs/cxx --prefix=/home/gjuvslan/R-1.8.1 --with-x
 >gmake

Using gmake check I get the following problem:
 >gmake check
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
329640:/home/gjuvslan/R-1.8.1/bin/R.bin: /sbin/loader: Fatal Error: call to 
unresolved symbol from /home/gjuvslan/R-1.8.1/modules/lapack.so 
(pc=0x3ffbfde341c)
gmake[3]: *** [reg-tests-1.Rout] Error 1
gmake[2]: *** [test-Reg] Error 2
gmake[1]: *** [test-all-basics] Error 1
gmake: *** [check] Error 2
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


 > dyn.load("modules/lapack.so")
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error in dyn.load(x, as.logical(local), as.logical(now)) :
         unable to load shared library 
"/home/gjuvslan/R-1.8.1/bin/modules/lapack.so":
   dlopen: Can't open needed library: 
/home/gjuvslan/R-1.8.1/bin/modules/lapack.so
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


 >ldd -r lapack.so: (./modules/)
--------------------------------------------------------------------------------------------------------------------------------------------------
345322:lapack.so: ldd: Fatal Error: Cannot generate dynamic dependencies 
for library libRlapack.so
--------------------------------------------------------------------------------------------------------------------------------------------------


 >ldd -r libRlapack.so (./bin og  ./src/modules/lapack)
--------------------------------------------------------------------------------------------------------------------------------------------------
ldd -r libRlapack.so
Unresolved symbol in libRlapack.so: dsymv_
Unresolved symbol in libRlapack.so: dgemm_
Unresolved symbol in libRlapack.so: dtpsv_
Unresolved symbol in libRlapack.so: drot_
Unresolved symbol in libRlapack.so: xerbla_
Unresolved symbol in libRlapack.so: dtrmv_
Unresolved symbol in libRlapack.so: dspr2_
Unresolved symbol in libRlapack.so: dtbsv_
Unresolved symbol in libRlapack.so: daxpy_
Unresolved symbol in libRlapack.so: zgemm_
Unresolved symbol in libRlapack.so: dsyr2_
Unresolved symbol in libRlapack.so: dsyr2k_
Unresolved symbol in libRlapack.so: dnrm2_
Unresolved symbol in libRlapack.so: dsymm_
Unresolved symbol in libRlapack.so: ddot_
Unresolved symbol in libRlapack.so: dtrsm_
Unresolved symbol in libRlapack.so: dtbmv_
Unresolved symbol in libRlapack.so: dasum_
Unresolved symbol in libRlapack.so: dcopy_
Unresolved symbol in libRlapack.so: dgemv_
Unresolved symbol in libRlapack.so: dger_
Unresolved symbol in libRlapack.so: dswap_
Unresolved symbol in libRlapack.so: dscal_
Unresolved symbol in libRlapack.so: idamax_
Unresolved symbol in libRlapack.so: dsbmv_
Unresolved symbol in libRlapack.so: dsyr_
Unresolved symbol in libRlapack.so: dsyrk_
Unresolved symbol in libRlapack.so: dspmv_
Unresolved symbol in libRlapack.so: dspr_
Unresolved symbol in libRlapack.so: dtrmm_
Unresolved symbol in libRlapack.so: dtpmv_
Unresolved symbol in libRlapack.so: dgbmv_
Unresolved symbol in libRlapack.so: dtrsv_
Unresolved symbol in libc.so: __ldr_data
Unresolved symbol in libc.so: __Argc
Unresolved symbol in libc.so: __Argv

         Main  =>   libRlapack.so
         libUfor.so  =>   /usr/shlib/libUfor.so
         libfor.so  =>   /usr/shlib/libfor.so
         libFutil.so  =>   /usr/shlib/libFutil.so
         libm.so  =>   /usr/shlib/libm.so
         libots.so  =>   /usr/shlib/libots.so
         libm_c32.so  =>   /usr/shlib/libm_c32.so
         libexc.so  =>   /usr/shlib/libexc.so
         libc.so  =>   /usr/shlib/libc.so
------------------------------------------------------------------------------------------------------------


At 16:24 19.01.2004, Prof Brian Ripley wrote:
>On Mon, 19 Jan 2004, Arne Gjuvsland wrote:
>
> >
> > Hi!
> >
> > I am trying to compile R-1.8.1 on an alphaserver running Tru64 Unix.
> > I use the compilers cc,cxx and f77. After the compilation
> > I try: make check
> > and get the following message:
> >
> > Make: Cannot open /share/make/vars.mk.  Stop.
>
>Some context would have been very helpful.
>
> > Does anyone have any suggestions on why?
>
>Do you have R_HOME set (to an empty string)?
>
>Is this GNU make, and if not can you try GNU make?
>
>Otherwise, more information please, including if this is GNU make
>(probably not) and what directory make is working in (or at least the
>preceding 10 lines of output).
>
>--
>Brian D. Ripley,                  ripley at stats.ox.ac.uk
>Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
>University of Oxford,             Tel:  +44 1865 272861 (self)
>1 South Parks Road,                     +44 1865 272866 (PA)
>Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list