Andre Mikulec
2019-Feb-16 10:12 UTC
[Rd] Trying to compile R 3.5.2 - 32 bit R - on Windows 10 64 bit - with ICU support
Hi, I am trying to compile R with ICU support. I am following https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-source I have downloaded and extracted https://www.stats.ox.ac.uk/pub/Rtools/goodies/ICU_531.zip to W:\R-3.5._\App\R-Portable\ICU I have modified MkRules.local # set to use ICU USE_ICU = YES # path to parent of ICU headers ICU_PATH = w:/R-3.5._/App/R-Portable/ICU I have done export R_ICU_LOCALE=en_US When I try to compile ( 32 bit compile ), I am getting these errors. w:/Rtools35/mingw_32/bin/gcc -std=gnu99 -m32 -shared -s -mwindows -o R.dll R.def console.o dynload.o editor.o embeddedR.o extra.o malloc.o opt.o pager.o pr eferences.o psignal.o rhome.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o dllversion.o e_pow.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../../bin/i386 -lRgraphapp -lRiconv -lcomctl32 -lwinmm -lversion -L"../../extsoft"/lib/i386 -lpcre -lz -lbz2 -llzma -L "w:/R-3.5._/App/R-Portable/ICU"/lib/i386 -lsicuin -lsicuuc -lsicudt -lstdc++ w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x15): undefined reference to `__gxx_personality_sj0' w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x2b): undefined reference to `_Unwind_SjLj_Register' w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0xde): undefined reference to `_Unwind_SjLj_Unregister' w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0xf5): undefined reference to `_Unwind_SjLj_Unregister' w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x13e): undefined reference to `_Unwind_SjLj_Resume' Thanks Andre [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> [[alternative HTML version deleted]]
Jeroen Ooms
2019-Feb-16 16:04 UTC
[Rd] Trying to compile R 3.5.2 - 32 bit R - on Windows 10 64 bit - with ICU support
On Sat, Feb 16, 2019 at 11:13 AM Andre Mikulec <andre_mikulec at hotmail.com> wrote:> > Hi, > > I am trying to compile R with ICU support.Are you aware that the default R for Windows installation from CRAN has ICU support?> I am following > https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-sourceThese instructions are unfortunately outdated. The scripts and instructions used to build the current version of R for Windows can be found here: https://github.com/rwinlib/base#readme> I have downloaded and extracted > https://www.stats.ox.ac.uk/pub/Rtools/goodies/ICU_531.zipThat build of ICU was for the previous toolchain (up to R 3.2.5). You need to use the ICU build which is included with Rtools (if you checked the icu checkbox during the Rtools installation). The scripts mentioned above will do this automatically.
Andre Mikulec
2019-Feb-16 21:30 UTC
[Rd] Trying to compile R 3.5.2 - 32 bit R - on Windows 10 64 bit - with ICU support
Jeroen Ooms, O.K. thanks. " These instructions are unfortunately outdated. The scripts and instructions used to build the current version of R for Windows can be found here: https://github.com/rwinlib/base#readme " I will try that. " Are you aware that the default R for Windows installation from CRAN has ICU support? " Yes. (Actually I am trying to build an R with debugging symbols so that I may 'export' and load some R internal debugging symbols into gdb.) Thanks, Andre ________________________________ From: Jeroen Ooms <jeroenooms at gmail.com> Sent: Saturday, February 16, 2019 11:04 AM To: Andre Mikulec Cc: r-devel at r-project.org it - with ICU support On Sat, Feb 16, 2019 at 11:13 AM Andre Mikulec <andre_mikulec at hotmail.com> wrote:> > Hi, > > I am trying to compile R with ICU support.has ICU support?> I am following > https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-sourceThese instructions are unfortunately outdated. The scripts and found here: https://github.com/rwinlib/base#readme> I have downloaded and extracted > https://www.stats.ox.ac.uk/pub/Rtools/goodies/ICU_531.zipThat build of ICU was for the previous toolchain (up to R 3.2.5). You need to use the ICU build which is included with Rtools (if you checked the icu checkbox during the Rtools installation). The scripts mentioned above will do this automatically. [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> [[alternative HTML version deleted]]
Tomas Kalibera
2019-Feb-18 09:53 UTC
[Rd] Trying to compile R 3.5.2 - 32 bit R - on Windows 10 64 bit - with ICU support
On 2/16/19 11:12 AM, Andre Mikulec wrote:> Hi, > > I am trying to compile R with ICU support. > > I am following > https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-source > > I have downloaded and extracted > https://www.stats.ox.ac.uk/pub/Rtools/goodies/ICU_531.zip > to > W:\R-3.5._\App\R-Portable\ICU > > I have modified MkRules.local > > # set to use ICU > USE_ICU = YES > # path to parent of ICU headers > ICU_PATH = w:/R-3.5._/App/R-Portable/ICUI also build recent versions of R following the documentation, with ICU, but have not run into these problems. Normally I use RTools 3.4 but now I tested just the build using RTools 3.5 and the linking went fine. According to the error messages, the linking problems _may_ be due to incompatible exception handling in compilers used (e.g. when linking a library that has been built by an older version of the compiler than the one you are using to link via / build other parts of the application). Best Tomas> > I have done > > export R_ICU_LOCALE=en_US > > When I try to compile ( 32 bit compile ), I am getting these errors. > > w:/Rtools35/mingw_32/bin/gcc -std=gnu99 -m32 -shared -s -mwindows -o R.dll R.def console.o dynload.o editor.o embeddedR.o extra.o malloc.o opt.o pager.o pr > eferences.o psignal.o rhome.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o dllversion.o e_pow.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../../bin/i386 -lRgraphapp -lRiconv -lcomctl32 -lwinmm -lversion -L"../../extsoft"/lib/i386 -lpcre -lz -lbz2 -llzma -L > "w:/R-3.5._/App/R-Portable/ICU"/lib/i386 -lsicuin -lsicuuc -lsicudt -lstdc++ > w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x15): undefined reference to `__gxx_personality_sj0' > w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x2b): undefined reference to `_Unwind_SjLj_Register' > w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0xde): undefined reference to `_Unwind_SjLj_Unregister' > w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0xf5): undefined reference to `_Unwind_SjLj_Unregister' > w:/R-3.5._/App/R-Portable/ICU/lib/i386/libsicuin.a(ucol.ao):ucol.cpp:(.text+0x13e): undefined reference to `_Unwind_SjLj_Resume' > > Thanks > Andre > > > > [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel