Hi Rcpp developers,<br><br>I&#39;m running into an &quot;Internal Compiler Error&quot; 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>&gt; install.packages(&quot;/tmp/Rcpp_0.8.6.tar.gz&quot;)<br>install.packages(&quot;/tmp/Rcpp_0.8.6.tar.gz&quot;)<br>inferring &#39;repos = NULL&#39; from the file name<br>
* installing *source* package &#39;Rcpp&#39; ...<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 &#39;void Rcpp::internal::export_range__dispatch(SEXPREC*, InputIterator, Rcpp::traits::r_type_primitive_tag)&#39;:<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 &lt;URL:<a href="http://developer.apple.com/bugreporter">http://developer.apple.com/bugreporter</a>&gt; for instructions.<br>
make: *** [Date.o] Error 1<br>ERROR: compilation failed for package &#39;Rcpp&#39;<br>* removing &#39;/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Rcpp&#39;<br>Warning message:<br>In install.packages(&quot;/tmp/Rcpp_0.8.6.tar.gz&quot;) :<br>
  installation of package &#39;/tmp/Rcpp_0.8.6.tar.gz&#39; had non-zero exit status<br><br>The version of R I&#39;m using is as follows:<br><br>&gt; 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&#39;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 &lt;<a href="http://computer.name">computer.name</a>&gt; 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 &lt;typename InputIterator, typename value_type&gt;</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&lt;InputIterator,value_type&gt;(</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;">=&gt;                      typename ::Rcpp::traits::r_sexptype_needscast&lt;value_type&gt;() );</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        }</span><br><br> <br><br><br><br><br>