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

Dirk Eddelbuettel edd at debian.org
Sat Sep 11 05:53:37 CEST 2010


Hi Matt,

On 10 September 2010 at 22:08, Matthew O'Meara wrote:
| 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. 

Allow me to disagree. gcc 4.0.0, according the debian/changelog file, dates
from late 2004. That is jurassic.

Is there any chance you can update?

We were at times tempted to freeze our requirement for gcc/g++ 4.3, 4.4 or
later.  Romain's move to OS X as a platform put and end to it. He has a 4.2.*
something version there. Please consider upgrading too.

| I will be happy to try out any candidate fixes.
| 
| Thanks for making great software!

Pleasure!

Cheers, Dirk

 
| 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>() );
|         }
| 
| ----------------------------------------------------------------------
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list