[R-pkg-devel] Non-portable flags.

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Wed Jun 5 00:51:50 CEST 2019

On 4 June 2019 at 16:42, Rolf Turner wrote:
| I am working on a revision of my Iso package (which hasn't been revised 
| for quite a while) and have added in registration of Fortran routines 
| that are called directly by .Fortran() in R functions.
| When I do
|      R CMD check --as-cran Iso_0.0-18.tar.gz
| I get a "NOTE":
| > Compilation used the following non-portable flag(s):
| >   ‘-Wdate-time’ ‘-Werror=format-security’ ‘-Wformat’


| P.S. I am running Ubuntu 18.04.  Happy to supply any further details 
| that might be relevant.

Upgrade to 3.6.0-2 and it will be taken care of -- first bullet of second
entry in what follows in relevant. I should have taken care of that earlier.
In any event, this was discussed here or on r-sig-debian very recently.

  edd using rob:~$ zcat /usr/share/doc/r-base-core/changelog.Debian.gz | \
  head -17 r-base (3.6.0-2cosmic) cosmic; urgency=medium
    * Compilation for Ubuntu 18.10
    * debian/control Changed dependency to generic tcl-dev and tk-dev
   -- Michael Rutter <marutter using gmail.com>  Mon, 13 May 2019 00:41:33 +0000
  r-base (3.6.0-2) unstable; urgency=medium
    * debian/Renviron.site: Set variable _R_CHECK_COMPILATION_FLAGS_KNOWN_
      to white-list compiler flags pulled in Debian's gcc configuration
    * configure{,.ac}: Applied two upstream patches from this week to
      accommodate gfortran 8 changes related to C to Fortran calls
   -- Dirk Eddelbuettel <edd using debian.org>  Sat, 11 May 2019 13:58:42 -0500
  edd using rob:~$
(I am on 18.10 but Michael kindly provides builds for all relevant flavours,
including your 18.04.)


http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org

More information about the R-package-devel mailing list