Closed uncomputable closed 9 months ago
Apparently _FORTIFY_SOURCE adds safety checks to the code but it requires optimization flags.
I would say, let's disable _FORTIFY_SOURCE if we don't need it. libsimplicity seems pretty well tested to me.
Alternatively, we could add optimization and eat the extra time to compile.
I ran into this issue last March. I didn't write down what solved it ... I think just updating my system. My search history from that time has "how to force gcc 12 in nix" and I upgraded my system shortly after searching that.
And the git history on my local CI doesn't show any relevant changes from that time.
But I don't see the warning anymore.
Oh, actually the warning I was searching for was
#warning _FORTIFY_SOURCE > 2 is treated like 2 on this platform
which required updating gcc. The "needs optimization" one I think I just fixed by enabling optimizations..
Every time I compile rust-simplicity I get this long warning.