glotaran / TIMP

TIMP is an R package for fitting superposition models that implements the partitioned variable projection algorithm. The package has been extensively applied to modeling spectroscopy and Fluorescence Lifetime Imaging Microscopy (FLIM) datasets. This is the git managed codebase of the r-forge TIMP project.
https://glotaran.github.io/TIMP/
GNU General Public License v2.0
2 stars 1 forks source link

[CRAN] Compilation flags warnings #3

Closed jsnel closed 5 years ago

jsnel commented 5 years ago
jsnel commented 5 years ago

This is build machine specific and can be resolved by setting the FLAGS in a portable manner.

R uses the settings in ~/.R/Makevars which can override the default makeflags set by the OS. On Fedora the default flags would be in a file: /usr/lib64/R/etc/Makeconf

Look at the CFLAGS (non-portable flags in bold):

CFLAGS = -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection $(LTO)

As suggested here on StackOverflow this can be resolved by putting in ~/.R/Makevars e.g.: CFLAGS = -g -O2 -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 $(LTO)

This will suppress the warning only on this build machine.

Closing as not_a_bug.