This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: R-2.14.2-1 and knitr-0.4 package (W7)


On 4/14/2012 7:25 PM, Dario Buttari wrote:
Hello, I am using R 2.14.2-1 under cygwin 1.7.12-1 in Windows 7
Professional Service Pack 1.
I am trying to install the knitr 0.4 package under R 2.14.2-1, and the
installation fails while installing the Rcpp 0.9.10 dependency.
The problem seems related to the missing execinfo.h (see code below).
Based on this webpage execinfo.h is not supported under cygwin and
several other platforms:
<http://www.gnu.org/savannah-checkouts/gnu/gnulib/manual/html_node/execinfo_002eh.html>

Do you have any recommendation on how to go around this problem or
where to post this issue?
Thanks,
Dario

>
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs

> g++ -I/usr/lib/R/include -I../inst/include/       -g -O2 -pipe  -c
debugging.cpp -o debugging.o
debugging.cpp:36:22: fatal error: execinfo.h: No such file or directory
compilation terminated.
/usr/lib/R/etc/Makeconf:129: recipe for target `debugging.o' failed

on Rcpp_0.9.10.tar.gz you need to exclude cygwin from platform having execinfo.h.

----------------------------------------------------------------------
--- src/debugging.cpp_bk        2012-04-15 16:04:11.104213600 +0200
+++ src/debugging.cpp   2012-04-15 16:04:59.454979200 +0200
@@ -22,7 +22,7 @@
 #include <Rcpp.h>

#if defined(__GNUC__)
-#if defined(WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(WIN32) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) ||defined(__CYGWIN__)
// Simpler version for Windows and *BSD
SEXP stack_trace( const char* file, int line ){
Rcpp::List trace = Rcpp::List::create(
------------------------------------------------------------------------




Regards
Marco

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]