From chuckwhite8 at charter.net  Wed Oct 28 20:46:42 2009
From: chuckwhite8 at charter.net (Chuck White)
Date: Wed, 28 Oct 2009 15:46:42 -0400
Subject: [Rd] unable to compile mgcv
Message-ID: <20091028154642.Q5ZMF.7890684.root@mp19>

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.



[Rd] unable to compile mgcv
Chuck White