Re: [Rd] Cross-compiling R for Windows on linux

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 01 Dec 2004 - 02:47:37 EST

On Fri, 26 Nov 2004, Markus Helbig wrote:

> I tried to cross-compile the newest release 2.0.1 on a linux machine, but i
> always got an error at the following stage
>
> DHAVE_CONFIG_H -DR_DLL_BUILD -c dynload.c -o dynload.o
> dynload.c: In function `R_loadLibrary':
> dynload.c:94: warning: implicit declaration of function `_controlfp'
> dynload.c:94: error: `_MCW_IC' undeclared (first use in this function)
> dynload.c:94: error: (Each undeclared identifier is reported only once
> dynload.c:94: error: for each function it appears in.)
> dynload.c:95: warning: implicit declaration of function `_clearfp'
> dynload.c:99: error: `_MCW_EM' undeclared (first use in this function)
> dynload.c:99: error: `_MCW_RC' undeclared (first use in this function)
> dynload.c:99: error: `_MCW_PC' undeclared (first use in this function)
> make[4]: *** [dynload.o] Error 1
> make[3]: *** [../../bin/R.dll] Error 2
> make[2]: *** [rbuild] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/markus/Development/r-project/WinR/R-2.0.1/
> src/gnuwin32'
>
> Anybody knows what do to now?

Check up that your cross--build setup is complete and MkRules was set correctly. These declaration are in .../i586-mingw32/include/float.h and I guess you probably haven't set HEADER in MkRules.

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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed Dec 01 02:59:49 2004

This archive was generated by hypermail 2.1.8 : Wed 01 Dec 2004 - 03:13:04 EST