From k.buckley@lancaster.ac.uk  Fri Sep 20 17:34:20 2002
From: k.buckley@lancaster.ac.uk (k.buckley@lancaster.ac.uk)
Date: Fri, 20 Sep 2002 18:34:20 +0200 (MET DST)
Subject: Install with 64-bit GCC 3.2 (PR#2048)
Message-ID: <200209201634.SAA01188@pubhealth.ku.dk>


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


Install with 64-bit GCC 3.2 (PR#2048)
k.buckley@lancaster.ac.uk