[Rcpp-devel] Rcpp on R 2.12.0 / windows / gcc 4.5

Romain Francois romain at r-enthusiasts.com
Thu Sep 30 21:21:43 CEST 2010


I tried now with the newer R alpha (rev 53067) and I'm afraid I still 
get the same errors.


When however I run the tests manually, everything goes fine:


$ R --arch 64
 > require( Rcpp )
 > require( inline )
 > require( RUnit )
# for example
 > runTestFile( "Rcpp/inst/unitTests/runit.sugar.R" )


Executing test function test.sugar.abs  ...  done successfully.



Executing test function test.sugar.all.equal  ...  done successfully.



Executing test function test.sugar.all.greater  ...  done successfully.



Executing test function test.sugar.all.greater.or.equal  ...  done 
successfully.



Executing test function test.sugar.all.less  ...  done successfully.



Executing test function test.sugar.all.less.or.equal  ...  done 
successfully.



Executing test function test.sugar.all.not.equal  ...  done successfully.



Executing test function test.sugar.all.one.equal  ...  done successfully.



Executing test function test.sugar.all.one.greater  ...  done successfully.



Executing test function test.sugar.all.one.greater.or.equal  ...  done 
successfully.



Executing test function test.sugar.all.one.less  ...  done successfully.



Executing test function test.sugar.all.one.less.or.equal  ...  done 
successfully.



Executing test function test.sugar.all.one.not.equal  ...  done 
successfully.



Executing test function test.sugar.any.equal  ...  done successfully.



Executing test function test.sugar.any.equal.not  ...  done successfully.



Executing test function test.sugar.any.greater  ...  done successfully.



Executing test function test.sugar.any.greater.or.equal  ...  done 
successfully.



Executing test function test.sugar.any.isna  ...  done successfully.



Executing test function test.sugar.any.less  ...  done successfully.



Executing test function test.sugar.any.less.or.equal  ...  done 
successfully.



Executing test function test.sugar.any.not.equal  ...  done successfully.



Executing test function test.sugar.assignment  ...  done successfully.



Executing test function test.sugar.beta  ...  done successfully.



Executing test function test.sugar.ceil  ...  done successfully.



Executing test function test.sugar.choose  ...  done successfully.



Executing test function test.sugar.complex  ...  done successfully.



Executing test function test.sugar.constructor  ...  done successfully.



Executing test function test.sugar.diag  ...  done successfully.



Executing test function test.sugar.diff  ...  done successfully.



Executing test function test.sugar.divides  ...  done successfully.



Executing test function test.sugar.exp  ...  done successfully.



Executing test function test.sugar.floor  ...  done successfully.



Executing test function test.sugar.gamma  ...  done successfully.



Executing test function test.sugar.head  ...  done successfully.



Executing test function test.sugar.ifelse  ...  done successfully.



Executing test function test.sugar.isna  ...  done successfully.



Executing test function test.sugar.isna.isna  ...  done successfully.



Executing test function test.sugar.lapply  ...  done successfully.



Executing test function test.sugar.lbeta  ...  done successfully.



Executing test function test.sugar.lchoose  ...  done successfully.



Executing test function test.sugar.log1p  ...  done successfully.



Executing test function test.sugar.matrix.outer  ...  done successfully.



Executing test function test.sugar.matrix.row  ...  done successfully.



Executing test function test.sugar.minus  ...  done successfully.



Executing test function test.sugar.plus  ...  done successfully.



Executing test function test.sugar.plus.all  ...  done successfully.



Executing test function test.sugar.plus.seqlen  ...  done successfully.



Executing test function test.sugar.pmax  ...  done successfully.



Executing test function test.sugar.pmax.one  ...  done successfully.



Executing test function test.sugar.pmin  ...  done successfully.



Executing test function test.sugar.pmin.one  ...  done successfully.



Executing test function test.sugar.pow  ...  done successfully.



Executing test function test.sugar.psigamma  ...  done successfully.



Executing test function test.sugar.Range  ...  done successfully.



Executing test function test.sugar.rep  ...  done successfully.



Executing test function test.sugar.rev  ...  done successfully.



Executing test function test.sugar.sapply  ...  done successfully.



Executing test function test.sugar.sapply.list  ...  done successfully.



Executing test function test.sugar.sapply.rawfun  ...  done successfully.



Executing test function test.sugar.sapply.square  ...  done successfully.



Executing test function test.sugar.seqlaong  ...  done successfully.



Executing test function test.sugar.seqlen  ...  done successfully.



Executing test function test.sugar.sign  ...  done successfully.



Executing test function test.sugar.tail  ...  done successfully.



Executing test function test.sugar.times  ...  done successfully.



Executing test function test.sugar.unary.minus  ...  done successfully.



Executing test function test.sugar.wrap  ...  done successfully.

Number of test functions: 67
Number of errors: 0
Number of failures: 0

 > .Platform
$OS.type
[1] "windows"

$file.sep
[1] "/"

$dynlib.ext
[1] ".dll"

$GUI
[1] "RTerm"

$endian
[1] "little"

$pkgType
[1] "win.binary"

$path.sep
[1] ";"

$r_arch
[1] "x64"


Romain

Le 30/09/10 15:04, Uwe Ligges a écrit :
>
>
> On 30.09.2010 14:17, Romain Francois wrote:
>> Hmm. This failed on win builder.
>>
>>> Dear package maintainer,
>>>
>>> this notification has been generated automatically.
>>> Your package Rcpp_0.8.6.3.tar.gz has been built (if working) and
>>> checked for Windows.
>>> Please check the log files and (if working) the binary package at:
>>> http://win-builder.r-project.org/7zee4m5kHIjB
>>> The files will be removed after roughly 72 hours.
>>> Installation time in seconds: 87
>>> Check time in seconds: 2385
>>> Check result: ERROR
>>> R version 2.12.0 alpha (2010-09-27 r53048) (32+64-bit)
>>
>> I initially tested it with
>>
>> $ Rscript --arch 64 -e "Rcpp:::test()"
>>
>> which worked fine.
>
> Brian just said he fixed it. Can you try with the very recent svn from
> minutes (or few hours) ago?
>
> Best,
> Uwe
>
>
>> R CMD check gives me the same failures as win builder... more work
>> required then :-(
>>
>>
>> Le 30/09/10 13:45, Romain Francois a écrit :
>>> Hello,
>>>
>>> I spent some of my time this morning tweaking Rcpp so that it builds and
>>> checks on the R 2.12.0 alpha (the latest snapshot) on windows with the
>>> latest Rtools on both archs.
>>>
>>> It appears to work fine at the latest svn revision (rev 2259).
>>>
>>> I've sent it to the R-devel branch of win builder and posted a tarball
>>> here: http://addictedtor.free.fr/misc/rcpp/Rcpp_0.8.6.3.tar.gz
>>> I'd appreciate if other people would also try it, I'm always a bit
>>> insecure when it comes to windows.
>>>
>>> Our aim is to synchronize release of Rcpp 0.8.7 with the release of R
>>> 2.12.0
>>>
>>>
>>> Issues were:
>>> - the hello function in the module that is part of the testRcppmodule
>>> package:
>>>
>>> std::string hello() {
>>> throw std::range_error( "boom" ) ;
>>> }
>>>
>>> This makes windows (or gcc 4.5, or something else) unhappy. This is
>>> probably an issue with throw declarations, exceptions accross
>>> translation unites, etc ... as we have seen before. For now, I commented
>>> it out. This is low priority.
>>>
>>> - fast indexing, i.e. as provided by the Rcpp::Fast class makes windows
>>> unhappy, so I am only using Fast on other platforms. See the #ifndef
>>> WIN32 in the Extractor.h file. This seems like a good enough workaround
>>> for now. People who want faster indexing on windows are welcome to
>>> submit a (((tested))) patch. Note that this is possible that the newer
>>> compiler produces better code, so the need for the Rcpp::Fast trick
>>> might not be needed at all.
>>>
>>> Romain


-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/cCmbgg : Rcpp 0.8.6
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
`- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th




More information about the Rcpp-devel mailing list