[Rcpp-devel] Internal Compiler Error building Rcpp with gcc 4.0 at line ../inst/include/Rcpp/internal/export.h:56

Matthew O'Meara mattjomeara at gmail.com
Sat Sep 11 04:08:42 CEST 2010


Hi Rcpp developers,

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.

Thanks for making great software!

Best,
Matt

> install.packages("/tmp/Rcpp_0.8.6.tar.gz")
install.packages("/tmp/Rcpp_0.8.6.tar.gz")
inferring 'repos = NULL' from the file name
* installing *source* package 'Rcpp' ...
** libs
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
../inst/include/Rcpp/internal/export.h: In function 'void
Rcpp::internal::export_range__dispatch(SEXPREC*, InputIterator,
Rcpp::traits::r_type_primitive_tag)':
../inst/include/Rcpp/internal/export.h:56: internal compiler error: Bus
error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [Date.o] Error 1
ERROR: compilation failed for package 'Rcpp'
* removing
'/Library/Frameworks/R.framework/Versions/2.11/Resources/library/Rcpp'
Warning message:
In install.packages("/tmp/Rcpp_0.8.6.tar.gz") :
  installation of package '/tmp/Rcpp_0.8.6.tar.gz' had non-zero exit status

The version of R I'm using is as follows:

> version
version
               _
platform       i386-apple-darwin9.8.0
arch           i386
os             darwin9.8.0
system         i386, darwin9.8.0
status
major          2
minor          11.1
year           2010
month          05
day            31
svn rev        52157
language       R
version.string R version 2.11.1 (2010-05-31)


The version of GCC I'm using is as follows:

$ g++ --version
i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5484)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and the system is as follows

$ uname -a
Darwin <computer.name> 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


The line pointed to in Rcpp/inst/include/Rcpp/internal/export.h is here:

        template <typename InputIterator, typename value_type>
        void export_range__dispatch( SEXP x, InputIterator first,
::Rcpp::traits::r_type_primitive_tag ) throw(::Rcpp::not_compatible){
                export_range__impl<InputIterator,value_type>(
                        x,
                        first,
=>                      typename
::Rcpp::traits::r_sexptype_needscast<value_type>() );
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20100910/e26c190f/attachment.htm>


More information about the Rcpp-devel mailing list