[R] linux compile options (64-bit)

Göran Broström gb at stat.umu.se
Tue Aug 2 10:10:40 CEST 2005


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, but when I tried gcc-4.0.1, 'make check' 
failed with a segmentation error after
-----------------------------------------------------------------------------
R is now configured for x86_64-unknown-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                /usr/bin/gcc-4.0  -g -O2
  C++ compiler:              /usr/bin/g++-4.0  -g -O2
  Fortran compiler:          /usr/bin/gfortran-4.0  -g -O2

  Interfaces supported:      X11, tcltk
  External libraries:        readline, BLAS(ATLAS)
  Additional capabilities:   PNG, JPEG, iconv, MBCS, NLS
  Options enabled:           R profiling

  Recommended packages:      yes
-------------------------------------------------------------------
amilo:/usr/local/src/R/R-2.1.1# make check
make[1]: Entering directory `/usr/local/src/R/R-2.1.1/tests'
make[2]: Entering directory `/usr/local/src/R/R-2.1.1/tests'
make[3]: Enteri|ng directory `/usr/local/src/R/R-2.1.1/tests/Examples'
make[4]: Entering directory `/usr/local/src/R/R-2.1.1/tests/Examples'
make[4]: Leaving directory `/usr/local/src/R/R-2.1.1/tests/Examples'
make[4]: Entering directory `/usr/local/src/R/R-2.1.1/tests/Examples'
collecting examples for package 'base' ...
make[5]: Entering directory `/usr/local/src/R/R-2.1.1/src/library'
 >>> Building/Updating help pages for package 'base'
     Formats: text html latex example
make[5]: Leaving directory `/usr/local/src/R/R-2.1.1/src/library'
running code in 'base-Ex.R' .../bin/sh: line 1:  9010 Segmentation fault      ../../bin/R --vanilla <base-Ex.R >base-Ex.Rout 2>&1
make[4]: *** [base-Ex.Rout] Error 1
make[4]: Leaving directory `/usr/local/src/R/R-2.1.1/tests/Examples'
make[3]: *** [test-Examples-Base] Error 2
make[3]: Leaving directory `/usr/local/src/R/R-2.1.1/tests/Examples'
make[2]: *** [test-Examples] Error 2
make[2]: Leaving directory `/usr/local/src/R/R-2.1.1/tests'
make[1]: *** [test-all-basics] Error 1
make[1]: Leaving directory `/usr/local/src/R/R-2.1.1/tests'
make: *** [check] Error 2


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

[...]

Göran
-- 
Göran Broström                    tel: +46 90 786 5223
Department of Statistics          fax: +46 90 786 6614
Umeå University                   http://www.stat.umu.se/~goran.brostrom/
SE-90187 Umeå, Sweden             e-mail: gb at stat.umu.se




More information about the R-help mailing list