[R] Problems Building Ron AIX 5.2.0.0 (Solved)

paul.boutros@utoronto.ca paul.boutros at utoronto.ca
Tue Mar 1 05:19:02 CET 2005


Happily I got this to work, largely by trial-and-error.  In hopes that this will 
help somebody else, my config.site ended up being:
OBJECT_MODE=64
R_PAPERSIZE=letter
CC=/usr/local/bin/gcc
MAIN_LDFLAGS=-Wl,-brtl
SHLIB_LDFLAGS=-Wl,-G

Which is virtually identical to that recommended in R-admin: one of my problems 
was using "-W1,brtl" rather than "-W1,-brtl".  This was R 2.0.1
on AIX 5.2.0.0 with GCC 3.3.2

The previous messages I'd posted on this issue are included below.

Paul

============================================================
My apologies -- I had believed that by linking the source message I
had made the detailed context available.  I will be more careful in
the future to correctly give full context.

Paul

> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: Saturday, February 26, 2005 5:23 AM
> To: paul.boutros at utoronto.ca
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Problems Building R on AIX 5.2.0.0 (Update)
>
>
> Quotes from messages about Solaris 9 are not necessarily applicable to
> AIX, and in omitting the context you have misrepresented me.
>
> Please do bear in mind the `moral rights' on quoting given at
>
> http://www.jiscmail.ac.uk/help/policy/copyright.htm
>
> (Perhaps such a reference is needed in the posting guide?)
>
>
> On Fri, 25 Feb 2005 paul.boutros at utoronto.ca wrote:
>
> > Hi,
> >
> > My previous message is appended: I'm still struggling with
> building on AIX.  I
> > updated my config.site to follow the suggestions from R-admin:
> > MAIN_LDFLAGS=-Wl,brtl
> > SHLIB_LDFLAGS=-Wl,-G
> >
> > This led to an error during configure:
> > checking whether mixed C/Fortran code can be run... configure:
> WARNING: cannot
> > run mixed C/Fortan code
> > configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
> >
> > This confused me a bit, because before adding the MAIN_LDFLAGS
> and SHLIB_LDFLAGS
> > to config.site this step of configure did not show an error.
> When I googled this
> > I found a previous message from last year:
> > http://tolstoy.newcastle.edu.au/R/help/04/04/1622.html
> >
> > At the end of this message Professor Ripley says:
> > "You need wherever libg2c.so is installed in your LD_LIBRARY_PATH."
> >
> > So... I went looking for this file and could not find it!  In
> /usr/local/lib I
> > have:
> > $ ls -al libg2c*
> > -rw-r--r--   1 freeware staff       7751224 Jan 09 2004  libg2c.a
> > -rwxr-xr-x   1 freeware staff           714 Jan 09 2004  libg2c.la
> >
> > But no libg2c.so appears to be on my system.  Does this
> indicate a bad install
> > of gcc, or could anybody offer any suggestions on where to go from here?
> >
> > Paul
> >
> > ---------------------------------------------------
> > From: Paul Boutros <Paul.Boutros_at_utoronto.ca>
> > Date: Thu 24 Feb 2005 - 02:43:52 EST
> >
> > Hello,
> >
> > I am trying to build R 2.0.1 on an AIX 5.2.0.0 machine using gcc 3.3.2:
> > $ oslevel
> >
> > 5.2.0.0
> > $ gcc -v
> >
> > Reading specs from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs
> > Configured with: ../gcc-3.3.2/configure : (reconfigured)
> ../gcc-3.3.2/configure
> > --disable-nls : (reconfigured) ../gcc-3.3.2/configure
> --disable-nls Thread
> > model: aix
> > gcc version 3.3.2
> >
> > Configure goes okay, but I get an error that I don't quite know
> how to interpret
> > during make. I've included the summary output from the end of
> configure as well
> > as the error that I get during make below. Any
> suggestions/recommendations are
> > very much appreciate: I'm stuck on ideas for what could be going wrong.
> >
> > Paul
> >
> > $ ./configure --prefix=/db2blaste/R
> >
> >
> > <snip>
> >
> > R is now configured for powerpc-ibm-aix5.2.0.0
> >
> >  Source directory: .
> >  Installation directory: /db2blast/R
> >
> >  C compiler:                gcc -mno-fp-in-toc -g -O2
> >  C++ compiler:              g++  -g -O2
> >  Fortran compiler:          g77  -g -O2
> >
> >  Interfaces supported:      X11
> >
> >  External libraries:
> >  Additional capabilities: PNG, JPEG
> >  Options enabled: R profiling
> >
> >  Recommended packages: yes
> >
> > configure: WARNING: you cannot build DVI versions of the R manuals
> > configure: WARNING: you cannot build info or html versions of
> the R manuals
> > configure: WARNING: you cannot build PDF versions of the R manuals
> > configure: WARNING: I could not determine a browser
> > configure: WARNING: I could not determine a PDF viewer
> >
> >
> > $ make
> >
> >
> > <snip>
> >
> >        gcc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry
> -Wl,-bexpall -Wl,- bI:
> > .
> >
> > ./../../etc/R.exp -L/usr/local/lib -o
> > lapack.so -Wl,-bI:../../../etc/Rlapack.exp
> > Lapack.lo rgeev.lo
> >
> > rsyev.lo -L../../../lib -lRlapack -L/usr/local/lib -L/usr/
> local/lib/gcc-lib/
> > powerpc-ibm-aix5.2.0.0/3.3.2 -L/usr/local/lib/gcc-lib/powe rpc-
> > ibm-aix5.2.0.0/3.3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s
> /usr/local/lib/gcclib
> > /powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a -lg -ldl -ltermcap -lm
> -lc ld: 0706-006
> > Cannot find or open library file: -l Rlapack
> >
> >        ld:open(): A file or directory in the path name does not exist.
> > collect2: ld returned 255 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.
> > make: 1254-004 The error code from the last command is 1.
> >
> > Stop.
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list