-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
bevy fails to compile/run on musl based linux distros #898
Comments
Having spent a bit of time debugging this, I changed some conditionals to make this use shaderc and it doesnt fail to compile the render crate now, it still segfaults though, however I think the issue is in the rodio alsa crate |
Yes, FYI (to anyone attempting to compile Bevy apps for any target other than the most common explicitly supported ones (x86_64 windows/linux-gnu/macos, AArch64 ios/android/macos, wasm)): Bevy uses a temporary ugly hack for shader compilation ( To use bevy on other platforms, you need to switch out You need to remove the conditional compilation checks in the |
`cfg` for `bevy-glsl-to-spirv` use now mimics https://github.com/cart/glsl-to-spirv/blob/master/Cargo.toml fixes bevyengine#898 fixes bevyengine#1348 fixes bevyengine#1942 fixes bevyengine#1078
Bevy version
0.3/master also fails the same way
Operating system & version
Alpine linux edge
What you did
Attempt to compile and run a bevy example on alpine linux.
What you expected to happen
the sample would run
What actually happened
The engine fails to compile when compiling cart/glsl-to-spirv
Additional information
The engine fails to compile as
x86_64-unknown-linux-gnu
is being used but alpine expectsx86_64-unknown-linux-musl
If I edit the glsl-to-spirv build.rs files to use
-musl
the compilation succeeds however, it then fails to launch and exits with a segfault to the usage of the precompiled static libraries expecting glibc (as far as i can understand anyway).Also worth mentioning, if I dont use the fast compile .cargo/config i get a huge error that ends with the log below.
Since reporting this I've also tried building with shaderc adding conditionals for musl/linux which when running an example segfaults
The text was updated successfully, but these errors were encountered: