[R] R292 on AIX53 using gcc

Chuck White chuckwhite8 at charter.net
Sat Oct 17 21:02:12 CEST 2009

Hello -- I am unable to build R 2.9.2 on IBM PowerPC AIX5.3.  I would appreciate any help in this matter.

Machine:  IBM PowerPC_POWER5 / 4 proc, 1499 MHz 64-bit / AIX
Building R 2.9.2 using gcc/g++/gfortran 4.2.4
Config.site changes are:
  AR="ar -X64"
  CC="gcc -maix64"
  F77="gfortran -maix64"
  LDFLAGS="-L/opt/freeware/lib64 -L/opt/freeware/64/lib -L/opt/freeware/lib -L/usr/local/lib"
  CXX="g++ -maix64"
  FC="gfortran -maix64"

Command for configure:  ./configure --enable-R-shlib
Looks like I have to set OBJECT_MODE explicitly on the command line. So, I enter: set OBJECT_MODE=64.  It does not seem to help that I have it in config.site.
make stops with the following error:
 gcc -maix64 -std=gnu99 -Wl,-brtl -Wl,-bexpall -Wl,-bpT:0x100000000 -Wl,-bpD:0x110000000 -lc  -L/opt/freeware/lib64 -L/opt/freeware/64/lib -L/opt/freeware/lib -L/usr/local/lib -o R.bin Rmain.o -L../../lib -lR
ld: 0711-224 WARNING: Duplicate symbol: .memcpy
...duplicate symbol warning for: memcpy,bcopy,memset,fres
ld: 0711-317 ERROR: Undefined symbol: R_running_as_main_program
collect2: ld returned 8 exit status
make: The error code from the last command is 1.

More information about the R-help mailing list