-
Notifications
You must be signed in to change notification settings - Fork 132
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
Tests fail to build with gcc-14 (-Werror=implicit-function-declaration) #573
Comments
Hello! Thanks for reporting the error. We can probably easily reproduce locally and surely fix these missing includes. Btw Gcc 14 is not officially supported in SLEEF yet, so there might be other issues. It probably won't be tested (in CI) unless it can be apt installed from the distributions available via github-hosted runners. |
No problem, both sleef-3.6.1 and gcc-14 are available in Gentoo so our users are testing it :) |
Hi! I admit that it is not ideal to rely on implicit declarations, but I could not reproduce this locally and there does not seem to be an issue in GHA (which now uses gcc 14). |
Ok, the real problem here is that my linux system doesn't have #if !defined(__linux__)
#define isinff(x) ((x) == SLEEF_INFINITYf || (x) == -SLEEF_INFINITYf)
#define isinfl(x) ((x) == SLEEF_INFINITYl || (x) == -SLEEF_INFINITYl)
#define isnanf(x) ((x) != (x))
#define isnanl(x) ((x) != (x))
#endif doesn't define it. An "implicit declaration" occurs when The root cause of this is that GNU libc still defines So, the harder but more correct option would be to migrate away from the separate float/long-double implementations towards |
With gcc-14, implicit function definitions have become an error by default. There are a few of these in the test suite:
I copy/pasted some things to get it working, but usually the issue comes down to a missing
#include
.The text was updated successfully, but these errors were encountered: