Thursday, August 21, 2014

Installing Cython - x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’

I went around and around trying to get Cython install on my Ubuntu 14.04 LTS box.  I kept getting:

x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’

Turns out that the ‘-fstack-protector-strong’ option was not added to the GCC compiler until version 4.9.  Upgraded my GCC to the latest available fixed the issue.

3 comments:

  1. Thanks. Little notes / survival stories like this make it possible to actually get some work done on OSS. :)

    ReplyDelete
  2. This just saved my Gentoo install, since stack protection in the kernel fails to compile. Basically you have to...

    emerge -av =sys-devel/gcc-4.9.2
    echo "sys-devel/gcc" >> /etc/portage/package.accepted_keywords
    emerge -u sys-devel/gcc

    ReplyDelete