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.
Some more details on my being able to compile R 2.9.2 for AIX 5.3 export OBJECT_MODE=64 export AR="ar -X64" export R_BROWSER=/opt/freeware/bin/firefox export MAKE=/usr/bin/gmake export R_SHELL=/usr/bin/bash #export LIBICONV=/opt/freeware/lib export CC="gcc -maix64 -pthread" export CXX="g++ -maix64 -pthread" export CFLAGS="-O2 -g -mcpu=power5" export F77="gfortran -maix64 -pthread" export FC="gfortran -maix64 -pthread" export FFLAGS="-O2 -g -mcpu=power5" export FCFLAGS="-O2 -g -mcpu=power5" export CPPFLAGS="-I/usr/lpp/X11/include/X11" export LDFLAGS="-L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -L/opt/freeware/lib -L/opt/freeware/lib64" ==============../R-2.9.2/configure --enable-R-shlib --with-iconv=no > config_292.log 2>&1 ; make > make_292.log 2>&1
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
>
Thanks for your response. Can you please point me to the make file where I would make this change. Thanks. ---- William Dunlap <wdunlap at tibco.com> wrote:> 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