-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
gcc 4.9.3 problem #2665
Comments
https://gcc.gnu.org/develop.html#timeline so that's a rather old gcc (first released 2014). But it might actually be a feature of your glibc and/or OS, where we expect that function to be available via stdlib.h : The easiest standard conforming way would be to upgrade to c++17 .... but that doesn't help gcc 4.9.3 either. Do you have a suggestion how this could be fixed (basically, I think we need an additional condition on the define that uses the code). |
Just I have glibc-2.15, and
Many legacy servers can't be upgraded |
so on your system, can you test if the code works with posix_memalign ? I wonder if there are linux systems where aligned_alloc works but not posix_memalign. |
@vondele yes, it works for me:
Have the same bench:
|
should be a little more portable to older linux systems (before glibc-2.16). fixes official-stockfish#2665 No functional change.
The text was updated successfully, but these errors were encountered: