-
Notifications
You must be signed in to change notification settings - Fork 597
Fixes for Darwin: fallback for systems without libdispatch; fix for undefined types from inttypes.h #851
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
Conversation
|
see #610 where Evan has been working on this for several years already… |
Thank you for referring. The issue got stalled there, no updates since 2021, but I can see what happens with those test cases. We still need a fix for PRi* types (well, your fix in fact) and a case of 10.6 with a build for ppc (unsupported whether in Rosetta or natively). P. S. I actually have a reason why I want this fixed, being used in my new port. Sure enough, in the worst case I can disable it for PPC and 10.5 specifically, but fixing incrementally is IMO better than leaving it broken indefinitely. |
|
For For libdispatch, if older versions don't have it or can't use it, and there's no other alternative to its buggy POSIX semaphore implementation, that's the best thing to use for the time being. |
@kcat Thank you for responding! C++ documentation mentions that those may be needed on some platforms. I do not know the precise rule (so by implication I am not sure what exactly to check). From experience, GCC needs either those or
It would be nice to have at least those posix semaphores set as a fallback, FWIW. We may not get a stellar performance, but they are known to work. |
Adding the macro to |
Ah, okay, so you just suggest to pass it unconditionally. |
|
Commit 118c729 should take care of |
|
@kcat Dropped |
|
@kcat Unfortunately, CMakeLists fix for does not work as intended. Configure gives me this: And CMake cache: Then, flag is not passed and build fails with all the same errors. |
This PR addresses the build on macOS < 10.7 and PowerPC, which are currently broken for two reasons:
libdispatch.__STDC_FORMAT_MACROS.With these fixed,
openal-softbuilds successfully.