Re: [R] linux compile options (64-bit)

From: Prof Brian Ripley <>
Date: Tue 02 Aug 2005 - 18:33:45 EST

On Tue, 2 Aug 2005, Göran Broström wrote:

> On Tue, Aug 02, 2005 at 07:34:39AM +0100, Prof Brian Ripley wrote:
>> We find it equally strange that you posted this!
>> The advice _is_ in the R-admin manual which the INSTALL file asks you to
>> read if you have any questions. It covers using enhanced BLAS libraries.
>> R builds out of the box on FC3, FC4 and Suse on AMD64. I use Goto's BLAS,
>> but ATLAS can be used (except that building a shared version is tricky).
> Incidentally, I have just tried building R on a Fujitsu Amilo amd64 with
> debian-amd64 (unstable) and ATLAS. Both 'make' and 'make check' worked
> without complaints with gcc-3.4.5,

There is no gcc 3.4.5! There are versions 3.3.5 and 3.4.4.

> but when I tried gcc-4.0.1, 'make check' failed with a segmentation
> error after

I have seen this on FC3. Note that ZAXPY is a BLAS routine, and you are using ATLAS: was that also built with gcc-4.0.1? On FC3 I get the failure if I use its BLAS, and not if I configure R with --without-blas. (I did not see the problem using the gcc4 RPM from FC3 update, and I gather others have managed to use gcc4 from FC4.)

We do not recommend gcc-4.0.x as yet: we have yet to see any performance gains (only losses) from it, and this is one of a number of known nuisances. More serious are places where it apparently generates incorrect code and so gives incorrect answers.


>> eigen(print(cbind(c(0,1i), c(-1i,0))))# Hermite ==> real Eigen values
> [,1] [,2]
> [1,] 0+0i 0-1i
> [2,] 0+1i 0+0i
> Running it under 'R -d gdb': R "hangs"; after C-c:
> Program received signal SIGINT, Interrupt.
> zhetd2_ (uplo=@0x7fffff92ebbe, n=@0x7fffff92e9f4, a=0x10900f0,
> lda=@0x7fffff92ebb8, d=0x13b06e8, e=0xb6add8, tau=0x1bb6448,
> info=@0x7fffff92ea04, _uplo=1) at cmplx.f:8330
> 8330 CALL ZAXPY( N-I, ALPHA, A( I+1, I ), 1, TAU( I ), 1 )
> Current language: auto; currently fortran

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list PLEASE do read the posting guide!

Received on Tue Aug 02 18:38:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:39 EST