When building with '-D_FORTIFY_SOURCE=2' in the CLFAGS/CXXFLAGS the build fails, when the flag isn’t present the build doesn’t fail.
I found this issue (http://llvm.1065342.n5.nabble.com/llvm-dev-Thin-LTO-llvm-build-td100633i120.html) leading me to it.
Created attachment 502690 [details]
I have this bug again on 5.0.1 btw.
I have the same problem with 8.0.1.
-D_FORTIFY_SOURCE=1 doesn't work either.
I have the same problem with 10.0.1.
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -frename-registers -fstack-clash-protection -D_FORTIFY_SOURCE=2"