Closed jsnel closed 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.