Louisell, Paul
2007-Aug-31 06:43 UTC
[R] Studio 11 compiling of Rmath standalone versus compiling R
Hi, I have a UNIX-Solaris-Sparc-Studio 11 compilers question. Since it's not exactly a programming question, I'm posting it here instead of to the developers list. Here's the relevant info: 1) I'm using SunOS 5.9 on a 32 bit machine without parallel processing. The chip is Sparc. 2) I've installed the Sun Studio 11 compilers. 3) I've successfully built and tested R 2.5.1 with Studio 11--all the make checks were successful as were my own tests. 4) The README to the Rmath standalone library warns that mlutils.c _cannot_ be compiled with Sun's cc compiler because it can't do compile-time floating point arithmetic. This is confirmed by the output I get when I run the make (after the full R package was built and installed): (cd ../../include; make Rmath.h) `Rmath.h' is up to date. Copying source files cc -I. -I../../../src/include -I../../../src/include -I./.. -I/usr/local/include -DHAVE_CONFIG_H -DMATHLIB_STANDALONE -g -c mlutils.c -o mlutils.o /usr/ucb/cc: language optional software package not installed *** Error code 1 make: Fatal error: Command failed for target `mlutils.o' Current working directory /export/home/ploua/R_HOME/R-2.5.1/src/nmath/standalone *** Error code 1 make: Fatal error: Command failed for target `static' 5) My question: Why does the full R package compile and run without difficulty using the same Studio 11 compilers? I'd like to be able to build the Rmath standalone library without mixing compilers on this machine, i.e., I don't want to use gcc and Studio 11 together. Is there some way to get Studio 11 to compile the standalone library by altering the makefile? Thanks for any advice/explanation people can offer. I'm a newcomer to compiling code on UNIX. Paul Louisell 650-833-6254 ploua@allstate.com Associate Predictive Modeler (Statistician) Modeling & Data Analytics ARPC [[alternative HTML version deleted]]