From imosqueira at suk.azti.es  Mon Jun 21 19:55:35 2004
From: imosqueira at suk.azti.es (Iago Mosqueira)
Date: Mon Jun 21 18:55:02 2004
Subject: [Rd] Re: [R] Cross build Makefile
In-Reply-To: <Pine.LNX.4.44.0406210742320.31373-100000@gannet.stats>
References: <Pine.LNX.4.44.0406210742320.31373-100000@gannet.stats>
Message-ID: <1087840534.2858.25.camel@xurelo>

O Lun, 2004-06-21 ?s 08:00, Prof Brian Ripley escribiu:

> On Mon, 21 Jun 2004, Iago Mosqueira wrote:
> 
> > Hello,
> > 
> > I am trying to use Yan and Rossini's Makefile for cross building Windows
> > versions of R packages in Linux with R 1.9.0. When compiling R with the
> > mingw tools I get an error about expm1 being undeclared when first found
> > at src/main/arithmetic.c:1019
> > 
> > If I fiddle a bit with it later on I also get errors about log1p bein
> > undeclared.
> > 
> > Any idea what should I look for?
> > 
> > I am using R 1.9.0 in Debian, with R-mathlib avaliable, and gcc 3.3.
> 
> Did you build your own cross-compiler, or where did you get it from?

No, I got it following their indications, and I think it is from your
webpage, is that recent enough?

> log1p is definitely declared in math.h these days, but it used not to be, 
> so that one might be due to using too old a cross-compiler.
> 
> For expm1, the Windows config.h has /* #undef HAVE_EXPM1 */ which means it 
> is declared in Rmath.h and compiled up as part of libnmath.a.  Here all I 
> can suggest is that you check the headers files are correct and that you 
> are finding the ones for cross-compiling and not for Linux compiling 
> (which can be a problem if the cross-compiler was built incorrectly or you 
> configured R in that source tree without the right options).

I'll check it out. Thanks,


Iago Mosqueira


[Rd] Re: [R] Cross build Makefile
Iago Mosqueira