Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing problem #258

Closed
BojackFishman opened this issue Dec 27, 2023 · 2 comments
Closed

Installing problem #258

BojackFishman opened this issue Dec 27, 2023 · 2 comments

Comments

@BojackFishman
Copy link

When I try to type "make" in the bash to compile the package, I always get some errors like:

cc: error: unrecognized command line option ‘-fcf-protection=full’; did you mean ‘-fstack-protector-all’?

I have confirmed that my gcc version is 7.5.0 , and make version is 4.3.
what's the problem?

@rstorozh
Copy link
Contributor

Hi Bojack,

The issue is that gcc 7.5.0 doesn't support '-fcf-protection' option:
https://gcc.gnu.org/onlinedocs/gcc-7.5.0/gcc/Option-Summary.html#Option-Summary

Actually gcc 9.x supports it:
https://gcc.gnu.org/onlinedocs/gcc-9.5.0/gcc/Option-Summary.html#Option-Summary

If you look at the GCC release dates you will see that in 2019 at least 2 gcc 9.x versions were released along with 7.5:
https://gcc.gnu.org/develop.html#timeline:~:text=GCC%207.5%20release%20(2019%2D11%2D14)

So, the compiler version looks really outdated.
I am wondering what OS do you use and if this compiler default to this OS? Is there any chance to upgrade your compiler version to a newer one?

@BojackFishman
Copy link
Author

Hi Bojack,

The issue is that gcc 7.5.0 doesn't support '-fcf-protection' option: https://gcc.gnu.org/onlinedocs/gcc-7.5.0/gcc/Option-Summary.html#Option-Summary

Actually gcc 9.x supports it: https://gcc.gnu.org/onlinedocs/gcc-9.5.0/gcc/Option-Summary.html#Option-Summary

If you look at the GCC release dates you will see that in 2019 at least 2 gcc 9.x versions were released along with 7.5: https://gcc.gnu.org/develop.html#timeline:~:text=GCC%207.5%20release%20(2019%2D11%2D14)

So, the compiler version looks really outdated. I am wondering what OS do you use and if this compiler default to this OS? Is there any chance to upgrade your compiler version to a newer one?

Thanks for your reply !
Actually my OS version is Ubuntun 18.04 LTS, and yes gcc 7.5 default to it.
I was misled by some inaccurate information and didn't check it carefully that I think gcc 7.5 support that option, so I was quite confused. I shall verify the information catiously in the future. Thanks again for your patient reply.

And by the way , in fact from gcc 8.4 the option '-fcf-protection' has been supported and I just have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants