Re: [Rd] compiling R for Windows 64 bit

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 30 Nov 2012 10:16:44 +0000

  1. It seems you forgot to clean up before making a 64-bit build:

> skipping incompatible ./libR.dll.a when searching for -lR

I expect that is a 32-bit version you made earlier (but you did not show us the line which made it).

2) You did not read the manual carefully enough: config.site is used by 'configure' on a Unix-alike: it is not mentioned under Windows where you do not run 'configure' as only a very limited set of tools is available.

On 30/11/2012 09:29, Vitaliy FEOKTISTOV wrote:
> (rem: this message describes compiling errors more precisely)
>
> Dear All,
>
> I'm trying to compile R for Windows 64 bit.
>
> I'm following the instructions of R installation and administration
> guide v2.15.2 (3.1; A.3.1.4; C.2.2)
> and at the moment I compiled the default version (single threaded,
> gcc, without external BLAS) on my notebook (windows xp 32 bit)
>
> Now I'm trying to compile it on Windows servers 64 bit with the next
> configuration :
>
> 1. Windows Server 2008 R2 Entreprise SP1 x64bits ; Proc: AMD Opteron
> 6172 2Ghz (x4 processors)
> 2. Windows Server 2003 R2 Entreprise SP2 x64bits ; Proc: Intel Xeon
> 5160 3Ghz (x4 processors)
>
> I configured '/src/gnuwin32/MkRules.local' and 'config.site' as
> described in R installation guide.
>
> And there are at least 2 problems during the compilation :
> 1. 'make all recommended' does not see 'config.site' so the
> environmental variables are not updated properly,
> shell sh.exe ./configure also gives error
> 2. at the linking step the file 'Rgraphapp.dll' can not be created, as
> I suppose according to incorrect x32 - x64 configuration (it links
> 32bits external libs to 64bits object files, see below)
>
> I would be very grateful if you could help me to compile R, please.
>
> Thank you very much !!
>
> ==============
> MkRules.local
> ==============
> LOCAL_SOFT =
> G_FLAG=-gdwarf-2
> LEA_MALLOC=YES
> USE_ATLAS=NO
> ATLAS_PATH=/R/ATLAS/lib/WinNT_P4SSE2
> # USE_SVNVERSION = YES
> MULTI = 64
> TOOL_PATH =
> BINPREF =
> BINPREF64 =
> M_ARCH = -m64
> AS_ARCH = --64
> RC_ARCH = pe-x86-64
> DT_ARCH = "-m i386:x86-64 --as-flags --64"
> WIN = 64
> # USE_IMPLIBS = YES
> # USE_ICU=YES
> ICU_PATH=/sources/icu
> # JPEGDIR = jpeg-8d
> # PNGDIR = libpng
> # TIFFDIR = libtiff
> CAIRO_HOME = D:/R/cairo/src
> BUILD_HTML = YES
> MIKTEX = TRUE
> EOPTS=-mtune=native
> OPENMP = -fopenmp
> PTHREAD = -pthread
> ISDIR=C:/Program Files/Inno Setup 5
> QPDF=
> HOME32=
> DLLs32 =
> DLLs64 =
> WIX3DIR=C:/Program Files/WiX Toolset v3.7/bin
> WIX_PERSONAL=0
>
> ===================
> compilation errors
> ===================
> gcc -std=gnu99 -m64 -shared -mwindows -o Rgraphapp.dll Rgraphapp.def arith.o ar
> ay.o bitmaps.o buttons.o clipboard.o context.o controls.o cursors.o dialogs.o d
> awing.o drawtext.o events.o fonts.o gbuttons.o gdraw.o gif.o gimage.o gmenus.o
> mage.o init.o menus.o metafile.o objects.o printer.o rgb.o status.o stdimg.o st
> ings.o tooltips.o windows.o dllversion.o -L. -lR -lcomctl32 -limm32 -lmsimg32
> c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-
> ingw32/bin/ld.exe: skipping incompatible ./libR.dll.a when searching for -lR
> c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-
> ingw32/bin/ld.exe: skipping incompatible ./libR.dll.a when searching for -lR
> c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-
> ingw32/bin/ld.exe: cannot find -lR
> collect2: ld returned 1 exit status
> make[4]: *** [Rgraphapp.dll] Error 1
> make[3]: *** [rlibs] Error 1
> make[2]: *** [../../bin/x64/R.dll] Error 2
> make[1]: *** [rbuild] Error 2
> make: *** [all] Error 2
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 30 Nov 2012 - 10:24:31 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 30 Nov 2012 - 12:02:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive