Thanks Dirk.<div><br></div><div>Davor, may I ask you what you get if you type</div><div><br></div><div>gcc --version</div><div><br></div><div>in your terminal? I get </div><div><br></div><div>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)</div>
<div><br></div><div>which I thought to be the latest version (because I just upgraded that with XCode on the AppStore). However, I see that Simon Urbanek on <a href="http://r.research.att.com/tools/">http://r.research.att.com/tools/</a> posts a version</div>
<div><br></div><div><span style="font-family:myriad,meta,arial,helvetica;background-color:rgb(255,255,255)">gcc-4.2 (Apple build 5666.3) with GNU Fortran 4.2.4 for Mac OS X 10.7 (Lion)</span></div><div><font face="myriad, meta, arial, helvetica"><br>
</font></div><div><font face="myriad, meta, arial, helvetica">of the gcc. The build number is higher, I assume this means it's more up to date? Should I get that one instead?</font></div><div><font face="myriad, meta, arial, helvetica"><br>
</font></div><div><font face="myriad, meta, arial, helvetica">thanks.</font></div><div><font face="myriad, meta, arial, helvetica">Florian<br></font><br><div class="gmail_quote">On 23 August 2012 14:11, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 23 August 2012 at 13:22, Florian Oswald wrote:<br>
| Hi Dirk,<br>
|<br>
| my R version is<br>
| R version 2.15.1 (2012-06-22)<br>
<br>
</div>Good.<br>
<br>
| Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)<br>
<br>
Oh well. I don't have that platform --- and it requires a fair amount of<br>
tweaking and getting the pieces right because, hey, that's how Apple rolls.<br>
<br>
If you can't get that sorted out with all the hints by Simon, the r-sig-mac<br>
list and other OS X users here (as it seems to work fine for some) --- then I<br>
would suggest to punt and install something like Ubuntu in a virtual<br>
machine.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
| I ran the tests in<br>
| /Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rcpp/unitTests<br>
|<br>
| ➜  unitTests  RunAllRcppTests="yes" Rscript -e 'library(inline); library<br>
| (RUnit); cppfunction <- function(...) cxxfunction(..., plugin="Rcpp");<br>
|  runTestFile("runit.Module.client.package.R")'<br>
|<br>
| and got the following (identical) error:<br>
|<br>
| R(7916) malloc: *** error for object 0x7fff7247f860: pointer being freed was<br>
| not allocated<br>
| *** set a breakpoint in malloc_error_break to debug<br>
| sh: line 1:  7916 Abort trap: 6           '/Library/Frameworks/R.framework/<br>
| Resources/bin/R' --arch=x86_64 --no-save --slave < /var/folders/bd/<br>
| xhwzz96x2xl6b02bwt4myhy00000gn/T//RtmpeLGmvL/file1e8c1514ade9<br>
| ERROR: loading failed for ‘x86_64’<br>
| * removing ‘/private/var/folders/bd/xhwzz96x2xl6b02bwt4myhy00000gn/T/Rtmpj3NgcG<br>
| /file1e7867afb0d/templib/testRcppClass’<br>
| Loading required package: testRcppClass<br>
| Timing stopped at: 21.775 2.057 47.64 <br>
| Error in func() : object 'stdNumeric' not found<br>
| In addition: Warning messages:<br>
| 1: In install.packages("testRcppClass_0.1.tar.gz", "templib", repos = NULL,  :<br>
|   installation of package ‘testRcppClass_0.1.tar.gz’ had non-zero exit status<br>
| 2: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return<br>
| = TRUE,  :<br>
|   there is no package called ‘testRcppClass’<br>
|  done successfully.<br>
|<br>
| Number of test functions: 1 <br>
| Number of errors: 1 <br>
| Number of failures: 0 <br>
|<br>
| Best<br>
| Florian<br>
|<br>
|<br>
| On 23 August 2012 13:07, Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br>
|<br>
|<br>
|     Florian,<br>
|<br>
|     On 23 August 2012 at 12:45, Florian Oswald wrote:<br>
|     | Davor,<br>
|     | I'm at a loss for words. I get this error consistently ONLY when trying<br>
|     to<br>
|     | install Rcpp.package.skeleton. I tried many times, always removed .o and<br>
|     so.<br>
|     | files. I did not come across this problem with any other package before,<br>
|     also<br>
|     | ones which are using Rcpp. I can install a similarly simple package that<br>
|     Jelmer<br>
|     | Ypma kindly put together for me to try out (attached). It differs from<br>
|     | Rcpp.package.skeleton in that it only defines a single class that<br>
|     contains all<br>
|     | functions. I guess that shouldn't matter, but apart from that I can find<br>
|     few<br>
|     | differences.<br>
|<br>
|     I may have asked this before, but what R version so you use?<br>
|<br>
|     Can you run the unit tests involving modules and packages? Eg<br>
|<br>
|        $ cd ~/svn/rcpp/pkg/Rcpp/inst/unitTests/       ## adjust for your<br>
|     sources<br>
|        $ RunAllRcppTests="yes" Rscript -e 'library(inline);library(RUnit); \<br>
|               cppfunction <- function(...) cxxfunction(..., plugin="Rcpp"); \<br>
|               runTestFile("runit.Module.client.package.R")'<br>
|<br>
|     (where the code line was wrapped.  Here, this works as expected and ends in<br>
|<br>
|        [...]<br>
|        * DONE (testRcppClass)<br>
|        Loading required package: testRcppClass<br>
|        Loading required package: Rcpp<br>
|         done successfully.<br>
|<br>
|        Number of test functions: 1<br>
|        Number of errors: 0<br>
|        Number of failures: 0<br>
|        edd@max:~/svn/rcpp/pkg/Rcpp/inst/unitTests$<br>
|<br>
|<br>
|     Dirk<br>
|<br>
|     --<br>
|     Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
|<br>
|<br>
<br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</div></div></blockquote></div><br></div>