Skip to content

Buidling R on Linux (Itanium) fails (PR#7897)

3 messages · Bader@lrz.de, Christophe Pouzat, Ei-ji Nakama

#
Full_Name: Reinhold Bader
Version: 2.1.0
OS: SLES 9
Submission from: (NULL) (129.187.48.1)


I tried to build R using the Intel compilers (icc, ifort) and the Math Kernel
Libraries
for BLAS/LAPACK

Optimizations used were -O3, and the 
FPICFLAGS="-fpic"
was exported.

The build failed with the following error message:
...
dumping R code in package 'methods'
Saving namespace image ...
initializing class and method definitions now ...Error in
makePrototypeFromClassDef(properties, ClassDef, immediate, where) :
        in making the prototype for class "SClassExtension" elements of the
prototype failed to match the corresponding slot class: coerce (class
?character? ), test (class ?character? ), replace (class ?character? ), simple
(class ?character? ), dataPart (class ?character? )
Error: .onLoad failed in 'loadNamespace' for 'methods'
Execution halted

I am not a R specialist; how do I continue from here?
make[4]: *** [../..
#
Hi,

here is the "configure" command line I used for an Intel PIV processor 
with icc, ifort and the intel mkl:

./configure CC=icc CFLAGS="-O2 -mp -prec_div" F77=ifort CXX=icc 
CXXFLAGS="-O2 -mp -prec_div" FFLAGS="-C90 -w90 -w95 -mp -prec_div" 
CPICFLAGS=-shared CXXPICFLAGS=-shared FPICFLAGS=-shared 
SHLIB_LDFLAGS=-shared SHLIB_CXXLDFLAGS=-shared --with-blas="-lmkl_lapack 
-lmkl -lguide -lpthread"

In my experience using "FPICFLAGS=-shared" is mendatory to get the 
compilation working. The other options are mainly there to pass almost 
all the tests (except one) of "make check".

Xtof.
Bader@lrz.de wrote:

            

  
    
#
I did not use MKL, but there was a problem to Intel compiler. 
An as follows memo at that time. 
Because there is not yet an option restraining an exception in C++ of
IA64, icpc is not usable.

http://www.nakama.ne.jp/memo/ia64_linux/

--
e-mail : EIJI Nakama <nakama@ki.rim.or.jp>