Closed GoogleCodeExporter closed 8 years ago
Alright, this is the error:
https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wformat_-Wformat-security
So Wformat-security is enabled by default from 13.04. Since I was not able to
fix the C code, I went ahead the dirty way to edit my '/etc/R/Makefile' and
changed:
CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g $(LTO)
CPICFLAGS = -fpic
CPPFLAGS =
CXX = g++
CXXCPP = $(CXX) -E
CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g $(LTO)
CXXPICFLAGS = -fpic
CXX1X = g++
CXX1XFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g
removing '-Werror=format-security' from all the FLAGS, thus disabling it for
all my R builds
Original comment by sake...@gmail.com
on 11 Oct 2014 at 6:11
Patch attached.
Original comment by sake...@gmail.com
on 11 Oct 2014 at 8:47
Attachments:
Thank you for the patch, it appears this issue comes up in some of our legacy
code. I have updated this in the attached version, let me know if this fixes
your issue
Original comment by homer...@gmail.com
on 26 Jan 2015 at 4:33
Attachments:
Original comment by homer...@gmail.com
on 26 Jan 2015 at 4:49
I had the same issue. The fix worked for me. Can you make put it up as a
regular download, took me some time to find this after going through the
install and setup tutorial.
Original comment by lichtenb...@msseeker.org
on 27 Mar 2015 at 3:59
Original issue reported on code.google.com by
sake...@gmail.com
on 11 Oct 2014 at 5:10