Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Davor Cubranic
The same, it came with Xcode: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) My guess is that there is some kind of mismatch in libraries. Do you have Macports or anything else development/computing-related other than R and Xcode? Do you s

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Florian Oswald
Thanks Dirk. Davor, may I ask you what you get if you type gcc --version in your terminal? I get i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) which I thought to be the latest version (because I just upgraded that with XCode on the AppSto

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Dirk Eddelbuettel
On 23 August 2012 at 13:22, Florian Oswald wrote: | Hi Dirk, | | my R version is | R version 2.15.1 (2012-06-22) Good. | Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) Oh well. I don't have that platform --- and it requires a fair amount of tweaking and getting the pieces right because, he

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Florian Oswald
Hi Dirk, my R version is R version 2.15.1 (2012-06-22) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) I ran the tests in /Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rcpp/unitTests ➜ unitTests RunAllRcppTests="yes" Rscript -e 'library(inline); library(RUnit); cppfunction

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Dirk Eddelbuettel
Florian, On 23 August 2012 at 12:45, Florian Oswald wrote: | Davor, | I'm at a loss for words. I get this error consistently ONLY when trying to | install Rcpp.package.skeleton. I tried many times, always removed .o and so. | files. I did not come across this problem with any other package before

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-22 Thread Davor Cubranic
Hi Florian, I don't see anything different with your package. I could even install the ZIP file you sent me, and saw no errors. Do you get this error consistently when you install? Remember to remove the .o and .so files inside 'mypack' to start with a clean slate. Davor On 2012-08-16, at 12

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Davor Cubranic
That's very strange. Try zipping up 'mypack' source directory and email it to me so I can try it here. I'd like to ensure that there are no differences in package contents between us, in which case it must be the build environment or libraries. Davor On 12-08-15 03:29 PM, Florian Oswald wrote

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
Thanks Davor. I have exactly the same computer as you have, and my compiler calls are identical as well. upgraded to Xcode 4.4 just to make sure. I get the same error: R(420) malloc: *** error for object 0x7fff7247f860: pointer being freed was not allocated *** set a breakpoint in malloc_error_bre

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Davor Cubranic
Works fine for me: > bash-3.2$ R CMD INSTALL mypack --no-multiarch > * installing to library > '/Library/Frameworks/R.framework/Versions/2.15/Resources/library' > * installing *source* package 'mypack' ... > ** libs > *** arch - x86_64 > g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resource

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Dirk Eddelbuettel
On 15 August 2012 at 14:56, Florian Oswald wrote: | I tried out your RcppBDT package and I could build it without any | problem, and it works in R. It's quite strange. I've used Rcpp many | times before without problem, most of the time with inline tough. I'm | using the apple default compiler llv

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
I tried out your RcppBDT package and I could build it without any problem, and it works in R. It's quite strange. I've used Rcpp many times before without problem, most of the time with inline tough. I'm using the apple default compiler llvm-g++-4.2. Thanks for any other suggestions. I'll try to r

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Dirk Eddelbuettel
Florian, I cannot reproduce that on Linux -- just did a quick test from the command-line: edd@max:~$ cd /tmp/ edd@max:/tmp$ r -lRcpp -e'Rcpp.package.skeleton("mypack",module=TRUE)' Attaching package: ‘utils’ The following object(s) are masked from ‘package:Rcpp’: .DollarNames, prompt Cre

[Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
I am having trouble with setting up a package that uses modules. I did Rcpp.package.skeleton("mypack",module=TRUE) and changed nothing in the source code. In the console I did R CMD INSTALL mypack --no-multiarch it compiles fine it seems, but it cannot load the package. I get the following erro