Venkat Ramakrishnan
2016-May-17 03:32 UTC
[Rd] R-3.3.0 Base: Windows compilation fails while building 'base' package
Hi, I'm trying to builda R-3.3.0 base package on Windows 8.1, and it fails while building 'base' package with an error about unable to create a directory under /tmp. 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. Error messages below: gfortran -m64 -O3 -mtune=core2 -c cmplx.f -o cmplx.o gcc -std=gnu99 -m64 -I../../include -DHAVE_CONFIG_H -O3 -Wall -pedantic -mtunecore2 -c init_win.c -o init_win.o windres -F pe-x86-64 -i Rlapackrc.rc -o Rlapackrc.o gcc -std=gnu99 -m64 -shared -s -o ../../../bin/x64/Rlapack.dll dlamch.o dlapack. o cmplx.o init_win.o Rlapackrc.o -L../../../bin/x64 -lR -lRblas -lgfortran -lqua dmath gcc -std=gnu99 -m64 -I../../include -DHAVE_CONFIG_H -O3 -Wall -pedantic -mtunecore2 -c Lapack.c -o Lapack.o windres -F pe-x86-64 -i dllversion.rc -o dllversion.o gcc -std=gnu99 -m64 -shared -s -o lapack.dll lapack.def Lapack.o dllversion.o - L../../../bin/x64 -lRlapack -lRblas -lR cp lapack.dll ../../../modules/x64/lapack.dll building package 'base' cannot create /tmp/R15756: directory nonexistent <------------------- mv: cannot stat '/tmp/R15756': No such file or directory <--------------- make[3]: *** [mkR1] Error 1 make[2]: *** [all] Error 2 make[1]: *** [R] Error 1 make: *** [all] Error 2 I'm not sure what else I need to do. Please help. Thanks & Best Regards, Venkat. [[alternative HTML version deleted]]
Jeroen Ooms
2016-May-17 07:01 UTC
[Rd] [R] R-3.3.0 Base: Windows compilation fails while building 'base' package
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.
Venkat Ramakrishnan
2016-May-20 10:15 UTC
[Rd] [R] R-3.3.0 Base: Windows compilation fails while building 'base' package
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]]
Possibly Parallel Threads
- Error building Tcl: R-patched_2016-07-05
- Building R on Windows: mkdir of Rtools creates directories with read-only permissions [WEIRD]
- Building R on Windows: mkdir of Rtools creates directories with read-only permissions [WEIRD]
- Error building Tcl: R-patched_2016-07-05
- Compiling R 2.3.1 on SuSE 8.2 and 10.0: error with libRlapack.so (PR#9026)