-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
macOS 10.15 Apple clang 12.0.0 build failed #7264
Comments
That file has an Apple-specific path via the preprocessor to make sure So I guess it's a local build setup issue? |
Well, tbh, I have no idea, it's just clean xcode with no anything installed, build ran using cmake. I have just downloaded last 2.26.3 version and tried to build, previous version was building with no issues. |
Have you tried using the Xcode project that SDL ships with? |
I think this is an issue with the older toolchain. I don't have access to that here, but I'll leave this bug open in case someone else comes along and has a patch to fix this. @Wohlstand? |
I have several virtual machines with the stuff, I could make a shot. |
No response, I'll go ahead and close this for now. Please let us know if it's still an issue. |
Huh, I just forgot about this one... I'll try to test some on my VMs very soon. |
Okay, for a test purposes, I installed the same Xcode version to the Catalina VM, and the same CLang version:
SDL2 branch has been built successfully via CMake and make. Now testing other ways and SDL3... |
SDL3 is also built successfully with CMake build. Now let me try Xcode builds... |
From the SDL3 README-macos.md: You should be able to tweak the Xcode version in the project to open it and build with the older Xcode. I don't know what version should be put there though. |
I just changed the |
I've updated the project so it should build on Xcode 12. |
Ye, it opens and builds, but the build at final just fails for the in-code problem. |
What's an "in-code" problem? |
In my screenshot, you can see that it attempts to link both cocoa and dummy dialogue related modules, and the thing fails to link because of function names collision. |
Did you update? I fixed that. |
Let me try that... Not yet, and I powered off my VM for now, going to boot it again... |
Yay! Thanks! |
I am glad to verify that! Have a good time! |
Xcode 12.4
% g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
src/thread/pthread/SDL_systhread.c:151:52: error: too many arguments to function call, expected 1, have 2
if (pthread_setname_np(pthread_self(), name) == ERANGE) {
~~~~~~~~~~~~~~~~~~
pthread_setname_np() accepts only one argument 'name' on this platform
The text was updated successfully, but these errors were encountered: