From ripley@stats.ox.ac.uk  Mon Oct 14 15:04:11 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon, 14 Oct 2002 15:04:11 +0100 (BST)
Subject: Install with 64-bit GCC 3.2 (PR#2048)
In-Reply-To: <200209201634.SAA01188@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.31.0210141456390.1247-100000@gannet.stats>

In 1.6.0's R-admin manual is a set of flags which do work.

I don't think you are setting CC correctly, and am surprised this got
though configuration (it didn't for me).

If you look in config.site or the manual you will see it is
MAIN_LDFLAGS and SHLIB_LDFLAGS you needed to set; you seem to
misunderstand the role of LDFLAGS.


There may be a bug, but it's not in R.

On Fri, 20 Sep 2002 k.buckley@lancaster.ac.uk wrote:

>
> Hi,
>
> been trying to build R-1.5.1 for som eof our users here.
>
> No probs with gcc-3.2 32-bit installtion, but thought we'd try it with
> the 64-bit just for the crack.
>
> Configuring thus
>
> CC=gcc3 CFLAGS="-m64" CXX=g++3 CXXFLAGS="-m64" F77=g773 FFLAGS="-m64"
> LDFLAGS="-m64 -L/usr/local/packages/gcc-3.2/lib/sparcv9" ./configure
> --prefix=/usr/local/packages/R-1.5.1-64bit
>
> runs OK, however one of the tests (I assume it is a test anyway) fails thus
>
> gcc3 -G  -o ctest.so ansari.o chisqsim.o d2x2xk.o fexact.o kendall.o ks.o  prho.o swilk.o init.o  -L/usr/lib/sparcv9 -L/usr/local/packages/gcc-3.2/lib/sparcv9 -L/usr/local/packages/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/sparcv9 -L/usr/local/packages/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2 -L/usr/ccs/bin/sparcv9 -L/usr/ccs/bin -L/usr/ccs/lib/sparcv9 -L/usr/ccs/lib -L/usr/local/packages/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../../sparcv9 -L/usr/local/packages/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../.. -L/lib/sparcv9 -ldl -ltermcap -lfrtbegin -lg2c -lm -lgcc_s_sparcv9
> ld: fatal: file ansari.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to ctest.so
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `ctest.so'
> Current working directory /usr/local/packages/src/R-1.5.1/src/library/ctest/src
>
>
> It appears the make process is not passing the "-m64" flag down from
> the LDFLAGS variable as set when running configure.
>
> I have tried a compilation by hand adding this flag to the link stage
> and the above compilation goes completes.
>
>
> Hoping this of use,
>
>
> --
> Regards,
>
> ----------------------------------------------------------------------
> *  Kevin M. Buckley              e-mail: K.Buckley@lancaster.ac.uk   *
> *                                                                    *
> *  Systems Administrator                                             *
> *  Computer Centre                                                   *
> *  Lancaster University          Voice:  +44 (0) 1524 5 93718        *
> *  LANCASTER. LA1 4YW            Fax  :  +44 (0) 1524 5 25113        *
> *  England.                                                          *
> *                                                                    *
> *  My PC runs Linux/GNU, you still computing the Bill Gate$' way ?   *
> ----------------------------------------------------------------------
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

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


Install with 64-bit GCC 3.2 (PR#2048)
ripley@stats.ox.ac.uk