[Bioc-devel] tokay1 C++14 compiler

Simo Kitanovski @|mo@k|t@nov@k| @end|ng |rom un|-due@de
Fri Jul 26 00:02:07 CEST 2019


Thanks!

I will try to revise the code to avoid CXX14 if this is that case.

Best


On 25.07.19 11:52 nachm., Martin Morgan wrote:
> Windows (and macOS) CRAN packages are installed as binaries (as experienced by the typical user), so don't need compilation-- Rstan is built by CRAN through whatever magic / agreement.
>
> The paragraph at the very end of
>
>    https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-C_002b_002b14-code
>
> suggests
>
> Note that g++ 4.9.x (as used for R on Windows at the time of writing) has only partial C++14 support, and the flag to obtain that support is not included in the default Windows build of R
>
> so my understanding of this is that CXX14 is not supported on Windows. The options are either to revise your code to avoid CXX14 or to anticipate that your package will be 'Unsupported on Windows' (thereby losing 1/2 your user base).
>
> The expert on this (Hervé) will not be back for several days.
>
> Martin
>
> On 7/25/19, 6:33 PM, "Bioc-devel on behalf of Kasper Daniel Hansen" <bioc-devel-bounces using r-project.org on behalf of kasperdanielhansen using gmail.com> wrote:
>
>      What's weird here is that you supposedly depend on rstan which also
>      requires a C++14. How can the build system have that package installed
>      without having a compliant compiler?
>      
>      
>      On Thu, Jul 25, 2019 at 12:05 PM Simo Kitanovski <simo.kitanovski using uni-due.de>
>      wrote:
>      
>      > Hello Bioconductor community,
>      >
>      > I maintain the Bioconductor package genphen which depends on rstan for
>      > MCMC sampling. To build the package one needs a C++14 compiler.
>      >
>      > I have no problem building the package on malbec1 and merida1, but not
>      > on tokay1. Any idea of what might have gone wrong on this server and how
>      > to use C++14? I have submitted a new package (IgGeneUsage) which also
>      > uses rstan and have the same problem (see build report below).
>      >
>      > BTW: why do we see this under the C++14 compiler box for tokay1:
>      > Compiler version (' --version' output):
>      > '--version' is not recognized as an internal or external command,
>      > operable program or batch file.
>      >
>      > Any ideas?
>      >
>      > Best
>      >
>      > ===============================
>      >
>      >   R CMD BUILD
>      >
>      > ===============================
>      > * checking for file 'IgGeneUsage/DESCRIPTION' ... OK
>      > * preparing 'IgGeneUsage':
>      > * checking DESCRIPTION meta-information ... OK
>      > * cleaning src
>      > * installing the package to build vignettes
>      >        -----------------------------------
>      > * installing *source* package 'IgGeneUsage' ...
>      > ** using staged installation
>      > ** libs
>      > Error in .shlib_internal(args) :
>      >    C++14 standard requested but CXX14 is not defined
>      > * removing
>      >
>      > 'C:/Users/pkgbuild/AppData/Local/Temp/RtmpUDyHnY/Rinst315c22dc5ac/IgGeneUsage'
>      >        -----------------------------------
>      > ERROR: package installation failed
>      >
>      > _______________________________________________
>      > Bioc-devel using r-project.org mailing list
>      > https://stat.ethz.ch/mailman/listinfo/bioc-devel
>      >
>      
>      
>      --
>      Best,
>      Kasper
>      
>      	[[alternative HTML version deleted]]
>      
>      _______________________________________________
>      Bioc-devel using r-project.org mailing list
>      https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



More information about the Bioc-devel mailing list