[Rd] [R] R-3.3.0 Base: Windows compilation fails while building 'base' package

Venkat Ramakrishnan venkat.architect at gmail.com
Fri May 20 12:15:11 CEST 2016


Thanks Jeroen. Yes, that's right. It works. Appreciate your help.

The next blockage is during linking the TCL and TK libraries
which fail with the following errors :

gcc -m64 -shared -s -static-libgcc -o tcltk.dll tmp.def init.o tcltk.o
tcltk_win
.o ../../../gnuwin32/dllversion.o -L../../../../Tcl/bin64 -ltcl85 -ltk85
-LD:/R6
4/R-3.3.0/extsoft/lib/x64 -LD:/R64/R-3.3.0/extsoft/lib
-L../../../../bin/x64 -lR

d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-m
ingw32/bin/ld.exe: cannot find -ltcl85 <----------------
d:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-m
ingw32/bin/ld.exe: cannot find -ltk85 <-------------------
collect2: ld returned 1 exit status
cp: cannot stat 'tcltk.dll': No such file or directory
make[4]: *** [shlib] Error 1
make[3]: *** [mksrc-win2] Error 1
make[2]: *** [all] Error 2
make[1]: *** [R] Error 1
make: *** [all] Error 2

I have my TCL/TK files under D:\TCL and the tcl85.dll and tk85.dll are
present
under D:\TCL\BIN64 directory.  I have D:\TCL\BIN64 in both user and system
paths.

I did try configuring LD_LIBRARY_PATH (Yes, I know it's only for unix but
just in case)
to D:\TCL\BIN64 and that didn't work either.

What else do I need to do ?

(Also, note that I got multiple errors in .h files not being able to be
included
(for example, lzma.h), for which I manually edited the header files and
pointed
the absolute directory/filename wherever required.)

Not sure if these are all documented somewhere as tips, so that folks can
go through
in case of issues. Going through archives is tedious.

Thx,
Venkat.




On Tue, May 17, 2016 at 12:31 PM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu>
wrote:

> On Tue, May 17, 2016 at 5:32 AM, Venkat Ramakrishnan
> <venkat.architect at gmail.com> wrote:
> > I am running the make from my D:\ partition, and I have created a \TMP
> > directory
> > under both C:\ and D:\.  I have also modified my environment variables
> TEMP
> > and TMP both point to C:\TMP.
>
> I think you actually need to set the 'TMPDIR' variable.
>

	[[alternative HTML version deleted]]



More information about the R-devel mailing list