[R] help on compile r-2.10.0 on 64 bit window

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 6 07:34:06 CEST 2010

On Wed, 5 May 2010, zach Li wrote:

> Hi,
> I tried to compile R-2.10.0 src on 64 bit window.

That is not supported, and I have no idea why you think it would be. 
(Working) support for 64-bit Windows (sic) was added well after 2.10.0 
was released.

> After install Rtools and wingw-w64 compiler and put it the first of
my PATH variable, but i got the following error when i tried to 
compile. Anything I missed? thank you.

This is not the right list: see what the posting guide has to say 
about C/C++ programming questions.  However, I doubt if the volunteer 
helpers will be willing to support you to do this, having chosen not 
to add support for x64 Windows in R 2.10.x.

> x86_64-w64-mingw32-gcc -std=gnu99 -I../include -I. -I../extra -DHAVE_CONFIG_H -D
> R_DLL_BUILD  -O3 -Wall -pedantic  -DR_ARCH='"x64"' -c malloc.c -o malloc.o
> x86_64-w64-mingw32-windres  -I../include -i dllversion.rc -o dllversion.o
> 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 preferen
> ces.o psignal.o rhome.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o d
> os_wglob.o malloc.o ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a getl
> ine/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/t
> re/libtre.a ../extra/xz/liblzma.a dllversion.o -L. -lgfortran -lRblas -L../../bi
> n -lRzlib -lRgraphapp -lRiconv -lcomctl32 -lversion
> cp R.dll ../../bin
> x86_64-w64-mingw32-gfortran -O3  -c blas.f -o blas.o
> x86_64-w64-mingw32-gfortran -O3  -c cmplxblas.f -o cmplxblas.o
> -------- Building ../../../bin/Rblas.dll --------
> x86_64-w64-mingw32-gcc -std=gnu99 -shared  -o ../../../bin/Rblas.dll blas.o cmpl
> xblas.o ../../gnuwin32/dllversion.o Rblas.def -L../../../bin -lR -lgfortran
> c:/rtools/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.4/../../../../x86_64-w
> 64-mingw32/bin/ld.exe: cannot find -lR
> collect2: ld returned 1 exit status
> make[3]: *** [../../../bin/Rblas.dll] Error 1
> make[2]: *** [Rblas] Error 2
> make[1]: *** [rbuild] Error 2
> make: *** [all] Error 2
> _________________________________________________________________
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> N:WL:en-US:WM_HMP:042010_1
> 	[[alternative HTML version deleted]]
> ______________________________________________
> 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.

Brian D. Ripley,                  ripley at 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

More information about the R-help mailing list