<div dir="ltr"><div>Thanks Dirk,</div><div>Tried today with gcc-4.8.2 and g++ - 4.8.2</div><div><br></div><div>> install.packages("ggplot2");</div><div>also installing the dependencies 'Rcpp', 'plyr', 'reshape2', 'scales'</div><div><br></div><div>trying URL '<a href="http://cran.uni-muenster.de/src/contrib/Rcpp_0.12.3.tar.gz">http://cran.uni-muenster.de/src/contrib/Rcpp_0.12.3.tar.gz</a>'</div><div>Content type 'application/x-gzip' length 2374320 bytes (2.3 MB)</div><div>==================================================</div><div>downloaded 2.3 MB</div><div><br></div><div>trying URL '<a href="http://cran.uni-muenster.de/src/contrib/plyr_1.8.3.tar.gz">http://cran.uni-muenster.de/src/contrib/plyr_1.8.3.tar.gz</a>'</div><div>Content type 'application/x-gzip' length 392337 bytes (383 KB)</div><div>==================================================</div><div>downloaded 383 KB</div><div><br></div><div>trying URL '<a href="http://cran.uni-muenster.de/src/contrib/reshape2_1.4.1.tar.gz">http://cran.uni-muenster.de/src/contrib/reshape2_1.4.1.tar.gz</a>'</div><div>Content type 'application/x-gzip' length 34693 bytes (33 KB)</div><div>==================================================</div><div>downloaded 33 KB</div><div><br></div><div>trying URL '<a href="http://cran.uni-muenster.de/src/contrib/scales_0.3.0.tar.gz">http://cran.uni-muenster.de/src/contrib/scales_0.3.0.tar.gz</a>'</div><div>Content type 'application/x-gzip' length 57030 bytes (55 KB)</div><div>==================================================</div><div>downloaded 55 KB</div><div><br></div><div>trying URL '<a href="http://cran.uni-muenster.de/src/contrib/ggplot2_2.0.0.tar.gz">http://cran.uni-muenster.de/src/contrib/ggplot2_2.0.0.tar.gz</a>'</div><div>Content type 'application/x-gzip' length 1546130 bytes (1.5 MB)</div><div>==================================================</div><div>downloaded 1.5 MB</div><div><br></div><div>* installing *source* package 'Rcpp' ...</div><div>** package 'Rcpp' successfully unpacked and MD5 sums checked</div><div>** libs</div><div>g++ -I/usr/local/R/include -DNDEBUG -I../inst/include/ -KPIC -g -c Date.cpp -o Date.o</div><div>g++: error: unrecognized command line option '-KPIC'</div><div>gmake: *** [Date.o] Error 1</div><div>ERROR: compilation failed for package 'Rcpp'</div><div>* removing '/usr/local/R/library/Rcpp'</div><div>ERROR: dependency 'Rcpp' is not available for package 'plyr'</div><div>* removing '/usr/local/R/library/plyr'</div><div>ERROR: dependencies 'plyr', 'Rcpp' are not available for package 'reshape2'</div><div>* removing '/usr/local/R/library/reshape2'</div><div>ERROR: dependencies 'plyr', 'Rcpp' are not available for package 'scales'</div><div>* removing '/usr/local/R/library/scales'</div><div>ERROR: dependencies 'plyr', 'reshape2', 'scales' are not available for package 'ggplot2'</div><div>* removing '/usr/local/R/library/ggplot2'</div><div><br></div><div>The downloaded source packages are in</div><div> '/tmp/RtmpZmVEUH/downloaded_packages'</div><div>Updating HTML index of packages in '.Library'</div><div>Making 'packages.html' ... done</div><div>Warning messages:</div><div>1: In install.packages("ggplot2") :</div><div> installation of package 'Rcpp' had non-zero exit status</div><div>2: In install.packages("ggplot2") :</div><div> installation of package 'plyr' had non-zero exit status</div><div>3: In install.packages("ggplot2") :</div><div> installation of package 'reshape2' had non-zero exit status</div><div>4: In install.packages("ggplot2") :</div><div> installation of package 'scales' had non-zero exit status</div><div>5: In install.packages("ggplot2") :</div><div> installation of package 'ggplot2' had non-zero exit status</div><div><br></div><div> -bash-4.1# /usr/bin/g</div><div>Display all 349 possibilities? (y or n)</div><div>-bash-4.1# /usr/bin/g++</div><div>g++: fatal error: no input files</div><div>compilation terminated.</div><div>-bash-4.1# /usr/bin/g++ -v</div><div>Using built-in specs.</div><div>COLLECT_GCC=/usr/bin/g++</div><div>COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/lto-wrapper</div><div>Target: sparc-sun-solaris2.11</div><div>Configured with: /export/home/hudson/workspace/nightly-update/build/sparc/components/gcc48/gcc-4.8.2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --without-gnu-as --with-as=/usr/bin/as CFLAGS='-g -O2 -mtune=ultrasparc -mcpu=ultrasparc -mno-unaligned-doubles' CXXFLAGS='-g -O2 -mtune=ultrasparc -mcpu=ultrasparc -mno-unaligned-doubles'</div><div>Thread model: posix</div><div>gcc version 4.8.2 (GCC)</div><div><br></div><div>Barfing at KPIC. Any idea how to go further?</div><div>Regards,</div><div>Dimitar</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-09 13:54 GMT+01:00 Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 9 February 2016 at 13:41, Dimitar Vassilev wrote:<br>
| Thanks gents,<br>
| I will use gcc for the future. Got version 4.8 in the official repository. What<br>
| I'm afraid of that I may hit a nice dependency hell/soup when you have things<br>
| compiled in Sun Studio ( Oracle R community edition) and on top you're<br>
| compiling things with gcc.<br>
<br>
</span>I am wondering about that too ... but it could just work (as everything is<br>
behind 'export "C"' layers making it a more portable C interface). Very<br>
worst case just drop the 'community R' from your "friendly neighbourhood<br>
database seller" and install R from source. It will still talk to the db<br>
backends.<br>
<br>
Cheers, Dirk<br>
<div class="HOEnZb"><div class="h5"><br>
| Best,<br>
| Dimitar<br>
|<br>
| 2016-02-09 13:31 GMT+01:00 JJ Allaire <<a href="mailto:jj.allaire@gmail.com">jj.allaire@gmail.com</a>>:<br>
|<br>
| Yes, all the checks pass on CRAN because they use the gcc toolchain for<br>
| Rcpp and all packages that depend on it:<br>
|<br>
| <a href="https://cran.r-project.org/web/checks/check_results_Rcpp.html" rel="noreferrer" target="_blank">https://cran.r-project.org/web/checks/check_results_Rcpp.html</a><br>
|<br>
|<br>
| On Tue, Feb 9, 2016 at 7:28 AM, Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br>
|<br>
|<br>
| Hi Dimitar,<br>
|<br>
| On 9 February 2016 at 12:08, Dimitar Vassilev wrote:<br>
| | Hello,<br>
| | I’m building on top of Oracle R Community edition 3.2, Sun Studio<br>
| 12.4 and<br>
| | Solaris 11.2 some packages for internal use.<br>
|<br>
| The problem is likely the Sun Studio compiler. 'Nobody here' uses that<br>
| anymore, and even CRAN / Oxford which tests on Solaris (x86,sparc) uses<br>
| gcc<br>
| per the tests page:<br>
|<br>
| <a href="https://cloud.r-project.org/web/checks/check_results_Rcpp.html" rel="noreferrer" target="_blank">https://cloud.r-project.org/web/checks/check_results_Rcpp.html</a><br>
|<br>
| | The error I get when trying to install Rcpp is:<br>
| | > install.packages("dplyr");<br>
| | also installing the dependency 'Rcpp'<br>
| |<br>
| | trying URL '<a href="http://cran.uni-muenster.de/src/contrib/" rel="noreferrer" target="_blank">http://cran.uni-muenster.de/src/contrib/</a><br>
| Rcpp_0.12.3.tar.gz'<br>
| | Content type 'application/x-gzip' length 2374320 bytes (2.3 MB)<br>
| | ==================================================<br>
| | downloaded 2.3 MB<br>
| |<br>
| | trying URL '<a href="http://cran.uni-muenster.de/src/contrib/" rel="noreferrer" target="_blank">http://cran.uni-muenster.de/src/contrib/</a><br>
| dplyr_0.4.3.tar.gz'<br>
| | Content type 'application/x-gzip' length 655997 bytes (640 KB)<br>
| | ==================================================<br>
| | downloaded 640 KB<br>
| |<br>
| | * installing *source* package 'Rcpp' ...<br>
| | ** package 'Rcpp' successfully unpacked and MD5 sums checked<br>
| | ** libs<br>
| | /opt/SunProd/studio12u3/solarisstudio12.3/bin/CC -m64 -I/usr/local/R/<br>
| include<br>
| | -DNDEBUG -I../inst/include/ -KPIC -g -c Date.cpp -o Date.o<br>
| | "../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism):<br>
| Using void<br>
| | (*)(void*) to initialize extern "C" void(*)(void*).<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error:<br>
| iterator_traits is<br>
| | not a member of std.<br>
|<br>
| We are doing things in C++ which are standard now, but for which Sun<br>
| Studio<br>
| does not seem to have caught up.<br>
|<br>
| Maybe you need to look into installing the gcc toolchain.<br>
|<br>
| Maybe another list reader has a better idea but I fear that is all we<br>
| can say<br>
| here.<br>
|<br>
| Greetings, Dirk<br>
|<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: A<br>
| declaration does<br>
| | not specify a tag or an identifier.<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: Use ";" to<br>
| terminate<br>
| | declarations.<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: "}"<br>
| expected instead<br>
| | of "<".<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error:<br>
| iterator_traits is<br>
| | not a member of std.<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: A<br>
| declaration does<br>
| | not specify a tag or an identifier.<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: Use ";"<br>
| to<br>
| | terminate declarations.<br>
| | "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: "}"<br>
| expected<br>
| | instead of "<".<br>
| | "../inst/include/Rcpp/String.h", line 67: Warning: enc hides<br>
| Rcpp::String::enc.<br>
| | "../inst/include/Rcpp/String.h", line 81: Warning: enc hides<br>
| Rcpp::String::enc.<br>
| | "../inst/include/Rcpp/String.h", line 95: Warning: enc hides<br>
| Rcpp::String::enc.<br>
| | "../inst/include/Rcpp/String.h", line 107: Warning: enc hides<br>
| | Rcpp::String::enc.<br>
| | "../inst/include/Rcpp/String.h", line 378: Error: Could not find a<br>
| match for<br>
| | std::wstring::basic_string(const char*, const char*) needed in<br>
| | Rcpp::String::operator std::wstring () const.<br>
| | 9 Error(s) and 5 Warning(s) detected.<br>
| | *** Error code 2<br>
| | make: Fatal error: Command failed for target `Date.o'<br>
| | ERROR: compilation failed for package 'Rcpp'<br>
| | * removing '/usr/local/R/library/Rcpp'<br>
| | ERROR: dependency 'Rcpp' is not available for package 'dplyr'<br>
| | * removing '/usr/local/R/library/dplyr'<br>
| |<br>
| | The downloaded source packages are in<br>
| | '/tmp/RtmpPbHqdD/downloaded_packages'<br>
| | Updating HTML index of packages in '.Library'<br>
| | Making 'packages.html' ... done<br>
| | Warning messages:<br>
| | 1: In install.packages("dplyr") :<br>
| | installation of package 'Rcpp' had non-zero exit status<br>
| | 2: In install.packages("dplyr") :<br>
| | installation of package 'dplyr' had non-zero exit status<br>
| | > q();<br>
| |<br>
| | Can you point me what should I do further?<br>
| | My .Renviron is as follows <br>
| | TZ=CET <br>
| | TERM=vt220 <br>
| | TAR=/usr/bin/tar <br>
| | R_UNZIPCMD=/usr/bin/unzip <br>
| | R_ZIPCMD=/usr/bin/zip <br>
| | MAKE=/usr/bin/make <br>
| | LD_LIBRARY_PATH=/usr/lib:/usr/local/R/lib:/lib:/usr/local/lib <br>
| | PAGER=/usr/bin/less <br>
| | R_BZIPCMD=/usr/bin/bzip2 <br>
| | R_GZIPCMD=/usr/bin/gzip <br>
| | I made a symlink so that the compilation works. Unfortunately the R<br>
| modules<br>
| | have hard-coded the path to the compiler.<br>
| | -bash-4.1# ls -la /opt/SunProd/studio12u3/solarisstudio12.3/bin <br>
| | lrwxrwxrwx 1 root root 26 Feb 4 15:22 /opt/SunProd/<br>
| studio12u3/<br>
| | solarisstudio12.3/bin -> /opt/solarisstudio12.4/bin <br>
| |<br>
| | Can someone point me which compiler options/configure arguments are<br>
| needed so<br>
| | that the conversion and compilation is successful?<br>
| | Thanks!<br>
| |<br>
| | _______________________________________________<br>
| | Rcpp-devel mailing list<br>
| | <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| | <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/</a><br>
| rcpp-devel<br>
|<br>
| --<br>
| <a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
| <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
|<br>
|<br>
|<br>
|<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</div></div></blockquote></div><br></div>