Skip to content

make fails with Sun Forte compiler (PR#6815)

4 messages · rsparapa at mcw.edu, Brian Ripley

#
Full_Name: rodney sparapani
Version: 1.9.0
OS: Solaris 9
Submission from: (NULL) (141.106.120.97)


I'm following the instructions for the Sun Forte compiler.  I had success with
1.8.1 so I think the compiler settings are correct (config.site):
     CC="cc -xarch=v8plusa"
     CFLAGS="-xO5 -xlibmil -dalign"
     F77="f95 -xarch=v8plusa"
     FFLAGS="-xO5 -xlibmil -dalign"
     CXX="CC -xarch=v8plusa"
     CXXFLAGS="-xO5 -xlibmil -dalign"
Actually, there is one thing that I didn't specify above, but I'm not sure how. 
The Sun Performance library is a BLAS library.  In LAPACK, you specify it as 
BLASLIB     ="-xlic_lib=sunperf"
Is there a simple way to specify that in config.site?  Anyways, that's probably
not the problem that I'm having, but if you have any advice...  
Here's the real problem, make fails at:
MAKE="make" R_LIBS= ../../../bin/R CMD INSTALL -l ../../../library foreign.tgz
* Installing *source* package 'foreign' ...
checking for gcc... make[3]: Entering directory `/tmp/R.INSTALL.8673/foreign'
cc -xarch=v8plusa
make[3]: Leaving directory `/tmp/R.INSTALL.8673/foreign'
checking for C compiler default output... configure: error: C compiler cannot
create executables
See `config.log' for more details.
error: configuration failed for package 'foreign': No such file or directory for
reading errors.
** Removing '/fw/src/R/R-1.9.0/library/foreign'
make[2]: *** [foreign.ts] Error 1
make[2]: Leaving directory `/fw/src/R/R-1.9.0/src/library/Recommended'
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory `/fw/src/R/R-1.9.0/src/library/Recommended'
make: *** [stamp-recommended] Error 2

foreign seems to be having a compiler problem that other recommended packages
did not.  Any ideas?
#
The instructions in R-admin *have* been tested.  It does tell you how to 
specify the sunperf BLAS, so please read it -- it probably even selects it 
by default.

I don't see any evidence of a bug in R here, rather of a problem in your 
setup.  Please seek local advice. My suspicion is that you want 
"-xarch=v8plusa" in CFLAGS and not in CC.

You might want to try untaring foreign and installing it, then looking at 
config.log.

Please ask questions on R-help not R-bugs: the R FAQ explains rather 
plainly when R-bugs is appropriate.
On Fri, 23 Apr 2004 rsparapa@mcw.edu wrote:

            

  
    
#
Why is this a bug report.  The instruction in R-admin work here with Sun 
Forte compilers.  However, you did not follow them.
On Fri, 23 Apr 2004 rsparapa@mcw.edu wrote:

            

  
    
#
Sorry, sent in error: this was an earlier draft that got interrupted and I
have already sent a more complete answer.
On Sat, 24 Apr 2004, Prof Brian Ripley wrote:

            
That means the CC etc are different from those in R-admin.