[Rd] Tip for removing -c99 when compiling with icc

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Dec 18 10:52:14 CET 2008


On Thu, 18 Dec 2008, Bjørn-Helge Mevik wrote:

> Dear developeRs,
>
> As of icc 10, the -c99 option is deprecated, and generates a lot of
> warnings when compiling R or R packages.
>
> If you use CC="icc -std=c99" instead of just CC="icc", R's configure
> will not add the -c99 option, and the code seems to compile and run just
> fine.

It's not really R, but autoconf's macro (I believe called from AC_PROG_CC) 
which does

for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99

One day autoconf will catch up with icc and try -std=c99 as well.  (It may 
already have done so: we are using the 3-year-old 2.61 as PD has that on 
the release system, Mac OS X still does ....)

> (Please don't hesitate to let me know if this is a bad idea. :-)

It is fine: I'll add a note to the manual.

>
> -- 
> Regards,
> Bjørn-Helge Mevik
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-devel mailing list