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

Rolf Turner r@turner @end|ng |rom @uck|@nd@@c@nz
Wed Jun 5 01:35:38 CEST 2019


On 4/06/19 4:51 PM, Dirk Eddelbuettel wrote:
> 
> 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.)
> 
> Dirk

Thanks Dirk.  I did an upgrade and the NOTE went away, so I guess that 
all is well.

I'm never sure about upgrading with "sudo apt whatever", so I was a bit 
apprehensive.  For the record I did:

     sudo apt update
     sudo apt upgrade r.base

The latter took quite a while; 15 or 20 minutes.  There's probably 
something simpler that I could have done, but when you don't know, you 
don't know.

There was no indication that I am now getting version 3.6.0-2; any 
enquires about the version that I can seem to make indicate version 
3.6.0; no "-2" in sight.  However, as I said above, it seems to have worked.

cheers,

Rolf

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-package-devel mailing list