-----Original Message-----
From: paul.boutros at utoronto.ca [mailto:paul.boutros at utoronto.ca]
Sent: Monday, February 28, 2005 11:19 PM
To: R-help at stat.math.ethz.ch
Subject: Problems Building Ron AIX 5.2.0.0 (Solved)
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
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:
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
to config.site this step of configure did not show an error.
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
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
of gcc, or could anybody offer any suggestions on where to go
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
$ 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)
--disable-nls : (reconfigured) ../gcc-3.3.2/configure
model: aix
gcc version 3.3.2
Configure goes okay, but I get an error that I don't quite know
during make. I've included the summary output from the end of
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
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
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
.
./../../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/
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
/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a -lg -ldl -ltermcap -lm
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.