On 06/ 1/10 10:18 AM, François Bissey wrote:
It appears that building R with gcc on OpenSolaris may be impossible. I
can't get it to build, and the R manual

http://cran.r-project.org/doc/manuals/R-admin.html#Solaris

makes it clear nobody else has. It does however build (according to the R
manual at least), with Sun Studio.

Having to make both Sun Studio and gcc perquisites on OpenSolaris x64 seems
a bit annoying, but it may be the only option.

Sometimes mixing object files between gcc and Sun Studio on Solaris causes
problems, so potentially that would be problematic on OpenSolaris. (Trying
to build perl modules with gcc, when the Sun perl is built with Sun Studio
will rarely if ever work).

If R is only used as a command, then building with a mix of compilers will
certainly not cause problems.

Otherwise, I don't see any easy solution to this.

Hi Dave,

I cannot see any mention of R or any of its libs in modules_list.py.
There is a mention of R in setup.py but only in relation of debian.
The interface seem to be straightforward pexpect.
I think your plan would work.

Francois


Thank you Francois.

In the event nobody objects, I'd propose we make Sun Studio a perquisite on OpenSolaris on x64 hardware then. That will need some changes to 'prereq' to make sure it exists and probably make use of a couple of environment variables like SAGE_SUNSTUDIO_C_COMPILER and SAGE_SUNSTUDIO_FORTRAN_COMPILER.

It could get a bit messy, as R uses some Fortran and Sage uses 'sage_fortran' to compile Fortran programs, whereas the Sun version will be called f77, f90, f95 or whatever version best suites R. But it can be resolved.

But I don't see any other way if R will not build with gcc, and there are too many GNUisms to make building all of Sage with gcc practical in the short term.

Dave

--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to