-
-
Notifications
You must be signed in to change notification settings - Fork 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
Pyxel can't be compiled on Intel Mac #431
Comments
Can you try
It's the same issue as alexcrichton/curl-rust#279, can be resolved by linking to |
arm64 macOS uses |
@messense Maturin 0.13.7 worked! |
The environments I tried were macos-12 for aarch64-apple-darwin and macos-12 for x86_64-apple-darwin on GitHub Actions. The built binaries worked on my M1 Mac on Ventura and Intel Mac on Ventura respectively. |
@messense Should I keep to use Maturin 0.13.7 or update the latest one? |
I think you can stick with 0.13.7 for now, upgrade to new version until PyO3/maturin#1252 is implemented. If you want to use the latest version, add the |
BTW, this behavior change in 0.14 is now documented in https://www.maturin.rs/migration.html#macos-deployment-target-version-defaults-what-rustc-supports |
On Intel Mac with the recent Xcode environment, Pyxel can't be compiled. The situation is similar for Github Actions' hosted runner.
The error happens while compiling SDL2 via rust-sdl2 and the error message is
ld: library not found for -lstdc++
.In the case of declaring
CXXFLAGS="-stdlib=libc++"
, compilation itself is finished without errors, but runtime errorsymbol not found in flat namespace'___isPlatformVersionAtLeast'
happens when the Python module wrapped by PyO3 and Maturin is imported.Regardless of declaring the env variable, Pyxel can be compiled and works on Apple Silicon Mac.
Does anyone know how to resolve this issue?
(Especially @messense , do you have any idea?)
The text was updated successfully, but these errors were encountered: