[Rd] Re: [R] Cross build Makefile
imosqueira at suk.azti.es
Mon Jun 21 19:55:35 CEST 2004
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,
More information about the R-devel