[R] tcltk error compiling R 2.13.0 under Windows 7 x64

Peter Langfelder peter.langfelder at gmail.com
Tue Dec 14 02:26:17 CET 2010

On Mon, Dec 13, 2010 at 4:33 PM, Joshua Wiley <jwiley.psych at gmail.com> wrote:
> Hi All,
> I am trying to compile R 2.13.0 r53834 on 64-bit Windows 7 (home
> premium) using Rtools212.exe from Duncan Murdoch's site.  I (think) I
> followed the installation guide for Windows.  When installing Rtools,
> made sure I was installing 64-bit tools (including tcltk), etc.  I
> created a copy of MkRules.local where I selected 64 bit instead of 32
> architecture.  When I run:
> C:\R\R-devel\src\gnuwin32> make all recommended
> I get the following error at the very end:
> building package 'tcltk'
> making init.d from init.c
> making tcltk.d from tcltk.c
> making tcltk_win.d from tcltk_win.c
> x86_64-w64-mingw32-gcc -I"../../../../include" -I "../../../../Tcl"/include -DWi
> n32         -O2 -Wall  -std=gnu99 -c init.c -o init.o
> In file included from init.c:22:0:
> tcltk.h:23:17: fatal error: tcl.h: No such file or directory
> compilation terminated.
> make[4]: *** [init.o] Error 1
> make[3]: *** [mksrc-win2] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [R] Error 1
> make: *** [all] Error 2

Just in case no one knowledgeable answers, here's my shot in the dark
(I'm mostly a linux user)... the compiler is looking for .h files in
the directories listed in the --I options to gcc, which seems to be
Tcl, not Tcl64. The compiler also defines a macro Win32 which to my
untrained eyes seems suspicious since you are trying to produce a
64-bit executable, right (although perhaps Win32 also applies to
64-bit version, I'm not sure)? Maybe your selection of 64 bit
architecture wasn't honored - is the compiler reading the modified
copy or the original of MkRules?


More information about the R-help mailing list