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
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
Here is what I noted down for our system. To reset src/gnuwin32/MkRules as appropriate BUILD=CROSS## if cross-building, is this gcc3 or gcc4?CROSS-GCC=gcc3 R_EXE='/home/jhz22/RCrossBuild/LinuxR/bin/R'> Date: Thu, 11 Oct 2007 11:15:08 +0100> From: ernesto@ipimar.pt> To: r-devel@stat.math.ethz.ch> Subject: [Rd] R260 cross-compilation> > 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@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@r-project.org mailing list> https://stat.ethz.ch/mailman/listinfo/r-devel _________________________________________________________________ 100’s of Music vouchers to be won with MSN Music [[alternative HTML version deleted]]