Re: [Rd] Cross compiling with R250

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon, 30 Apr 2007 18:08:45 +0100 (BST)

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

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 30 Apr 2007 - 21:23:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 May 2007 - 03:32:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.