Full_Name: Chris Pelton Version: R-1.5.0 OS: Solaris & Submission from: (NULL) (169.237.121.210) 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' Thanks, Chris -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
compiling on Solaris 7 (PR#1520)
3 messages · cjpelton@ucdavis.edu, Peter Dalgaard, Brian Ripley
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, and obviously also to make sure that it is found before the one in /usr/ccs. I have have built R succesfully on a system where the following holds: Sun Microsystems Inc. SunOS 5.7 Generic October 1998 [pd@rubin pd]$ which as /usr/local/bin/as [pd@rubin pd]$ /usr/local/bin/as --version GNU assembler 2.11.2 Copyright 2001 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `sparc-sun-solaris2.7'. [pd@rubin pd]$ gcc --version 3.0.3 The assembler is part of binutils-2.11.2 installed from sunfreeware.com.
O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._