joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
220 stars 71 forks source link

Prepare for gcc 10 defaults #316

Closed joshuaulrich closed 4 years ago

joshuaulrich commented 4 years ago

From Prof Ripley:

[xts fails] to install with gcc trunk which is due to be released as gcc 10.0.x early in 2020. It defaults to -fno-common, which stricter on some multiply-defined symbols -- see §1.6.4.1 of 'Writing R Extensions' in current R-devel.

See https://www.stats.ox.ac.uk/pub/bdr/gcc10/ for the logs, which will be linked from the CRAN results page under 'Additional issues'.

We expect the issues to also be seen when compiling with earlier versions of gcc using the (non-default) flag -fno-common: this has been confirmed for gcc 9 on Linux, and also for clang on macOS.

Add -fno-common to PKG_CFLAGS in ~/.R/Makevars to reproduce.