[Rcpp-devel] Mac problem (possibly not Rcpp's fault)

Jay Emerson jayemerson at gmail.com
Tue Apr 5 17:59:56 CEST 2011


I've Rcpp-ified the new package bcp (Bayesian change point analysis)
and it seems to work on Linux and Windows.  We're having some Mac
problems (and I don't have a Mac).  I have one current and one past
student, both getting similar problems in different ways.  For one,
she started with (I think) Rcpp installing properly, but the RESULT 1
bus error when trying to build bcp.  I recommended she rebuild R from
scratch using updated everyting; after doing so, she got a similar bus
error RESULT 2, this time in the process of trying to install Rcpp.
The other student has the same bus error.

I've exhausted my guesses and recommendations.  I note the same bus
error appears in some RcppModel logs, at

https://r-forge.r-project.org/R/?group_id=155&log=build_mac&pkg=RcppModels&flavor=patched

?? Any advice ??

Jay


RESULT 1:
xiao-yangs-macbook:Week10 Grace$ R CMD INSTALL bcp
* installing to library '/Library/Frameworks/R.framework/Resources/library'
* installing *source* package 'bcp' ...
** libs
make: *** No rule to make target `Cbcp.o', needed by `bcp.so'.  Stop.
*** arch - i386
g++ -arch i386 -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include
-I"/Library/Frameworks/R.framework/Resources/library/Rcpp/include"
-fPIC  -g -O2 -c Cbcp.cpp -o Cbcp.o
/Library/Frameworks/R.framework/Resources/library/Rcpp/include/Rcpp/internal/export.h:
In function 'void Rcpp::internal::export_range__dispatch(SEXPREC*,
InputIterator, Rcpp::traits::r_type_primitive_tag)':
/Library/Frameworks/R.framework/Resources/library/Rcpp/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: *** [Cbcp.o] Error 1
ERROR: compilation failed for package 'bcp'
* removing '/Library/Frameworks/R.framework/Resources/library/bcp'


RESULT 2:
I downloaded Xcode 3.1.3 from the web and restarted the computer and
compiled R again. But Rcpp still cannot be installed; the error
message is the same:

> install.packages("Rcpp")
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
trying URL 'http://cran.stat.ucla.edu/src/contrib/Rcpp_0.9.2.tar.gz'
Content type 'application/x-tar' length 1921635 bytes (1.8 Mb)

opened URL
==================================================
downloaded 1.8 Mb

* installing *source* package 'Rcpp' ...
** libs
g++ -I/Users/Grace/Study/Statistics/2011Spring/STAT662/Week10/R-2.12.2/include
-I../inst/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 '/Users/Grace/Study/Statistics/2011Spring/STAT662/Week10/R-2.12.2/library/Rcpp'

The downloaded packages are in
       '/private/var/folders/rB/rByzYYffEzadShxSslfirU+++TI/-Tmp-/RtmpNVHfDM/downloaded_packages'

Updating HTML index of packages in '.Library'
Warning message:
In install.packages("Rcpp") :
 installation of package 'Rcpp' had non-zero exit status




-- 
John W. Emerson (Jay)
Associate Professor of Statistics
Department of Statistics
Yale University
http://www.stat.yale.edu/~jay


More information about the Rcpp-devel mailing list