[R] Building R from source

YONGWAN CHUN chun.49 at osu.edu
Thu Nov 16 06:15:20 CET 2006


Dear Prof. Ripley, 


Finally, I succeeded in building R from source. I just changed WINHELP part in 'MkRules' file from WINHELP = CHM to WINHELP = NO. Then R was built successfully. 

Thank you so much. 

Yongwan Chun

----- Original Message -----
From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
Date: Tuesday, November 14, 2006 3:01 am
Subject: Re: [R] Building R from source

> We have seen one other report of this (from someone cross-
> compiling) but 
> cannot reproduce it, and pcre_dfa.exec.o should not be being 
> linked in.
> 
> Please do check against the R-admin manual (the definitive source) 
> that 
> you have the same versions of tools as recommended.  It looks like 
> this is 
> a bug in some version of ld.exe (from binutils).
> 
> A possible workaround is to edit src/extra/pcre/Makefile.win and 
> remove 
> pcre_dfa_exec.c from CSOURCES.  Then delete libpcre.a, and try 
> making 
> again.  But if you have a buggy ld.exe, I would want to use a non-
> buggy 
> one.
> 
> On Mon, 13 Nov 2006, YONGWAN CHUN wrote:
> 
> > Hello,
> >
> >
> > I was trying to build R from source on Windows XP. I installed 
> software 
> > which are mentioned from the follow web page 
> > http://www.murdoch-sutherland.com/Rtools/ (Last accessed on Nov. 
> 13th, 
> > 2006) . Unfortunately, I got error messages whenever I run 'make 
> all 
> > recommended' without modifying 'MkRules' file. I have removed 
> software 
> > and reinstalled them several times but I still failed to get it 
> done. 
> > The below message is what I got.
> >
> > If anybody gives information, I would appreciate it very much.
> >
> > Thanks,
> >
> > Yongwan
> >
> > =======================
> > D:\Rsource\R-2.4.0\src\gnuwin32>make all recommended
> > make[1]: `Rpwd.exe' is up to date.
> > make[4]: Nothing to be done for `svnonly'.
> > installing C headers
> > make[2]: `all' is up to date.
> > make[2]: `libRblas.dll.a' is up to date.
> > make[5]: Nothing to be done for `svnonly'.
> > installing C headers
> > make --no-print-directory -C ../extra/intl -f Makefile.win
> > make --no-print-directory -C ../appl  OPTFLAGS='-O3 -Wall -
> pedantic -std=gnu99' FOPTFLAGS='-O3 -Wall' -f Makefile.win
> > make --no-print-directory -C ../nmath OPTFLAGS='-O3 -Wall -
> pedantic -std=gnu99' -f Makefile.win
> > make --no-print-directory -C ../main  OPTFLAGS='-O3 -Wall -
> pedantic -std=gnu99 -DLEA_MALLOC' FFLAGS='-O3 -Wall' -f Makef
> > ile.win
> > make --no-print-directory -C ./graphapp OPTFLAGS='-O3 -Wall -
> pedantic -std=gnu99'
> > make --no-print-directory -C ./getline OPTFLAGS='-O3 -Wall -
> pedantic -std=gnu99'
> > make[4]: `gl.a' is up to date.
> > make -f Makefile.win chartables.h
> > make[5]: `chartables.h' is up to date.
> > make -f Makefile.win makeMakedeps
> > make -f Makefile.win libpcre.a
> > make[5]: `libpcre.a' is up to date.
> > make[4]: Nothing to be done for `all'.
> > make[4]: Nothing to be done for `all'.
> > gcc  -shared -s -mwindows -o R.dll R.def console.o dataentry.o 
> dynload.o edit.o editor.o embeddedR.o extra.o opt.o pager
> > .o preferences.o psignal.o rhome.o rui.o run.o shext.o sys-
> win32.o system.o e_pow.o malloc.o ../main/libmain.a ../appl/l
> > ibappl.a ../nmath/libnmath.a graphapp/ga.a getline/gl.a 
> ../extra/xdr/libxdr.a ../extra/zlib/libz.a ../extra/pcre/libpcre
> > .a ../extra/bzip2/libbz2.a ../extra/intl/libintl.a 
> ../extra/trio/libtrio.a dllversion.o -L. -lg2c -lRblas -lcomctl32 -lv
> > ersion
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x15f9): undefined reference to `_pcre_ucp_findprop'
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1639): undefined reference to `_pcre_ucp_findprop'
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1736): undefined reference to `_pcre_ucp_findprop'
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1770): undefined reference to `_pcre_ucp_findprop'
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x184d): undefined reference to `_pcre_ucp_findprop'
> > 
> ../extra/pcre/libpcre.a(pcre_dfa_exec.o):pcre_dfa_exec.c:(.text+0x1e0f): more undefined references to `_pcre_ucp_findpro
> > p' follow
> > collect2: ld returned 1 exit status
> > make[3]: *** [R.dll] Error 1
> > make[2]: *** [../../bin/R.dll] Error 2
> > make[1]: *** [rbuild] Error 2
> > make: *** [all] Error 2
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-
> project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> 
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>



More information about the R-help mailing list