[Rd] compiling Rcpp with 3.0.1 on Solaris 10
romain at r-enthusiasts.com
romain at r-enthusiasts.com
Sat Jun 22 12:18:50 CEST 2013
Hello,
Rcpp has its own mailing list (Rcpp-devel, see
http://lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel).
We lack man power for solaris, and typically we realize there are
issues when it is too late.
If you can help, that would be huge help. To compile Rcpp, you can do:
$ svn checkout svn://svn.r-forge.r-project.org/svnroot/rcpp/pkg/Rcpp
$ R CMD INSTALL Rcpp
or
$ R CMD build Rcpp
$ R CMD INSTALL Rcpp_*.tar.gz
If you can suggest us a few fixes related to your findings, then we can
attempt to fix them and get a better solaris support. I already see a
few items below that are worth looking at.
Best regards,
Romain
Le 2013-06-21 14:25, MAYER Hans a écrit :
> Hello
>
> My colleagues asked me to install "R" with module "shiny".
> R version 3.0.1 compiled fine on Solaris 10 and is running well.
>
> I tried to install "shiny". With the dependencies "Rcpp" should be
> installed before. But the compile step did fail. See below.
> The initial error message is "Error in dyn.load(file, DLLpath =
> DLLpath, ...) :"
> Before there are some warning. The final problem is, that the shared
> library Rcpp.so was not generated.
>
> I am not familiar with R but I could manage to compile a lot of
> source code on Solaris. Very often it's only a small change in
> Makefile or source code.
> Is there a way to compile "Rcpp" manually ?
> Or how-to fix this problem. I am sure, it's not a major issue.
>
> Kind regards
> Hans
>
>
>
>
> # R
>
> R version 3.0.1 (2013-05-16) -- "Good Sport"
> Copyright (C) 2013 The R Foundation for Statistical Computing
> Platform: sparc-sun-solaris2.10 (32-bit)
>
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and 'citation()' on how to
> cite R or R packages in publications.
>
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>
>> install.packages('Rcpp')
> --- Please select a CRAN mirror for use in this session --- trying
> URL 'http://cran.rstudio.com/src/contrib/Rcpp_0.10.3.tar.gz'
> Content type 'application/x-gzip' length 2395986 bytes (2.3 Mb)
> opened URL ==================================================
> downloaded 2.3 Mb
>
> * installing *source* package 'Rcpp' ...
> ** package 'Rcpp' successfully unpacked and MD5 sums checked
> ** libs
> g++ -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> g++ -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include
> -fPIC
> g++ -g -O2 -c Date.cpp -o Date.o
> Date.cpp: In member function `void Rcpp::Date::update_tm()':
> Date.cpp:108: warning: converting to `time_t' from `double'
> Date.cpp: In member function `double Rcpp::Date::mktime00(tm&)
> const':
> Date.cpp:134: warning: converting to `int' from `double'
> Date.cpp:137: warning: converting to `int' from `double'
> Date.cpp: In function `Rcpp::Date Rcpp::operator+(const Rcpp::Date&,
> int)':
> Date.cpp:164: warning: converting to `time_t' from `double'
> Date.cpp: In function `int Rcpp::operator-(const Rcpp::Date&, const
> Rcpp::Date&)':
> Date.cpp:170: warning: converting to `int' from `double'
> Date.cpp: In function `tm* Rcpp::timesub(const time_t*, long int,
> const Rcpp::state*, tm*)':
> Date.cpp:1523: warning: converting to `long int' from `double'
> g++ -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> g++ -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include
> -fPIC
> g++ -g -O2 -c Module.cpp -o Module.o
> gcc -std=gnu99 -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include -fPIC
> -g -O2 -c Rcpp_init.c -o Rcpp_init.o
> g++ -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> g++ -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include
> -fPIC
> g++ -g -O2 -c Timer.cpp -o Timer.o -I/usr/local/lib/R/include
> -DNDEBUG
> g++ -I../inst/include/ -I/usr/local/include -I/usr/sfw/include
> g++ -I/opt/sfw/include -fPIC -g -O2 -c api.cpp -o api.o
> g++ -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> g++ -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include
> -fPIC
> g++ -g -O2 -c attributes.cpp -o attributes.o
> attributes.cpp: In member function
> `std::vector<Rcpp::attributes::Param,
> std::allocator<Rcpp::attributes::Param> >
> Rcpp::attributes::SourceFileAttributesParser::parseParameters(const
> std::string&)':
> attributes.cpp:986: warning: converting of negative value
> `-0x00000000000000001' to `size_t'
> g++ -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/
> g++ -I/usr/local/include -I/usr/sfw/include -I/opt/sfw/include
> -fPIC
> g++ -g -O2 -c barrier.cpp -o barrier.o -I/usr/local/lib/R/include
> g++ -DNDEBUG -I../inst/include/ -I/usr/local/include
> -I/usr/sfw/include
> g++ -I/opt/sfw/include -fPIC -g -O2 -c exceptions.cpp -o
> g++ exceptions.o -shared -L/usr/local/lib -L/usr/sfw/lib
> -L/opt/sfw/lib
> g++ -L/opt/solarisstudio12.3/lib -L/opt/solarisstudio12.3/prod/lib -o
> g++ Rcpp.so Date.o Module.o Rcpp_init.o Timer.o api.o attributes.o
> g++ barrier.o exceptions.o -o libRcpp.so Date.o Module.o Rcpp_init.o
> g++ Timer.o api.o attributes.o barrier.o exceptions.o -shared
> ar qc libRcpp.a Date.o Module.o Rcpp_init.o Timer.o api.o
> attributes.o barrier.o exceptions.o cp libRcpp.so ../inst/lib cp
> libRcpp.a ../inst/lib rm libRcpp.so libRcpp.a installing to
> /usr/local/lib/R/library/Rcpp/libs
> ** R
> ** inst
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** installing vignettes
> 'Rcpp-FAQ.Rnw'
> 'Rcpp-attributes.Rnw'
> 'Rcpp-extending.Rnw'
> 'Rcpp-introduction.Rnw'
> 'Rcpp-modules.Rnw'
> 'Rcpp-package.Rnw'
> 'Rcpp-quickref.Rnw'
> 'Rcpp-sugar.Rnw'
> 'Rcpp-unitTests.Rnw'
> ** testing if installed package can be loaded Error in dyn.load(file,
> DLLpath = DLLpath, ...) :
> unable to load shared object
> '/usr/local/lib/R/library/Rcpp/libs/Rcpp.so':
> ld.so.1: R: fatal: relocation error: file
> /usr/local/lib/R/library/Rcpp/libs/Rcpp.so: symbol backtrace:
> referenced symbol not found
> Error: loading failed
> Execution halted
> ERROR: loading failed
> * removing '/usr/local/lib/R/library/Rcpp'
>
> The downloaded source packages are in
> '/tmp/RtmpfijlH9/downloaded_packages'
> Updating HTML index of packages in '.Library'
> Making 'packages.html' ... done
> Warning message:
> In install.packages("Rcpp") :
> installation of package 'Rcpp' had non-zero exit status
>>
More information about the R-devel
mailing list