-
Notifications
You must be signed in to change notification settings - Fork 46
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
Build failure with Clang 16 (-Wincompatible-function-pointer-types
)
#68
Comments
In order to get this installed did you successfully suppress warnings on clang 16? or did you find another solution? Currently I cannot progress as it will not let me install the gsl gem |
It seems that bug was closed with this commit: But from a quick skim, I'm not 100% what the actual fix was, and/or how to apply it back up at this level of things. Here are all the bugs that were listed as fixed by that commit:
It seems it's only compatible with gsl 2.1 as well:
|
In the
But in
ChatGPT claims I should be able to pass that through like this: CFLAGS="-Wno-incompatible-function-pointer-types" gem install gsl -v '2.1.0.3' --source 'https://rubygems.org/' But when I tried I still got the same errors. Not sure if that is because I'm passing it through wrong, the 'opt out' flag doesn't exist on clang 15, or if it just won't work as a solution at all. |
Clang 16 makes
-Wincompatible-function-pointer-types
an error by default.rb-gsl hits the following failure when building with Clang 16:
To reproduce this bug:
-Werror=incompatible-function-pointer-types
-Werror=incompatible-pointer-types
(GCC lacks a more specific warning)Reported downstream in Gentoo at https://bugs.gentoo.org/895684.
The text was updated successfully, but these errors were encountered: