[Rd] compiling on Solaris 7 (PR#1520)

Prof Brian D Ripley ripley@stats.ox.ac.uk
Tue, 7 May 2002 07:22:27 +0100 (BST)


On 6 May 2002, Peter Dalgaard BSA wrote:

> cjpelton@ucdavis.edu writes:
>
> > I am unable to compile R-1.5.0, and am getting the following errors with make. I
> > searched through
> > the buglist and didn't see anything similar, although I wouldn't doubt if I was
> > just
> > using the wrong version of something.
> >
> > gcc version 3.0.3
> >
> >
> >
> > gcc -I. -I../../src/include -I../../src/include -I/usr/local/include
> > -DHAVE_CONFIG_H   -g -O2 -c lbfgsb.c -o lbfgsb.o
> > /usr/ccs/bin/as: "/var/tmp/ccBVo80F.s", line 12970: error: unknown opcode
> > ".subsection"
> > /usr/ccs/bin/as: "/var/tmp/ccBVo80F.s", line 12970: error: statement syntax
> > /usr/ccs/bin/as: "/var/tmp/ccBVo80F.s", line 12982: error: unknown opcode
> > ".previous"
> > /usr/ccs/bin/as: "/var/tmp/ccBVo80F.s", line 12982: error: statement syntax
> > *** Error code 1
> > make: Fatal error: Command failed for target `lbfgsb.o'
> > Current working directory /export/home/cjpelton/R-1.5.0/src/appl
> > *** Error code 1
> > make: Fatal error: Command failed for target `R'
>
> I think this is a generic problem, unrelated to R: To use gcc-3.0.3
> the assembler in /usr/ccs/bin/as is in sufficient. You need GNU as,

It's fine: I use it all the time.  The issue is that you must use the same
`as' as gcc was built to use.  The simplest and safest route is to build
gcc (3.0.4 with 3.1 imminent) on the target system.

Quite a lot of traffic on R-bugs is about mis-configured versions of gcc.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._