[Rd] Problem building R with Sun Studio Compiler

Len Zaifman leonardz at sickkids.ca
Mon Jul 16 18:17:06 CEST 2007


I would like to Build R-2.5.1 on OpenSUSE 10.2 using the SunStudio 12
compilers(http://developers.sun.com/sunstudio/index.jsp)

R builds and passes make check fine without optimising. However, when I try to compile with optimisation turned on
(-fast) the build gets stuck in an infinite loop  at the following point:

Sun_Studio/sunstudio12/bin/cc -m64 -shared -Kpic   -m64 -fPIC  -o grDevices.so chull.o devNull.o devPicTeX.o devPS.o
devQuartz.o init.o
mkdir -p -- ../../../../library/grDevices/libs
make[5]: Leaving directory `/export/home/leonardz/ccb/HPF/support/R-2.5.1/ss12/R-2.5.1/src/library/grDevices/src'
make[4]: Leaving directory `/export/home/leonardz/ccb/HPF/support/R-2.5.1/ss12/R-2.5.1/src/library/grDevices/src'

R is running at this point and will run for as long as I do not kill it. If I compile without    -fast the next line
in the make is:



make[3]: Entering directory `/export/home/leonardz/ccb/HPF/support/R-2.5.1/ss12/R-2.5.1/src/library/graphics'

and the entire package builds and make check verifies correctly. Any ideas on why this is happening?

The build works fine for gcc as well.

-- 
Len Zaifman
Systems Manager, Supercomputing Systems
Centre for Computational Biology
Hospital for Sick Children
Toronto, Ont. M5G 1X8
leonardz at sickkids.ca
(416)813-5513



More information about the R-devel mailing list