From indrajitsg at gmail.com  Tue Feb 13 12:22:44 2018
From: indrajitsg at gmail.com (Indrajit Sen Gupta)
Date: Tue, 13 Feb 2018 16:52:44 +0530
Subject: [Rd] R Compilation gets stuck on Windows 64
In-Reply-To: <CAL6gwnKZJc0kOA75v_q7XLYgwC+UMjbrNKDEVThR+cMqrzF0Mg@mail.gmail.com>
References: <CAB-BrmcdSmj-3e9RY7Pzf-+vLb+4K3=gCEDyoEKNCdVh+rPJWw@mail.gmail.com>
 <CAL6gwnJFr_F+Bb2GDU+YH2_miNfbYwwJ=6FR2BAoZvQ4HeGc0w@mail.gmail.com>
 <CAB-BrmcLin89AQ8W6OZLaqcvvj7UZnvwK-MVCfRCsUBk2yni3A@mail.gmail.com>
 <CAB-BrmfrcW_yNqrhipM+Bk_ffO1=Kv32xFFJU0UxNFjH-GUU4A@mail.gmail.com>
 <CAL6gwn+bzp__o3+Ezb88DzzHKj+Gsx-W5CtXh9rkFO-7oMMmCg@mail.gmail.com>
 <CAPekMCmkwy7UidTF5pzgkOMSjdhtBL0Oc=cohpzzed1ykkJ6Qg@mail.gmail.com>
 <CAL6gwnKZJc0kOA75v_q7XLYgwC+UMjbrNKDEVThR+cMqrzF0Mg@mail.gmail.com>
Message-ID: <CAB-Brmd64xvwiDZFnfAJdLoRrb7KOkSpy6veJcy0hvUTbz+9mg@mail.gmail.com>

Hi Avraham,

I tried with the patched version. The same error message.

gcc -std=gnu99 -m64 -shared -s -mwindows -o R.dll R.def console.o dynload.o
editor.o embeddedR.o extra.o malloc.o opt.o pager.o preferences.o psignal.o
rhome.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o
dllversion.o ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a
getline/gl.a ../extra/xdr/libxdr.a ../extra/intl/libintl.a
../extra/trio/libtrio.a ../extra/tzone/libtz.a ../extra/tre/libtre.a
-fopenmp -L. -lgfortran -lquadmath -lRblas -L../../lib -lRgraphapp -lRiconv
-lcomctl32 -lversion -L"D:/R64/extsoft"/lib/x64 -lpcre -lz -lbz2 -llzma
-L"D:/home/ICU"/lib/x64 -lsicuin -lsicuuc -lsicudt -lstdc++
D:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lRgraphapp
collect2.exe: error: ld returned 1 exit status
make[4]: *** [R.dll] Error 1
make[3]: *** [../../bin/x64/R.dll] Error 2
make[2]: *** [rbuild] Error 2
make[1]: *** [all] Error 2
make: *** [distribution] Error 2


Would it be possible for you to share your MkRules.local and Makefile.win
files?

Also as per your website, we don't need the line:

*TCL_VERSION = 86 *

in the file *Makeconf *inside *R_HOME/src/gnuwin32/fixed/etc*. Hence I am
commenting it. Also I noticed, just above this line (line 60), the
following line which specifies Rgraphapp:

*GRAPHAPP_LIB = -lRgraphapp*
# TCL_VERSION = 86
# was a reference to Rzlib.dll in R < 3.2.0
ZLIB_LIBS = -lz


This looks like the step which is causing the error. Anything I can try out
at this point?

Regards,
Indrajit


On Fri, Feb 9, 2018 at 9:58 PM, Avraham Adler <avraham.adler at gmail.com>
wrote:

> On Fri, Feb 9, 2018 at 9:29 AM, Kenny Bell <kmbell56 at gmail.com> wrote:
> > I suggest that you work off the build process in the  rwinlib repository
> so
> > you are starting from something that you know works and already
> incorporates
> > the set of dependencies you need.
>
> Hello, Kenny.
>
> For what it's worth I've been successfully building R+OpenBLAS on
> Windows64 since 2013, which I believe predates rwinlib on github, but
> I may be mistaken. Thus, I don't think I'm incorrect in saying that
> the instructions I provide are also "something that you know works" :)
> I did make the explicit assumption that people will successfully
> follow the instructions at R Installation & Administration. Perhaps
> that is too much to ask.
>
> Thanks,
>
> Avi
>

	[[alternative HTML version deleted]]



[Rd] R Compilation gets stuck on Windows 64
Indrajit Sen Gupta