[R] compiling R on powerpc-ibm-aix5.1.0.0

Lu Qiang luqiang at inforsense.com
Wed Jan 18 12:18:23 CET 2006


Hi, 

As the message pointed out, the current linker cannot produce share library. 
However gcc used option "-bdynamic", is that for share library? I guess. Need to read its gcc manual. 

It might be caused by very slight difference of the gcc compiler in your AIX. 
Please seek for Zhao Wei's help. He has very good experience in operating UNIX-like system.

If the gcc in your AIX is with low version, not suitable, how to do? hmmm ... anyway, let zhaowei have a look firstly.

Regards,

Lu



-----Original Message-----
From: Haiyan Pan [mailto:hypan at scbit.org] 
Sent: 18 January 2006 08:51
To: r-help
Cc: Dan Yang; Lu Qiang
Subject: compiling R on powerpc-ibm-aix5.1.0.0

r-help,

   I am trying to compile R on an powerpc-IBM-AIX5.1.0.0  machine, Is R suitable to be used in this system? The R Installation and Administration document mentioned  rs6000-ibm-aix not powerpc-IBM-AIX5.1.0.0 .
  When I tried to compile R.2.2.0 in powerpc-IBM-AIX5.1.0.0  using the following steps:
(1) ./configure
   There is an error message :configure: error: --with-readline=yes (default) and headers/libs are not available
  
  So I used "./configure  --with-readline=no --prefix=/export/home/hypan/R/bin" instead, and configure is through.
  The following is information when finished configure
  
  R is now configured for powerpc-ibm-aix5.1.0.0

  Source directory:          .
  Installation directory:    /export/home/hypan/R/bin

  C compiler:                gcc -mno-fp-in-toc -g -O2
  C++ compiler:              g++  -g -O2
  Fortran compiler:          g77  -g -O2

  Interfaces supported:      X11, tcltk
  External libraries:        
  Additional capabilities:   PNG, JPEG, MBCS, NLS
  Options enabled:           R profiling

  Recommended packages:      yes

configure: WARNING: you cannot build info or html versions of the R manuals
configure: WARNING: I could not determine a browser
configure: WARNING: I could not determine a PDF viewer

*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support.  If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

(2) make
  make is failed, the error message is:
  gcc -Wl,-bdynamic -Wl,-bE:../../etc/R.exp -Wl,-bM:SRE -L/usr/local/lib -o R.bin  Rmain.o  CConverters.o CommandLineArgs.o Rdynload.o Renviron.o RNG.o apply.o arithmetic.o apse.o array.o attrib.o base.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cov.o cum.o dcf.o datetime.o debug.o deparse.o deriv.o dotcode.o dounzip.o dstruct.o duplicate.o engine.o envir.o errors.o eval.o format.o fourier.o gevents.o gram.o gram-ex.o graphics.o identical.o internet.o iosupport.o lapack.o list.o logic.o main.o mapply.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o pcre.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o random.o regex.o registration.o relop.o saveload.o scan.o seq.o serialize.o size.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o unique.o util.o version.o vfonts.o xxxpr.o ../unix/libunix.a ../appl/libappl.a ../nmath/libnmath.a   -lg2c -lm -lgcc_s /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3/libgcc.a -lg /lib/crt0.o ../extra/zlib/libz.a ../extra/bzip2/libbz2.a ../extra/pcre/libpcre.a ../extra/intl/libintl.a   -ldl -lm -lc -liconv

/usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3/../../../../powerpc-ibm-aix5.1.0.0/bin/ld: target dynamic not found
collect2: ld returned 1 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.


your help will be greatly appreciated. Thanks!

Haiyan

= = = = = = = = = = = = = = = = = = = = 
  
 Haiyan Pan
 hypan at scbit.org

 Tel: 021-64363311-123
 Shanghai Center for Bioinformatics Technology
 Floor 12th,100# QinZhou Road
 Shanghai,China,200235




More information about the R-help mailing list