Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 12:32 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 11:26, ken.willi...@thomsonreuters.com wrote: > | On 2/22/11 11:13 AM, "Dirk Eddelbuettel" wrote: > | >Just a quick note to say that ... > | > > | >On 22 February 2011 at 10:53, ken.willi...@thomsonreuters.com wro

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 3:21 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 13:49, ken.willi...@thomsonreuters.com wrote: > | On 2/22/11 11:45 AM, "Simon Urbanek" wrote: > | > | > | > > | >On Feb 22, 2011, at 12:32 PM, Dirk Eddelbuettel wrote: >

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 3:56 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 15:32, Simon Urbanek wrote: > | > | On Feb 22, 2011, at 3:21 PM, Dirk Eddelbuettel wrote: > | > | > > | > On 22 February 2011 at 13:49, ken.willi...@thomsonreuters.com wrote: > | &

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 5:12 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 16:53, Simon Urbanek wrote: > | i386 = 32-bit (not that is matters) and the CRAN specs are listed in "CRAN > Package Check Flavors" saying OS X 10.5.8, gcc 4.2.1 (5577 to be precise). > |

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 5:29 PM, wrote: > > > > > On 2/22/11 4:25 PM, "Simon Urbanek" wrote: > >> On Feb 22, 2011, at 5:12 PM, Dirk Eddelbuettel wrote: >> >>> >>> Anyway---I will point our OS X user to source installs. >>>

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 5:32 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 17:25, Simon Urbanek wrote: > | On Feb 22, 2011, at 5:12 PM, Dirk Eddelbuettel wrote: > | > | > > | > On 22 February 2011 at 16:53, Simon Urbanek wrote: > | > | i386 = 32-bit (not

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 5:51 PM, wrote: > > > On 2/22/11 4:33 PM, "Simon Urbanek" wrote: > >> >> On Feb 22, 2011, at 5:29 PM, >> wrote: >> >>> >>> >>> >>> >>> On 2/22/11 4:25

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 6:03 PM, Simon Urbanek wrote: > > On Feb 22, 2011, at 5:51 PM, > wrote: > >> >> >> On 2/22/11 4:33 PM, "Simon Urbanek" wrote: >> >>> >>> On Feb 22, 2011, at 5:29 PM, >>> wrote: >

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 5:46 PM, wrote: > On 2/22/11 4:32 PM, "Dirk Eddelbuettel" wrote: >> >> What boolean test for 'am I on OS X 10.5' can you suggest? > > You could use system("uname -r"), which on my system gives 10.6.0 (even > though my system is 10.6.6) uname -r (and Sys.info()['release']

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 6:28 PM, Dirk Eddelbuettel wrote: > > Ken, > > Could you test the 0.9.1 tarball? Then in > inst/unitTests/runit.Module.client.package.R, apply the diff below: > > -- ie add the new .badOSX function (maybe I'll rename it 'oldOSX') > You have a typo in the call (.basOSX v

Re: [Rcpp-devel] Ancient Rcpp for OS X on CRAN [Was: Building/linking trouble with cxxfunction()]

2011-02-22 Thread Simon Urbanek
On Feb 22, 2011, at 7:35 PM, Dirk Eddelbuettel wrote: > > On 22 February 2011 at 18:56, Simon Urbanek wrote: > | > | On Feb 22, 2011, at 6:28 PM, Dirk Eddelbuettel wrote: > | > | > > | > Ken, > | > > | > Could you test the 0.9.1

Re: [Rcpp-devel] Release candidate (Was: Ancient Rcpp for OS X on CRAN)

2011-02-23 Thread Simon Urbanek
It passes on R-devel, OS X 10.5.8 On Feb 23, 2011, at 10:32 AM, Dirk Eddelbuettel wrote: > > On 23 February 2011 at 09:27, ken.willi...@thomsonreuters.com wrote: > | > | > | On 2/23/11 8:05 AM, "Dirk Eddelbuettel" wrote: > | > | > > | >Thanks again to Simon, Ken and Baptiste for help yester

Re: [Rcpp-devel] Mac problem (possibly not Rcpp's fault)

2011-04-05 Thread Simon Urbanek
On Apr 5, 2011, at 1:09 PM, Romain Francois wrote: > Le 05/04/11 18:58, Jay Emerson a écrit : >> I'm making a guess that the R-Forge setup is having the same problems >> as we are, though -- more than just RcppModels show that same bus >> error. Executive summary: I now have a local success, wit

Re: [Rcpp-devel] Mac problem (possibly not Rcpp's fault)

2011-04-05 Thread Simon Urbanek
On Apr 5, 2011, at 2:31 PM, Dirk Eddelbuettel wrote: > > On 5 April 2011 at 14:00, Simon Urbanek wrote: > | Nope - we do support 10.5 (Leopard) of course. The difference above is that > the latter student has probably an ancient Xcode installed (2.x) whereas we > recommend

Re: [Rcpp-devel] Mac problem (possibly not Rcpp's fault)

2011-04-05 Thread Simon Urbanek
On Apr 5, 2011, at 3:24 PM, Jay Emerson wrote: > Is there some possibility 4.2 might be included in addition to 4.0, > but that 4.0 could be the default behavior? Xcode 3.1.x has definitely both. Unless they messed around with the installation, g++-4.2 will always call gcc 4.2 and g++-4.0 will

Re: [Rcpp-devel] [Rd] Interfacing a C++ class

2011-06-04 Thread Simon Urbanek
On Jun 4, 2011, at 10:31 AM, soeren.vo...@uzh.ch wrote: > Hello > > Apologies for cross-posting, the discussion should (if) go to R-devel, but I > also want to reach the rcpp-devel people. > > My C++ class FOO is a module available through Rcpp, and it works fine and is > -- so far -- bug fre

Re: [Rcpp-devel] [Somewhat OT] New OS X compilers

2012-02-17 Thread Simon Urbanek
On Feb 17, 2012, at 10:22 AM, Dirk Eddelbuettel wrote: > > Via Twitter I came across this post > >http://kennethreitz.com/xcode-gcc-and-homebrew.html > > which implies that there is now a new, official, supported gcc available for > OS X. Could some Rcpp users comment on this? > This

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-26 Thread Simon Urbanek
On Apr 26, 2013, at 6:38 PM, Valentin Kuznetsov wrote: > Dirk, > > having hard-coded path is usually lead to trouble regardless of the OS. Users > may have dedicated system with specific compiler/tools in different location. > What you need is auto-detection of required components. Since /usr/b

Re: [Rcpp-devel] Remove hard-coded path to /usr/bin in Makevars

2013-04-27 Thread Simon Urbanek
On Apr 27, 2013, at 8:47 PM, Valentin Kuznetsov wrote: > Hi Dirk, > environment variable is not that bad and I'm ok with such solution. I'd say something along the lines of : ${INSTALL_NAME_TOOL=/usr/bin/install_name_tool} should be clear enough ... Cheers, S > Valentin. > > On Apr 27, 20

Re: [Rcpp-devel] [R-SIG-Mac] Rcpp 0.8.3 on Mac OS X 10.5.8

2010-07-13 Thread Simon Urbanek
On Jul 13, 2010, at 8:13 AM, Ken Knoblauch wrote: > Thanks. I'm in mode d'attente... > I did not see the exact OS version mentioned anywhere but as Romain pointed out it's working just fine on OS X 10.5.8 with gcc 5577: hagal:~$ gcc --version i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple I

Re: [Rcpp-devel] [Rd] Sections 5.8.1 and 5.8.2 of Writing R Extensions (LinkingTo)

2010-10-27 Thread Simon Urbanek
On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote: > Hello, > > In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern is > suggested > for getting the path to a file in another package: > > PKGB_PATH=Œecho ‚library(packB); cat(system.file("libs", package="packB"))‚ > \ > |

Re: [Rcpp-devel] [OT] Asking for a quick OS X favour

2014-05-12 Thread Simon Urbanek
The symlink is now there. The issue was caused by hiredis is not supporting either configure or DESTDIR so I had to build the tar ball by hand. There may be more issues caused by the lack of basic build features in hiredis, so let me know how it goes. Cheers, Simon Sent from my iPhone > On Ma

[Rcpp-devel] package using Rcpp aborting with: terminate called after throwing an instance of 'Rcpp::not_compatible' inside class__newInstance()

2015-11-19 Thread Simon Urbanek
One package (guitar) that happens to use Rcpp started breaking recently without any change to its own code as follows: > install.packages("guitar",,"http://rforge.net";) > library(guitar) > Repository$new(".") terminate called after throwing an instance of 'Rcpp::not_compatible' what(): exp

Re: [Rcpp-devel] package using Rcpp aborting with: terminate called after throwing an instance of 'Rcpp::not_compatible' inside class__newInstance()

2015-11-19 Thread Simon Urbanek
> On Nov 19, 2015, at 3:59 PM, Qiang Kou wrote: > > Hi, Simon, > > Is there any specific reason to use this? > This is OT, but, yes, git2r didn't exist when we wrote gitgist so we couldn't use it, obviously. Now, someone would have to re-write gitgist to use git2r - if you want to volunteer

Re: [Rcpp-devel] package using Rcpp aborting with: terminate called after throwing an instance of 'Rcpp::not_compatible' inside class__newInstance()

2015-11-21 Thread Simon Urbanek
Many thanks, Dirk! It does indeed fix the problem, very much appreciated! Simon On Nov 21, 2015, at 5:01 PM, Dirk Eddelbuettel wrote: > > On 21 November 2015 at 15:47, Dirk Eddelbuettel wrote: > | > | Simon, Carlos, Prateek, > | > | It's an issue between R and guitar. Rcpp is an bystander.

Re: [Rcpp-devel] lighter source package

2016-02-29 Thread Simon Urbanek
> On Feb 28, 2016, at 2:59 PM, Kevin Ushey wrote: > > What about having a 'configure' script that generates this header file > on package install? > https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Configure-and-cleanup > You don't even need that - it's much easier to simply add a

Re: [Rcpp-devel] Stripping symbols and Cran

2017-09-18 Thread Simon Urbanek
Note that macOS doesn't include debugging info in the objects so stripping is meaningless there. I wasn't on the full thread - which package are we talking about? Cheers, Simon > On Sep 18, 2017, at 5:34 PM, Qiang Kou wrote: > > On OSX, "-strip-all" or "-strip-debug" should work. > > See [1

Re: [Rcpp-devel] R/C++ post on R Devel Blog

2019-04-04 Thread Simon Urbanek
Fernando, there was a pretty big follow-up discussion on R-devel that's worth reading: https://stat.ethz.ch/pipermail/r-devel/2019-March/077560.html but I want to point out that people may have misunderstood the recommendation - if you just use Rcpp (or other means) to get data from R, run some

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Simon Urbanek
Robin, this is unlikely a Mac issue, merely newer compilers give you better error handling pointing to issues in the code that may not have been detected before. If you post the code we can have a look. Also check your tools - the RcppArmadillo error points out that your compiler setup is brok

Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-08 Thread Simon Urbanek
ns/3.6/Resources/library/Rcpp/include" > -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk > -I/usr/local/include -fPIC -Wall -g -O2 -c mod_client.cc > <http://mod_client.cc/> -o mod_client.o > | >> > | >> In file included from mod_client.cc <http://

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Simon Urbanek
Fatima, it means you don't have command line tools installed (they are independent of Xcode and Apple OS upgrades delete things, unfortunately) - try sudo xcode-select —install That should fix the error you see. However, Catalina broke more things so you may look at the links Dirk pointed out

Re: [Rcpp-devel] building shared library error with sourceCpp

2019-12-28 Thread Simon Urbanek
Have removed old installation files, installed command line tools, upgraded > to clang-7 and gfotron6.1. I have added set of compilation files to > ~/.R/Makevars > as mentioned and the file exist there (attached) but there is still no > CommandLineTools directory in Library/Developer

Re: [Rcpp-devel] Cannot run rcpp due to missing include file(s)

2020-05-03 Thread Simon Urbanek
Paul, as Kevin pointed out you have a big mess in /usr/local - I'd recommend renaming /usr/local/include and /usr//local/lib -- then you shouldn't need to set any custom flags at all (at least in R 4.0.0). Cheers, Simon > On 4/05/2020, at 9:34 AM, Paul Fishwick wrote: > > @Kevin: This worke

Re: [Rcpp-devel] Zero length vectors in R

2020-06-10 Thread Simon Urbanek
Toby, Rcpp simply calls allocVector() so regular R rules apply. R's SEXP can hold vectors up to length 1 inside without additional allocations*, therefore from memory management perspective writes to the first element of a 0-length vector are not invalid. The valgrind instrumentation of R doesn

Re: [Rcpp-devel] Troubleshooting dependency issues

2021-07-15 Thread Simon Urbanek
Naeem, I'm not sure which issues are you talking about specifically. If your package is well written, the instructions at https://mac.r-project.org/openmp/ should be sufficient with regular CRAN installation of R and standard tools. Cheers, Simon > On Jul 15, 2021, at 02:41, Naeem Khoshnevis

Re: [Rcpp-devel] Package using Rcpp+openmp - fatal error: 'omp.h' file not found

2021-08-09 Thread Simon Urbanek
Naeem, you cannot assume that OpenMP is available as that is an optional capability, so make sure you make the inclusion of omp.h optional. Please read section 1.2.1.1 OpenMP support of the Writing R Extensions manual: https://cran.r-project.org/doc/manuals/r-release/R-exts.html#OpenMP-support

Re: [Rcpp-devel] Any recent change that would remove Rcpp_precious_remove?

2021-10-04 Thread Simon Urbanek
Dominick, in that case this would be best reported on R-SIG-Mac. I just happen to be on this list so it worked ;). Re-building RInside seems to fix the issue, now updated. While I have you here, unrelated, but please note that linking to packages dynamically is not supported (see R-exts 5.8),

Re: [Rcpp-devel] Package does not compile on MAC when running R-CMD-check github action

2021-11-07 Thread Simon Urbanek
Simon, this is not a build issue, it breaks on all platforms in clang (tested on macOS and Debian+clang-11). There are tons of warnings in the C++ code (way over 1000 lines!) which lead to an error at link time (most of them are type mismatches leading to overrides of virtual methods). The part

Re: [Rcpp-devel] Package does not compile on MAC when running R-CMD-check github action

2021-11-08 Thread Simon Urbanek
d () > { > } > virtual void update(const PriorStudentInd&); > }; > #endif /* __FINMIX_PARSTUDENTIND_H__ */ > > Can you give me a hint, what might be the reason here. I have an intuition > that it is due to either the "virtual" class inheritance or/and t

[Rcpp-devel] Unaligned access [Was: Report of CRAN compilation problem and solution with architecture arm64]

2022-11-26 Thread Simon Urbanek
Juan, you should never use byte pointer arithmetic in C to create pointers to non-byte types since they cause unaligned memory access as you found out. In most architecture unaligned access is a fatal error (arm64 is just one of many), in some architectures (e.g. x86_64) it will succeed with a

Re: [Rcpp-devel] R_Interactive vs R_NoEcho

2023-02-01 Thread Simon Urbanek
> On Feb 2, 2023, at 11:41 AM, Dirk Eddelbuettel wrote: > > > On 1 February 2023 at 17:23, Dominick Samperi wrote: > | Since I am not aware of an R-internals mailing list, and since this > > AFAIK there is no such mailing list. There is a manual of that name: > https://rstudio.github.io/r-man

Re: [Rcpp-devel] RInline::repl() issues

2023-02-04 Thread Simon Urbanek
Dominick, again, it's hard to give you advice when you don't post the code, but note that for graphical Windows applications you may need to implement WinMain and make sure you setup the Windows event loop (which is separate from R's event loop) before you use RInside (see Win32 documentation).

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Simon Urbanek
The copy constructor doesn't actually create a copy, it only acts as a wrapper that preserves the same EXTPTR object, it is akin to increasing the reference count, so the C++ class wrapped in the EXTPTR is only released when the EXTPTR can be garbage-collected, i.e. all references are gone (incl