[Rd] Compiling R-2.8.1 on Sparc Solaris 10: libRlapack.so: symbol __vlog_: referenced symbol not found

Mohammad Nikseresht mniksere at scs.carleton.ca
Thu Mar 12 20:03:57 CET 2009


Problem was solved by adding "-lmvec" to FLIBS in Makeconf.
__vlog_ is part of libmvec.so but apparently configure does not chose 
the proper option (-lmvec).

--
Mohammad Nikseresht
Software/System Engineer
HPCVL, Carleton University
mniksere at scs.carleton.ca
613-520-2600 x8758



Prof Brian Ripley wrote:
> Please try the options recommended in the R-admin manual: these do not 
> include using sunperf.
> 
> But if you want to choose your own options, ask your local Solaris help 
> as this is not an R issue.
> 
> On Wed, 11 Mar 2009, Mohammad Nikseresht wrote:
> 
>> Hi,
>>
>> I am compiling R2.8.1 on a Sun M4000 machine with Solaris 10.
>> I am using Sun Studio 12.
>> I get the following error:
>>
>> cc -xtarget=native64 -G -L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9 
>> -o grDevices.so chull.o devNull.o devPicTeX.o devPS.o devQuartz.o init.o
>> mkdir ../../../../library/grDevices/libs
>> Warning in solve.default(rgb) :
>>  unable to load shared library 
>> '/export/admin-home/nikser/R-2.8.1/modules//lapack.so':
>>  ld.so.1: R: fatal: relocation error: file 
>> /export/admin-home/nikser/R-2.8.1/lib/libRlapack.so: symbol __vlog_: 
>> referenced symbol not found
>> Error in solve.default(rgb) : lapack routines cannot be loaded
>> Error: unable to load R code in package 'grDevices'
>> Execution halted
>> *** Error code 1
>> The following command caused the error:
>> echo "tools:::makeLazyLoading(\"grDevices\")" | \
>>  R_DEFAULT_PACKAGES=NULL LC_ALL=C ../../../bin/R --vanilla --slave > 
>> /dev/null
>> make: Fatal error: Command failed for target `all'
>> Current working directory 
>> /export/admin-home/nikser/R-2.8.1/src/library/grDevices
>>
>> I set the following environment variables:
>>
>> export LDFLAGS="-L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9"
>> export CFLAGS="-I/usr/sfw/include -I/opt/csw/include"
>> export R_PAPERSIZE=letter
>> export CC="cc -xtarget=native64"
>> export FC="f95 -xtarget=native64"
>> export CXX="CC -xtarget=native64"
>> export CPPFLAGS="-I/usr/sfw/include -I/opt/csw/include"
>> export CFLAGS="-O -xlibmieee"
>> export F77="f95 -xtarget=native64"
>> export CXXFLAGS=-O
>> export FFLAGS="-O4 -xlibmopt -libmil -xvector=lib -fround=nearest"
>> export FCFLAGS=$FFLAGS
>> export LDFLAGS="-L/usr/sfw/lib/sparcv9 -L/opt/csw/lib/sparcv9"
>> export SHLIB_CXXLDFLAGS="-G -lCstd"
>> export BLAS_LIBS=-xlic_lib=sunperf
>> export LIBS="-lmvec"
>> export SHLIB_CFLAGS=-lmvec
>>
>> and:
>>
>> ./configure --prefix=/opt/R-2.8.1 --enable-threads=solaris --with-blas
>>
>> Could you please help me to pinpoint the problem.
>>
>> Thanks
>> -- 
>> Mohammad
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>



More information about the R-devel mailing list