Skip to content

mgcv fails to compile in R-1.6.1 (PR#2334)

3 messages · bjw34032@mh.uk.sbphrd.com, Peter Dalgaard

#
Full_Name: Brandon Whitcher
Version: 1.6.1
OS: IRIX 6.5
Submission from: (NULL) (194.6.84.100)


I am attempting to compile R v1.6.1 on my SGI Octane (running IRIX 6.5)
and ran into the following error when I encountered the new recommended
package _mgcv_ (using make)

----------

     R_LIBS= ../../../bin/R CMD INSTALL -l ../../../library mgcv.tgz
* Installing *source* package 'mgcv' ...
** libs
gcc -I/usr/local/R-1.6.1/include -I/usr/freeware/include -g -O2 -c gcv.c
 -o gcv.o
gcc -I/usr/local/R-1.6.1/include -I/usr/freeware/include -g -O2 -c
  matrix.c -o matrix.o
as: Error: /var/tmp/ccROwBBa.s, line 25029: register expected
		 dmtc1 244($sp),$f0
as: Error: /var/tmp/ccROwBBa.s, line 25029: Undefined symbol: 244
gmake: *** [matrix.o] Error 1
ERROR: compilation failed for package 'mgcv'
*** Error code 5 (bu21)
*** Error code 1 (bu21) (ignored)

----------

Upon eliminating this package, all subsequent "Recommended" packages
installed just fine.  Any ideas on what went wrong?
#
bjw34032@mh.uk.sbphrd.com writes:
That's a compiler bug, not an R one. You might try reducing the
optimization level.
#
Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:
Come to think of it that kind of error is sometimes seen when using
GCC with the system supplied assembler. You might need to install the
GNU binutils (but what do I know about IRIX).