[Rcpp-devel] Compiler seg fault with Rcpp 0.9.7

Douglas Bates bates at stat.wisc.edu
Wed Oct 5 21:22:34 CEST 2011


On Wed, Oct 5, 2011 at 2:15 PM, Ian Fellows <ian.fellows at stat.ucla.edu> wrote:
> Sorry, I should have been more explicit. I can install rcpp okay. The error occurs when installing a package that I'm developing. The installs fine with 0.9.4, but not with 0.9.7. Interestingly it is the compiler that blows up...

And not unrelated is the fact that you are compiling on a Mac OS X
platform.  Notice that Apple is still stuck at gcc 4.2.1 which is
known to be buggy.

As I understand it, the Free Software Foundation switched the license
on gcc to GPL 3 or later for the 4.2.2 version of gcc and Apple
decided not to adopt it.  (One imagines that discussions between
Richard Stallman and Steve Jobs, if there were any, would have been
interesting to observe.)  I'm not sure what the best way out is and,
fortunately, I'm not working on a Mac.

I have heard that recent versions of the Xcode tools include clang and
clang++.  I have also heard that those versions are buggy and out of
date.

Bottom line: use bootcamp and install Linux :-)

>
>
> Ian
>
>
>
> On Oct 5, 2011, at 11:42 AM, Steve Lianoglou wrote:
>
>> Hi Ian,
>>
>> On Wed, Oct 5, 2011 at 2:32 PM, Ian Fellows <ian.fellows at stat.ucla.edu> wrote:
>>> Hi All,
>>>
>>> I am getting a compiler seg fault with 0.9.6 and 0.9.7, however the error does not occur in 0.9.4.
>>>
>>> When running R CMD INSTALL the following error is given:
>>>
>>> util.h: In function 'Rcpp::XPtr<Class, standard_delete_finalizer<Class> > gergm::unwrap_robject(SEXPREC* const&) [with T = gergm::BinaryNet<gergm::Directed>]':
>>> util.h:30: internal compiler error: Segmentation fault
>>> Please submit a full bug report,
>>> with preprocessed source if appropriate.
>>> See <URL:http://developer.apple.com/bugreporter> for instructions.
>>
>> I just tried to reinstall Rcpp on my mac:
>>
>> R> install.packages('Rcpp', type='source')
>>
>> And everything actually installs fine here:
>>
>> R> sessionInfo()
>> R version 2.13.1 Patched (2011-09-15 r57010)
>> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>> [...]
>>
>> Not sure what to suggest next, actually, but I guess something is
>> strange on your end? What version of XCode/gcc do you have installed?
>>
>> Actually:
>>
>>> R version 2.13.0 Patched (2011-05-19 r55960)
>>> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>>>
>>> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>>
>> Our gcc versions differ slightly:
>>
>> $ g++ --version
>> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
>> Copyright (C) 2007 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.
>>
>> Hmmm,
>> -steve
>>
>> --
>> Steve Lianoglou
>> Graduate Student: Computational Systems Biology
>>  | Memorial Sloan-Kettering Cancer Center
>>  | Weill Medical College of Cornell University
>> Contact Info: http://cbio.mskcc.org/~lianos/contact
>>
>
> _______________________________________________
> 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
>


More information about the Rcpp-devel mailing list