From ripley@stats.ox.ac.uk  Fri Jan 18 14:31:08 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Fri, 18 Jan 2002 15:31:08 +0100 (MET)
Subject: [Rd] 32 bit error compiling R on sparc-sun-solaris (PR#1273)
Message-ID: <200201181431.PAA13779@pubhealth.ku.dk>

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


[Rd] 32 bit error compiling R on sparc-sun-solaris (PR#1273)
ripley@stats.ox.ac.uk