[R] Problem with R using pgi compiler on x86_64
Dr.Peer-Joachim Koch
pkoch at bgc-jena.mpg.de
Wed Feb 11 16:33:01 CET 2009
Hi,
thanks. I didn't saw the answer from pgi.
But when I change the settings in R_HOME/etc/Makeconf
the system is still using the old settings.
How can I force R to use the new settings and check it ?
Bye, Peer
Brian D Ripley wrote:
> I don't see anything in there that asks for a shared library to be
> built. Please check R_HOME/etc/Makeconf: I believe you need
>
> SHLIB_CXXLDFLAGS = -shared
> (and I checked, and I do see that in the PGI section of the R-admin
> manual: so plese check your other settings too).
>
> (BTW, googling shows
>
> https://www.pgroup.com/userforum/viewtopic.php?p=5170&sid=d3b7c949dc63785a722c1d3488b9440e
>
>
> and the same answer.)
>
> On Wed, 11 Feb 2009, Dr.Peer-Joachim Koch wrote:
>
>> Hi,
>>
>> we have installed R-2.8.1 using the current pgi compiler (8.0.2) for
>> AMD64 on a SLES9 system.
>>
>> When I try to install "Matrix" everything is fine until the last step.
>>
>>
>> make[1]: Leaving directory `/tmp/R.INSTALL.TW3399/Matrix/src/AMD'
>> pgCC -L/usr/lib64 -L/usr/X11R6/lib64 -pgf90libs -o Matrix.so
>> CHMfactor.o Csparse.o TMatrix_as.o Tsparse.o init.o Mutils.o
>> chm_common.o cs.o cs_utils.o dense.o dgCMatrix.o dgTMatrix.o
>> dgeMatrix.o dpoMatrix.o dppMatrix.o dsCMatrix.o dsyMatrix.o
>> dspMatrix.o dtCMatrix.o dtTMatrix.o dtrMatrix.o dtpMatrix.o
>> factorizations.o ldense.o lgCMatrix.o sparseQR.o SPQR.a CHOLMOD.a
>> COLAMD.a AMD.a -L/usr/local/apps/R/R-2.8.1/lib64/R/lib -lRlapack
>> -lRblas -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc
>> -lpgc -lrt -lpthread -lm -pgf90libs
>> /usr/lib64/crt1.o(.text+0x21): In function `_start':
>> ../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
>> CHMfactor.o(.text+0x28): In function `CHMfactor_to_sparse':
>> /tmp/R.INSTALL.TW3399/Matrix/src/CHMfactor.c:5: undefined reference to
>> `R_CheckStack'
>> CHMfactor.o(.text+0xa5):/tmp/R.INSTALL.TW3399/Matrix/src/CHMfactor.c:14:
>> undefined reference to `Rf_error'
>> CHMfactor.o(.text+0xe5):/tmp/R.INSTALL.TW3399/Matrix/src/CHMfactor.c:14:
>> undefined reference to `R_NilValue'
>>
>>
>> Other modules worked and could be compiled without any problems.
>>
>> Any idea ??
>>
>>
>> --
>> Bye,
>> Peer
>> _________________________________________________________
>> Max-Planck-Institut fuer Biogeochemie
>> Dr. Peer-Joachim Koch
>> Hans-Knöll Str.10 Telefon: ++49 3641 57-6705
>> D-07745 Jena Telefax: ++49 3641 57-7705
>>
>
--
Mit freundlichem Gruß
Peer-Joachim Koch
_________________________________________________________
Max-Planck-Institut fuer Biogeochemie
Dr. Peer-Joachim Koch
Hans-Knöll Str.10 Telefon: ++49 3641 57-6705
D-07745 Jena Telefax: ++49 3641 57-7705
More information about the R-help
mailing list