[Rd] Cross compiling with R250

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Apr 30 19:08:45 CEST 2007


Have you actually tried this recently? If you don't set R_EXE you get
a fatal error:

---------- Making package base ------------
   adding build stamp to DESCRIPTION
/bin/sh: I failed to read the instructions to set R_EXE in MkRules: 
command not found

And MkRules says

# path (possibly full path) to same version of R on the host system
R_EXE='I failed to read the instructions to set R_EXE in MkRules'


On Mon, 30 Apr 2007, Hin-Tak Leung wrote:

> ernesto wrote:
>> Hi,
>>
>> I wrongly assumed it would use R in the cross compiling directory and I
>> did not found any reference to it on documentation. Obviously my fault,
>> as you say.
>
> The cross-compile section of the admin manual did mention this:
>
> "You also need a working copy of this version of R on Linux: uncomment
>                                  ^^^^^^^^^^^^
> and set R_EXE in MkRules to point to it."
>
> and "this version" is in italic. IMHO, this point isn't emphased or
> prominent enough though. (I would put an underline or set that in bold,
> for example...) I did make the mistake some times ago
> of assuming that cross-compile would take the version of R as much
> as possible from the cross directory rather than from that of native R.
>
> Can I suggest this information be repeated a few more times, and/or
> given more emphasis in that section? :-).
>
> HTL
>
>> Prof Brian Ripley wrote:
>>> You are pretty clearly not cross-compiling 'with R 2.5.0' (sic), as R
>>> 2.5.0 does contain Sys.setenv.
>>>
>>> Looks like the R on Linux you are using is not R 2.5.0, and please
>>> cross-check the instructions.
>>>
>>> This has been tested.
>>>
>>> On Mon, 30 Apr 2007, ernesto wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm cross compiling win R in a linux Ubuntu Edgy and I'm getting an
>>>> error with the utils package. Sys.setenv exists on my R 2.5.0 ...
>>>>
>>>> I'm using the tools provided for R250 in
>>>> http://www.stats.ox.ac.uk/pub/Rtools/i586-cross-tools.tar.bz2
>>>>
>>>> Any ideas ?
>>>>
>>>> Regards
>>>>
>>>> EJ
>>>>
>>>>
>>>> ---------- Making package utils ------------
>>>>  adding build stamp to DESCRIPTION
>>>>  installing NAMESPACE file and metadata
>>>>  preparing package utils for lazy loading
>>>> Error: could not find function "Sys.setenv"
>>>> Execution halted
>>>> make[5]: *** [lazyload] Error 1
>>>> make[4]: *** [all] Error 2
>>>> make[3]: *** [pkg-utils] Error 2
>>>> make[2]: *** [rpackage] Error 1
>>>> make[1]: *** [all] Error 2
>>>> make[1]: Leaving directory
>>>> `/home/ernesto/ipimar/devel/R/ccompile250/WinR/R-2.5.0/src/gnuwin32'
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
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-devel mailing list