From murdoch at stats.uwo.ca  Tue Sep 11 20:20:25 2007
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Tue, 11 Sep 2007 14:20:25 -0400
Subject: [Rd] gcc-sjlj
In-Reply-To: <71257D09F114DA4A8E134DEAC70F25D3097BE64D@groamrexm03.amer.pfizer.com>
References: <71257D09F114DA4A8E134DEAC70F25D3097BE64D@groamrexm03.amer.pfizer.com>
Message-ID: <46E6DC69.7000309@stats.uwo.ca>

On 11/09/2007 1:24 PM, Kuhn, Max wrote:
> Everyone,
> 
> I'm running R CMD check on a package using the 2.6.0 alpha version:
> 
>> sessionInfo()
> R version 2.6.0 alpha (2007-09-09 r42809) 
> i386-pc-mingw32 
> 
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base   
> 
> The check is failing with this error:
> 
> * checking whether package 'caret' can be installed ... ERROR
> Installation failed.
> 
> Specifically:
> 
>   making DLL ...
> making caret.d from caret.c
> make[3]: gcc-sjlj: Command not found
> make[3]: [caret.d] Error 127 (ignored)
> cat: caret.d: No such file or directory
> make[3]: [makeMakedeps] Error 1 (ignored)
> gcc-sjlj  -std=gnu99  -Ic:/PROGRA~1/R/R260AL~1/include    -Wall -O3  -c
> caret.c -o caret.o
> make[3]: gcc-sjlj: Command not found
> make[3]: *** [caret.o] Error 127
> make[2]: *** [srcDynlib] Error 2
> make[1]: *** [all] Error 2
> make: *** [pkg-caret] Error 2
> 
> Is there a new gcc version that I need to get or was a space omitted in
> the gcc command? (This uses gcc version 3.4.5 (mingw special)). I
> checked the release notes and the "Building R for Windows" site and I
> didn't see any mention of version changes. I've been able to run RCMD
> check with previous versions on the same package without error.

gcc 4 is the new default, specifically the MinGW "setjmp/longjmp" build, 
gcc-sjlj.  If you want to use the old 3.4.5, you need to edit MkRules, 
setting BUILD=GCC3.

For now, the Windows toolset I put together 
(www.murdoch-sutherland.com/Rtools) includes both versions, so you might 
want to download a new copy rather than continuing to use the old one; 
sometime after the release of 2.6.0 I'll drop 3.4.5 from the tools.

Duncan Murdoch



[Rd] gcc-sjlj
Duncan Murdoch