cargo run --example breakout doesn't work on macOS 10.16
Wanted to try out the bevy breakout example on macOS (v10.16 Beta 3):
git clone https://github.com/bevyengine/bevy/
cd bevy
cargo run --example breakout
Error:
error: failed to run custom build command for `spirv_cross v0.20.0`
Caused by:
process didn't exit successfully: `/Users/bryanhpchiang/Documents/Workspace/bevy/target/debug/build/spirv_cross-52c57a1cb3370703/build-script-build` (exit code: 1)
--- stderr
error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/Users/bryanhpchiang/Documents/Workspace/bevy/target/debug/build/spirv_cross-fbf5ef97d3152e9c/out/src/wrapper.o" "-c" "src/wrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1).
warning: build failed, waiting for other jobs to finish...
error: build failed
Any suggestions on fixing this?
Fixed this by updating macOS Command Line Tools (had to download from Apple Developer website since I'm on the beta)
On Sun, Aug 16, 2020 at 4:01 AM, Bryan Chiang < [email protected] > wrote:
Wanted to try out the bevy breakout example on macOS (v10.16 Beta 3):
git clone https:/ / github. com/ bevyengine/ bevy/ ( https://github.com/bevyengine/bevy/ ) cd bevy cargo run --example breakout
Error:
error: failed to run custom build command for
spirv_cross v0.20.0Caused by: process didn't exit successfully:
/Users/bryanhpchiang/Documents/Workspace/bevy/target/debug/build/spirv_cross-52c57a1cb3370703/build-script-build(exit code: 1)--- stderr
error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/Users/bryanhpchiang/Documents/Workspace/bevy/target/debug/build/spirv_cross-fbf5ef97d3152e9c/out/src/wrapper.o" "-c" "src/wrapper.cpp" with args "c++" did not execute successfully (status code exit code: 1).
warning: build failed, waiting for other jobs to finish... error: build failed
Any suggestions on fixing this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub ( https://github.com/bevyengine/bevy/issues/205 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/ACRBWAIZTF5BTZ537LFTSODSA64BLANCNFSM4QAYSQEA ).