Skip to content

R 1.4.0 build fails on AIX (PR#1289)

11 messages · Thomas Lumley, Brian Ripley, Dan Million +1 more

#
On Wed, 30 Jan 2002, Thomas Lumley wrote:

            
I've just built R 1.4.1 on AIX 4.3 myself, and while I've made progress,
I still have problems.  If I could bother you a bit more, I'd like to
compare some notes.

My environment is as follows:

    RS/6000 model H70 (PowerPC_RS64-II) running AIX 4.3.3 ML09; configure
	calls it "powerpc-ibm-aix4.3.3.0"
    IBM C for AIX Compiler 5.0.2.2
    IBM XL Fortran Compiler 7.1.1.1
    Perl 5.005 patch 03
    makeinfo 4.0
    readline 4.2
    zlib 1.1.3
    libjpeg 6b
    libpng 1.2.0
    tcl/tk 8.3.3
    GNU make 3.79.1

This is what I started with in my config.site file:

    R_PAPERSIZE=letter
    CC=cc
    CFLAGS="-g"
    FC=f77
    CXX=g++
    MAKE=/opt/freeware/bin/make

I originally configured with "configure --enable-R-shlib" (because my
R user thought he needed it), and I gradually concluded that this was
causing lots of my problems, so I dropped it.  Now I just use "configure"
with no options.

R now runs (sort of).  It still coredumps on exit with segmentation
faults.  Sometimes it also coredumps during operation with an illegal
instruction fault.  I did run through "make check" using the expedient
of hacking the Makefiles to ignore exit errors, so it would plow ahead
even after getting the exit coredumps, and it looks like it got through
all the tests.

My user also wanted to install the Rggobi package into R, which I've
done.  Ggobi itself seems to work fine, but when I type the "ggobi"
command in R, I get an illegal instruction coredump.  Not sure if that's
an R problem or a Ggobi problem.

Do you see anything in my environment that is "wrong"?  What level of
AIX (version and maintenance level) are you building on?  What model of
RS/6000?

Thanks for your time.

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 15 Feb 2002, Dan Million wrote:

            
That all looks reasonable. I've got Perl 5.6.0, but Perl isn't needed at
runtime. I don't have makeinfo or readline. I don't know if g++ is
compatible with the C and Fortran compilers but there isn't any C++ in the
base R.
Some of this I'll need to get from our administrators.

It's a cluster of RS/6000s and from uname they appear to be 7015/R00 or
7015/R24.
lslpp  -L suggests that the versions of various components of AIX are
mostly 4.3.3.10 or 4.3.3.25

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 15 Feb 2002, Thomas Lumley wrote:

            
Yes, it sounds like you're running on pretty old hardware, and using a
fairly back-level version of AIX 4.3.3.  Maintenance level 2 or 3 maybe.
I'm afraid that IBM has introduced so much new stuff (including bugs) in
some of the recent maintenance level patches that we're probably comparing
apples and oranges here.

If you're interested, you can get the maintenance level by typing:

	instfix -i | grep ML

and look at the last line printed, which should look something like:

	All filesets for 4330-03_AIX_ML were found.

indicating that the machine is at ML03.

By the way, my user has emphasized that they really need the R shared
library.  And if I build with --enable-R-shlib, then chunks of R simply
don't work at all (like the X11 support).  Ah well....

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
4 days later
#
Dan,

- have you tried gcc instead of xlc?  It's surprisingly easy to
  install for AIX.
- have you tried to turn off all optimizations (explicitly if needed)?

My AIX box also has ML 9 but I'm not using xlc but gcc.  And I haven't
seen a problem yet.
I could try building the shared lib.  But without knowing that you
could switch to gcc, I wouldn't help.  (I can't run xlc).

  -tom
#
On 19 Feb 2002, Thomas Vogels wrote:

            
I have gcc; the trouble is I don't have g77, and I don't want to mix gcc
objects with IBM XL Fortran objects in the same library.
I'm finding more and more problems with the R shared library.  I don't
think it's being built correctly at all.

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 19 Feb 2002, Dan Million wrote:

            
gcc is the Gnu Compiler Collection: g77 is part of it!  (see gcc.gnu.org
for evidence.)  You should be able to install the parts you (or someone)
omitted before.
#
On Tue, 19 Feb 2002, Prof Brian Ripley wrote:

            
Not exactly; I installed gcc as a Linux-compatible RPM from IBM.  Their
package does not include g77.  I realize I could start all over and get
another gcc package from somewhere else.

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Dan Million <lio@hpss1.ccs.ornl.gov> writes:
I would recommend that.  As I said, gcc is relatively easy to
install.  I followed the info provided and didn't run into any
problems. (That's status from last summer, I don't think that this
changed.)  And yes, you don't want to mix gcc with xlf.
Don't get another 'gcc package'.  Download the source tarball from
gnu.org (or a mirror).  Side benefit: we'll know  what compilers you
use, I possibly can reproduce your problems on my AIX box (if any remain).
  -tom
#
On 20 Feb 2002, Thomas Vogels wrote:

            
I've just finished building GCC 3.0.3 on my AIX 5.1 system.  I rebuilt R,
and the results are just the same; it still doesn't build the shared
libraries correctly, and R still coredumps.  Can't say I see much
improvement here.

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, 21 Feb 2002, Thomas J Vogels wrote:

            
Yes, I've been trying on AIX 4.3.3 and AIX 5.1 both.  On earlier attempts,
results were identical on both, so I've started to assume that there are
no significant OS differences to worry about.  I'll probably be trying it
on AIX 4.3.3 also, just to cover all the bases.

I'm going to try building two separate trees, one with plain R, and the
other strictly for the R shared library.  I think that will avoid some of
my library problems, but the coredump doesn't want to go away, it seems.

Dan


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Dan Million wrote:

            
Hmm.  I'll try to compile it over the weekend.  Did I miss something or were
earlier reports about AIX 4.3?  Also, I'll probably try an earlier version of
gcc first.
  -tom


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._