Hi Rcpp developers,<br><br>I'm running into an "Internal Compiler Error" when I try to build Rcpp. Unfortunately my template ninja skills up to the task of trying to find a work around for what I think is a gcc bug. But as gcc 4.0 is still quite common, it may worth trying to come up with one. I will be happy to try out any candidate fixes.<br>
<br>Thanks for making great software!<br><br>Best,<br>Matt<br><br>> install.packages("/tmp/Rcpp_0.8.6.tar.gz")<br>install.packages("/tmp/Rcpp_0.8.6.tar.gz")<br>inferring 'repos = NULL' from the file name<br>
* installing *source* package 'Rcpp' ...<br>** libs<br>g++ -I/Library/Frameworks/R.framework/Resources/include -I../inst/include/ -I/sw/include -I/usr/local/include -fPIC -g -O2 -c Date.cpp -o Date.o<br>../inst/include/Rcpp/internal/export.h: In function 'void Rcpp::internal::export_range__dispatch(SEXPREC*, InputIterator, Rcpp::traits::r_type_primitive_tag)':<br>
../inst/include/Rcpp/internal/export.h:56: internal compiler error: Bus error<br>Please submit a full bug report,<br>with preprocessed source if appropriate.<br>See <URL:<a href="http://developer.apple.com/bugreporter">http://developer.apple.com/bugreporter</a>> for instructions.<br>
make: *** [Date.o] Error 1<br>ERROR: compilation failed for package 'Rcpp'<br>* removing '/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Rcpp'<br>Warning message:<br>In install.packages("/tmp/Rcpp_0.8.6.tar.gz") :<br>
installation of package '/tmp/Rcpp_0.8.6.tar.gz' had non-zero exit status<br><br>The version of R I'm using is as follows:<br><br>> version<br>version<br> _<br>platform i386-apple-darwin9.8.0<br>
arch i386<br>os darwin9.8.0<br>system i386, darwin9.8.0<br>status<br>major 2<br>minor 11.1<br>year 2010<br>month 05<br>day 31<br>svn rev 52157<br>
language R<br>version.string R version 2.11.1 (2010-05-31)<br><br><br>The version of GCC I'm using is as follows:<br><br>$ g++ --version<br>i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)<br>Copyright (C) 2005 Free Software Foundation, Inc.<br>
This is free software; see the source for copying conditions. There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>and the system is as follows<br><br>$ uname -a<br>Darwin <<a href="http://computer.name">computer.name</a>> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386<br>
<br><br>The line pointed to in Rcpp/inst/include/Rcpp/internal/export.h is here: <br><br><span style="font-family: courier new,monospace;"> template <typename InputIterator, typename value_type></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> void export_range__dispatch( SEXP x, InputIterator first, ::Rcpp::traits::r_type_primitive_tag ) throw(::Rcpp::not_compatible){</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> export_range__impl<InputIterator,value_type>(</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> x,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> first,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">=> typename ::Rcpp::traits::r_sexptype_needscast<value_type>() );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</span><br><br> <br><br><br><br><br>