[R] trouble compiling on Windows

Joshua Wiley jwiley.psych at gmail.com
Sat Mar 31 11:38:07 CEST 2012


I may be putting my foot in my mouth, but I want to say that Rtools changed at 2.15 from mingw to gcc.  I would check that you have the most recent version of Rtools installed, make sure you have the right directories in your path environment variable (which also changed, I believe), and make sure you use the default tool chain in Mkrules.local if you set it.

Cheers,

Josh

On Mar 31, 2012, at 0:55, Erin Hodgess <erinm.hodgess at gmail.com> wrote:

> Dear R People:
> 
> I'm trying to compile R-2.15.0 on a 64 bit Windows machine.
> 
> However, I'm getting the following error:
> 
> 
> c:\R64\R-2.15.0\src\gnuwin32>set TMPDIR=c:\temp
> set TMPDIR=c:\temp
> 
> c:\R64\R-2.15.0\src\gnuwin32>make all recommended
> make all recommended
> make[1]: `MkRules' is up to date.
> make[4]: Nothing to be done for `svnonly'.
> installing C headers
> make[2]: Nothing to be done for `all'.
> make[2]: `libRblas.dll.a' is up to date.
> make[5]: Nothing to be done for `svnonly'.
> installing C headers
> make --no-print-directory -C ../extra/intl CFLAGS='-O3 -Wall -pedantic
> -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../appl CFLAGS='-O3 -Wall -pedantic
> -mtune=core2' FFLAGS='-O3 -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../nmath CFLAGS='-O3 -Wall -pedantic
> -mtune=core2' FFLAGS='-O3 -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../main CFLAGS='-O3 -Wall -pedantic
> -mtune=core2' FFLAGS='-O3 -mtune=core2' malloc-DEFS='-DLEA_MALLOC' -f
> Makefile.win
> make --no-print-directory -C ./getline CFLAGS='-O3 -Wall -pedantic -mtune=core2'
> make[4]: `gl.a' is up to date.
> make -f Makefile.win makeMakedeps
> make -f Makefile.win libpcre.a
> make[5]: `libpcre.a' is up to date.
> make[4]: Nothing to be done for `all'.
> make -f Makefile.win makeMakedeps
> make -f Makefile.win libtre.a
> make[5]: `libtre.a' is up to date.
> make[4]: Nothing to be done for `all'.
> installing zoneinfo
> make[5]: `stamp' is up to date.
> make[5]: `liblzma.a' is up to date.
> x86_64-w64-mingw32-gcc -std=gnu99  -shared -s -mwindows -o R.dll R.def
> console.o dataentry.o dynload.o edit.o editor.o embeddedR.o extra.o
> opt.o pager.o preferences.o psignal.o rhome.o rt_complete.o rui.o
> run.o shext.o sys-win32.o system.o dos_wglob.o malloc.o
> ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a getline/gl.a
> ../extra/xdr/libxdr.a ../extra/pcre/libpcre.a ../extra/bzip2/libbz2.a
> ../extra/intl/libintl.a ../extra/trio/libtrio.a ../extra/tzone/libtz.a
> ../extra/tre/libtre.a ../extra/xz/liblzma.a dllversion.o -fopenmp -L.
> -lgfortran -lRblas -L../../bin/x64 -lRzlib -lRgraphapp -lRiconv
> -lcomctl32 -lversion
> x86_64-w64-mingw32-gcc.exe: libgomp.spec: No such file or directory
> make[3]: *** [R.dll] Error 1
> make[2]: *** [../../bin/x64/R.dll] Error 2
> make[1]: *** [rbuild] Error 2
> make: *** [all] Error 2
> 
> c:\R64\R-2.15.0\src\gnuwin32>
> 
> 
> Does this error look familiar, please?
> 
> Thanks for any help!
> 
> Sincerely,
> Erin
> 
> -- 
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list