From ripley at stats.ox.ac.uk  Tue Dec 21 20:44:44 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Dec 21 20:44:52 2004
Subject: [Rd] 64-bit R failed to compile some packages (PR#7440)
In-Reply-To: <20041221193218.49D9D1044D@slim.kubism.ku.dk>
References: <20041221193218.49D9D1044D@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.61.0412211937390.16433@gannet.stats>

This is not a problem with R, but with the options you selected to 
configure it.

config.site contains all the flags you might want to change.  You haven't 
even mentioned the compiler you used, let alone the flags you used.
As package som contains C++ code, it looks as if you didn't get your *CXX* 
flags right.  That's your fault, not a bug in R.

On Tue, 21 Dec 2004 yauv@ohsu.edu wrote:

> Full_Name: Vincent Yau
> Version: 2.0.1
> OS: Solaris SPARC 9
> Submission from: (NULL) (137.53.23.145)
>
>
> We have recently upgraded to using 64-bit R.  Was trying to install
> a SOM library by using:
>
>  install.packages(c("som"));

Why are you attempting to concatenate a single object?

> from  http://cran.r-project.org/src/contrib/Descriptions/som.html
>
> I got this error message:
>    ld: fatal: file som.o: wrong ELF class: ELFCLASS64
>
>
> I was able to fix this problem by modifying
> R/etc/Makeconf and changed all SHLIB_FLAGS (with -G) to
> also include -m64.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] 64-bit R failed to compile some packages (PR#7440)
Prof Brian Ripley