[R] Help in building R with minGW

Duncan Murdoch murdoch.duncan at gmail.com
Fri Jan 2 18:30:17 CET 2015


On 02/01/2015 12:05 PM, Edoardo Baldoni wrote:
> Dear R users,
> I would need some help in building R using minGW in windows 8.1. After
> using the command *configure *(./configure --enable-R-shlib
> --with-readline=no --with-x=no), I use the command *make. *This results in
> the following error:

We don't support that.  The only supported means for building R is to
use the tools we've put together as "Rtools" (on
cran.r-project.org/bin/windows/Rtools), following the instructions in
the R Administration and Installation manual.


> 
> [...]
> make[2]: Leaving directory `/home/Edoardo/r-3.1.2/src/nmath'
> make[2]: Entering directory `/home/Edoardo/r-3.1.2/src/unix'
> make[3]: Entering directory `/home/Edoardo/r-3.1.2/src/unix'
> gcc -std=gnu99 -I. -I../../src/include -I../../src/include
>  -I/usr/local/include -DHAVE_CONFIG_H      -g -O2  -c dynload.c -o dynload.o
> dynload.c: In function 'Rf_InitFunctionHashing':
> dynload.c:69:32: warning: assignment from incompatible pointer type
> [enabled by default]
>      R_osDynSymbol->loadLibrary = loadLibrary;
>                                 ^
> dynload.c:71:33: warning: assignment from incompatible pointer type
> [enabled by default]
>      R_osDynSymbol->closeLibrary = closeLibrary;
>                                  ^
> dynload.c: At top level:
> dynload.c:97:13: error: conflicting types for 'closeLibrary'
>  static void closeLibrary(HINSTANCE handle)
>              ^
> dynload.c:59:13: note: previous declaration of 'closeLibrary' was here
>  static void closeLibrary(void *handle);
>              ^
> dynload.c:59:13: warning: 'closeLibrary' used but never defined [enabled by
> default]
> make[3]: *** [dynload.o] Error 1
> make[3]: Leaving directory `/home/Edoardo/r-3.1.2/src/unix'
> make[2]: *** [R] Error 2
> make[2]: Leaving directory `/home/Edoardo/r-3.1.2/src/unix'
> make[1]: *** [R] Error 1
> make[1]: Leaving directory `/home/Edoardo/r-3.1.2/src'
> make: *** [R] Error 1
> 
> 
> I am not an expert programmer and would appreciate some help. My final
> objective is to install R as shared library in order to use RHIPE.
> Thanks
> 

This sounds more like an R-devel topic for discussion.

Duncan Murdoch



More information about the R-help mailing list