Hello,
Which OS and compiler version is this ?
With :
romain@naxos ~/svn/rcpp/pkg $ uname -a
Darwin naxos 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16
PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
romain@naxos ~/svn/rcpp/pkg $ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
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.
Things work fine for me.
These messages usually appear when someone tries to compile Rcpp with an
older version of gcc (4.0.0 IIRC).
Romain
Le 05/04/11 17:59, Jay Emerson a écrit :
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
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
http://romain-francois.com
|- http://bit.ly/fhqbRC : Rcpp workshop in Chicago on April 28th
|- http://bit.ly/dFyZGB : Hydraulique au Montpellier Comedie Club
`- http://bit.ly/eVXit9 : Eponyme : 40 minutes stand up
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel