Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

failed to compile R: compiler error "ube: error"

807736Jul 24 2008 — edited Jul 25 2008
hello all,
i'm trying to compile R http://www.r-project.org/ on a Sun V40z, Solaris 10 U5 + Sun Studio 12 fully patched.
I got this error:
cc -xc99 -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre -I. -I../../src/include -I../../src/include -I/opt/csw/include -DHAVE_CONFIG_H -O -xlibmieee -c saveload.c -o saveload.o
"saveload.c", [RemakeNextSEXP]:ube: error: Assert has been violated at '/set/mars_patch/builds.intel-S2/build.0422/intel-S2/lang/ube/opt/src/cfg.c 9238'.
cc: ube failed for saveload.c


In the R admin document, people said that:
"R has been built successfully on Solaris 10 (both Sparc and �x86�) using gcc 3/g77,
gcc 4/gfortran and the (zero cost) Sun Studio 11/12 compilers."

i don't know how they did, but i'm using this environment to compile (every missing lib comes from Blastwave):
#!/bin/bash
PATH=/usr/local/wrapper/bin:/opt/studio12/SUNWspro/bin:/opt/SUNWhpc/bin:/usr/ccs/bin:/opt/csw/bin:/usr/bin; export PATH

# parametres donnes dans le R-admin, annexe $C.4.1
CC="cc -xc99"
export CC
CPPFLAGS=-I/opt/csw/include
export CPPFLAGS
CFLAGS="-O -xlibmieee"
export CFLAGS
F77=f95
export F77
#FFLAGS=-O4
FFLAGS="-O5 -libmil -nofstore"
export FFLAGS
CXX=CC
export CXX
#CXXFLAGS=-O
CXXFLAGS="-xO5 -xlibmil -nofstore"
export CXXFLAGS
FC=f95
export FC
FCFLAGS=$FFLAGS
export FCFLAGS
LDFLAGS=-L/opt/csw/lib
export LDFLAGS
SHLIB_CXXLDFLAGS="-G -lCstd"
export SHLIB_CXXLDFLAGS
FLAGS="-xO5 -xc99 -xlibmieee -xlibmil -nofstore"
export FLAGS
SAFE_FFLAGS="-O5 -libmil -fstore"
export SAFE_FFLAGS

./configure --prefix=$HOME/R-2.6.1_ss12 \
-with-blas=sunperf --with-lapack \
--with-tcl-config=/opt/csw/lib/tclConfig.sh \
--with-tk-config=/opt/csw/lib/tkConfig.sh

make

Any chance to have R compiled with SS12?

Thanks in advance for help,

gerard
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2008
Added on Jul 24 2008
6 comments
243 views