<div dir="ltr">Thanks gents,<div>I will use gcc for the future. Got version 4.8 in the official repository. What I'm afraid of that I may hit a nice dependency hell/soup when you have things compiled in Sun Studio ( Oracle R community edition) and on top you're compiling things with gcc.</div><div>Best,</div><div>Dimitar</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-09 13:31 GMT+01:00 JJ Allaire <span dir="ltr"><<a href="mailto:jj.allaire@gmail.com" target="_blank">jj.allaire@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, all the checks pass on CRAN because they use the gcc toolchain for Rcpp and all packages that depend on it:<div><br></div><div><a href="https://cran.r-project.org/web/checks/check_results_Rcpp.html" target="_blank">https://cran.r-project.org/web/checks/check_results_Rcpp.html</a><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 7:28 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Dimitar,<br>
<span><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 12.4 and<br>
| Solaris 11.2 some packages for internal use.<br>
<br>
</span>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 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>
<span><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/Rcpp_0.12.3.tar.gz" rel="noreferrer" target="_blank">http://cran.uni-muenster.de/src/contrib/Rcpp_0.12.3.tar.gz</a>'<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/dplyr_0.4.3.tar.gz" rel="noreferrer" target="_blank">http://cran.uni-muenster.de/src/contrib/dplyr_0.4.3.tar.gz</a>'<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/include<br>
| -DNDEBUG -I../inst/include/     -KPIC  -g  -c Date.cpp -o Date.o<br>
| "../inst/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Using void<br>
| (*)(void*) to initialize extern "C" void(*)(void*).<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: iterator_traits is<br>
| not a member of std.<br>
<br>
</span>We are doing things in C++ which are standard now, but for which Sun 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 can say<br>
here.<br>
<br>
Greetings,  Dirk<br>
<div><div><br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: A declaration does<br>
| not specify a tag or an identifier.<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: Use ";" to terminate<br>
| declarations.<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 43: Error: "}" expected instead<br>
| of "<".<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: iterator_traits is<br>
| not a member of std.<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: A declaration does<br>
| not specify a tag or an identifier.<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: Use ";" to<br>
| terminate declarations.<br>
| "../inst/include/Rcpp/vector/MatrixRow.h", line 188: Error: "}" expected<br>
| instead of "<".<br>
| "../inst/include/Rcpp/String.h", line 67: Warning: enc hides Rcpp::String::enc.<br>
| "../inst/include/Rcpp/String.h", line 81: Warning: enc hides Rcpp::String::enc.<br>
| "../inst/include/Rcpp/String.h", line 95: Warning: enc hides 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 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 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/studio12u3/<br>
| solarisstudio12.3/bin -> /opt/solarisstudio12.4/bin <br>
|<br>
| Can someone point me which compiler options/configure arguments are needed so<br>
| that the conversion and compilation is successful?<br>
| Thanks!<br>
|<br>
</div></div>| _______________________________________________<br>
| Rcpp-devel mailing list<br>
| <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">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>
<span><font color="#888888"><br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a><br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">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></font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>