From wdunlap at tibco.com  Wed Oct 28 21:12:09 2009
From: wdunlap at tibco.com (William Dunlap)
Date: Wed, 28 Oct 2009 13:12:09 -0700
Subject: [Rd] unable to compile mgcv
In-Reply-To: <20091028154642.Q5ZMF.7890684.root@mp19>
References: <20091028154642.Q5ZMF.7890684.root@mp19>
Message-ID: <77EB52C6DD32BA4D87471DCD70C8D7000209A10E@NA-PA-VBE03.na.tibco.com>

The first offending line in gdc.c is
    294   int *pivot,i,TRUE=1,j;
and TRUE must be #defined in some AIX
include file.  Change it to true or
add #undef TRUE prior to its use and it
may compile.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com  

> -----Original Message-----
> From: r-devel-bounces at r-project.org 
> [mailto:r-devel-bounces at r-project.org] On Behalf Of Chuck White
> Sent: Wednesday, October 28, 2009 12:47 PM
> To: r-devel at r-project.org
> Subject: [Rd] unable to compile mgcv
> 
> Hello -- I am trying to compile R-2.9.2 on IBM Power5 machine 
> with AIX 5.3.  I have posted three previous posts. Over time 
> I have made significant progress towards getting a successful 
> build. I am now getting the following error:
> 
> ==========================================================
> begin installing recommended package mgcv
> * Installing *source* package 'mgcv' ...
> ** libs
> gmake[2]: Entering directory 
> `/tmp/RtmpOtsRnd/R.INSTALL2781446b/mgcv/src'
> gcc -maix64 -pthread -std=gnu99 -I/usr/local/builddir/include 
>  -I/usr/local/include      -O2 -g -mcpu=power5 -c gcv.c -o gcv.o
> gcc -maix64 -pthread -std=gnu99 -I/usr/local/builddir/include 
>  -I/usr/local/include      -O2 -g -mcpu=power5 -c gdi.c -o gdi.o
> gdi.c: In function 'qr_ldet_inv':
> gdi.c:294: error: expected identifier or '(' before numeric constant
> gdi.c:308: error: lvalue required as unary '&' operand
> gdi.c:308: error: lvalue required as unary '&' operand
> gdi.c:316: error: 'j' undeclared (first use in this function)
> gdi.c:316: error: (Each undeclared identifier is reported only once
> gdi.c:316: error: for each function it appears in.)
> gdi.c: In function 'get_detS2a':
> gdi.c:617: error: expected identifier or '(' before numeric constant
> gdi.c:620: error: 'Mf' undeclared (first use in this function)
> gdi.c:636: error: 'max_col' undeclared (first use in this function)
> .....................................
> ERROR: compilation failed for package 'mgcv'
> * Removing '/usr/local/builddir/library/mgcv'
> gmake[1]: *** [mgcv.ts] Error 1
> gmake[1]: Leaving directory 
> `/usr/local/builddir/src/library/Recommended'
> gmake: *** [recommended-packages] Error 2
> make: The error code from the last command is 2.
> 
> Stop.
> ==========================================================
> 
> Initially I had mgcv 1.5-5 and I downloaded mgcv 1.5-6 and 
> tried again. I get the same error.
> 
> I would really appreciate any help with this.
> 
> Thanks.
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 



[Rd] unable to compile mgcv
William Dunlap