[Rd] 32 bit error compiling R on sparc-sun-solaris (PR#1273)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Fri, 18 Jan 2002 17:16:58 +0100 (MET)


Filing this for the record.

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

---------- Forwarded message ----------
Date: Fri, 18 Jan 2002 10:49:52 -0500
From: Vinod Rajakumar <vinod.rajakumar@vectorpartners.com>
To: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Subject: Re: [Rd] 32 bit error compiling R on sparc-sun-solaris (PR#1273)


Thanks so much. I am not very familiar with Unix and your suggestions helped
tremendously

this is the gcc I have:
gcc version 2.95.2 19991024

gcc is installed on /opt/sfw, and you were correct regarding LD_LIBRARY_PATH, I
have compiled and successfully installed R. here's what I did:

gmake distclean

export
LD_LIBRARY_PATH=/opt/sfw/lib:/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/
./configure --prefix=$HOME/sfw/R
gmake
gmake check
gmake install

Best regards,
Vinod Rajakumar


Prof Brian Ripley wrote:

> On Fri, 18 Jan 2002 vinod.rajakumar@vectorpartners.com wrote:
>
> > Full_Name: vinod rajakumar
> > Version: R-1.4.0
> > OS: Solaris 5.8
> > Submission from: (NULL) (66.9.157.2)
> >
> >
> >
> > my machine looks like:
> > SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Sun-Blade-1000 (64-bit)
> >
> > I downloaded the zipped R-1.4.0 files into $HOME/dwnlds, unzipped, un-tar-ed,
> > and ran the following:
> >
> > export MAKE=gmake
> > export CC = gcc
> > ./configure --prefix=$HOME/sfw/R
> > gmake
> >
> > and here's where it failed:
> >
> > gcc -I. -I../../src/include -I../../src/include -I/usr/local/include
> > -DHAVE_CONFIG_H   -g -O2 -c arithmetic.c -o arithmetic.o
> > arithmetic.c:672: #error code requires that int have 32 bits
> >
> > I did a double-check and sizeof(int) is 32 bits, any advice?
>
> INT_32_BITS is tested during configure, so you need to look to see what it
> did: possibly config.log will help.
>
> I have seen this when the LD_LIBRARY_PATH was not set to allow the
> libraries to be found.  You don't tell us which version of gcc, but
> gcc 3.0.x needs libgcc.so.
>
> R does build with gcc 3.0.2 on Solaris 7, for example, so there is almost
> certainly no problem other than local to you.
>
> --
> Brian D. Ripley,                  ripley@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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._