Menu

#50 unrecognized command line option "-fno-stack-protector"

open
nobody
None
5
2018-10-01
2012-12-19
No

Building graphite2 1.2.0 on OS X 10.4 Tiger on PowerPC G4 fails with the error message:

cc1plus: error: unrecognized command line option "-fno-stack-protector"

Discussion

  • Ryan Carsten Schmidt

     
  • Ryan Carsten Schmidt

    In MacPorts we are now removing the -fno-stack-protector argument, when using Apple gcc 4.0.1:

    https://trac.macports.org/changeset/102365

    My hope is that Apple gcc 4.0.1 does not have a stack protector, or that the stack protector is off by default, and that therefore this change will be ok.

     
  • Martin Hosken

    Martin Hosken - 2013-02-05

    -fno-stack-protector is a speedup optimissation given we do very thorough testing via valgrind, we feel it OK to turn this off. The option is irreleveant if there is no -fsatck-protector. If there is, well it will just slow things down slightly, but hopefully not too much. So removal seems a good plan to me, but only for the versions of gcc for which removal is necessary.

     
  • Ryan Carsten Schmidt

    Looks like this hasn't been fixed in 1.3.10 yet.

     

Log in to post a comment.

MongoDB Logo MongoDB