From ripley at stats.ox.ac.uk  Thu Oct 11 12:35:58 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 11 Oct 2007 11:35:58 +0100 (BST)
Subject: [Rd] R260 cross-compilation
In-Reply-To: <470DF7AC.1070704@ipimar.pt>
References: <470DF7AC.1070704@ipimar.pt>
Message-ID: <Pine.LNX.4.64.0710111119021.16965@gannet.stats.ox.ac.uk>

I don't know what you mean about 'the Makefile': the R sources contain 
all the makefiles needed.

Things are different for 2.6.0 but the procedure is (still) described in 
the R-admin manual (section 3.1.9 in the version I am looking at), and it 
has been tested.  Looks like you have the settings in MkRules incorrectly 
configured, and probably have not built your own cross-compiler for the 
current gcc-4.2.x.


On Thu, 11 Oct 2007, ernesto wrote:

> Hi,
>
> I'm trying to cross compile R260 in a ubuntu 6.06 linux. I downloaded
> the Makefile for 251 and simply replaced the R version by 260. However
> I'm getting an error about mingw.
>
> ernesto at gandalf:~/ipimar/devel/R/ccompile260$ make R
> export
> PATH=/home/ernesto/ipimar/devel/R/ccompile260/cross-tools/bin:/home/ernesto/ipimar/devel/R/ccompile260/cross-tools/i586-mingw32/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games;
> \
>        cd
> /home/ernesto/ipimar/devel/R/ccompile260/WinR/R-2.6.0/src/gnuwin32/; \
>        make; \
>        cd /home/ernesto/ipimar/devel/R/ccompile260/WinR; \
>        tar zcf Win-R-2.6.0.tgz R-2.6.0
> make[1]: Entering directory
> `/home/ernesto/ipimar/devel/R/ccompile260/WinR/R-2.6.0/src/gnuwin32'
> make --no-print-directory -C front-ends Rpwd
> make -C ../../include -f Makefile.win version
> make Rpwd.exe
> i586-mingw32-gcc-sjlj  -std=gnu99 -I../../include  -O3 -Wall -pedantic
> -c rpwd.c -o rpwd.o
> make[4]: i586-mingw32-gcc-sjlj: Command not found
> make[4]: *** [rpwd.o] Error 127
> make[3]: *** [Rpwd] Error 2
> make[2]: *** [front-ends/Rpwd.exe] Error 2
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/home/ernesto/ipimar/devel/R/ccompile260/WinR/R-2.6.0/src/gnuwin32'
>
> How can I fix this ? Is there a new Makefile for R260 ?
>
> Thanks
>
> EJ
>
> ______________________________________________
> 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



[Rd] R260 cross-compilation
Prof Brian Ripley