Skip to content

Compiling R in 64-bit mode under AIX

1 message · Dr. Christoph Pospiech

#
Hi all,

I am trying to compile R in 64-bit addressing mode under AIX 5.1. Currently, I 
am using the following.

./configure -without-x  CC='xlC_r' F77='xlf_r' CXX='xlC_r' CFLAGS='-q64 -g 
-qfullpath' FFLAGS='-q64 -g -qfullpath' CXXFLAGS='-q64 -g -qfullpath' 
MAIN_LDFLAGS='-q64 -g -qfullpath' LDFLAGS='-q64' SHLIB_CXXLDFLAGS='-q64' 
SHLIB_LDFLAGS='-q64' AR='ar -X32_64' MAKE='gmake' && gmake

I am getting stuck at the following part of the make process.
xlC_r -q64 -G -q64 -o methods.so do_substitute_direct.o 
methods_list_dispatch.o method_meta_data.o slot.o class_support.o tests.o   
-lm
gmake[5]: Leaving directory `/xhome/cp/bench/DKFZ/R/src/library/methods/src'
gmake[4]: Leaving directory `/xhome/cp/bench/DKFZ/R/src/library/methods/src'
gmake[4]: Entering directory `/xhome/cp/bench/DKFZ/R/src/library/methods'
dumping R code in package 'methods'
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
"/home/cp/bench/DKFZ/R/library/ctest/libs/ctest.so":
  No such file or directory
^C
Execution halted
^C
[cp at polar R]$

I know that the R help page states the following for AIX.
"Also, the R main program is unable to dynamically load modules (such as X11) 
with the dlopen call."

But how do you get across the above part of the make process ? It gets stuck 
at using dlopen to link /home/cp/bench/DKFZ/R/library/ctest/libs/ctest.so. 
Inspecting with dbx, I found that dlopen returns the NULL pointer.

Any hints ?