zig-gamedev / zig-gamedev

Development repo for @zig-gamedev libs and sample applications
MIT License
2.29k stars 173 forks source link

macos 11.7 amd64(x86_64) build error #516

Closed Angluca closed 7 months ago

Angluca commented 8 months ago
zig version
0.12.0-dev.3142+9d500bda2

zig build
warning(zgpu):
---------------------------------------------------------------------------

Dawn/WebGPU binary for this target is not available.

Following targets are supported:

x86_64-windows-gnu
x86_64-linux-gnu
x86_64-macos.12.0.0-none
aarch64-linux-gnu
aarch64-macos.12.0.0-none

---------------------------------------------------------------------------

install
└─ minimal_zgui_glfw_gl
   └─ install minimal_zgui_glfw_gl
      └─ zig build-exe minimal_zgui_glfw_gl Debug native
         └─ zig build-lib zgui Debug native 1 errors
error: unable to check cache: stat file '/Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui.cpp' failed: FileNotFound
error: the following command failed with 1 compilation errors:
/Users/xxx/SDK/Zigs/zig/zig build-lib -cflags -fno-sanitize=undefined -- /Users/xxx/Zigs/zig-gamedev/libs/zgui/src/zgui.cpp -cflags -fno-sanitize=undefined -- /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui_widgets.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui_tables.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui_draw.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/imgui_demo.cpp -cflags -fno-sanitize=undefined -- /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/implot_demo.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/implot.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/implot_items.cpp -cflags -fno-sanitize=undefined -DIMGUI_IMPL_OPENGL_LOADER_CUSTOM -- /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/backends/imgui_impl_glfw.cpp /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui/backends/imgui_impl_opengl3.cpp -ODebug -I /Users/xxx/Zigs/zig-gamedev/libs/zgui/libs -I /Users/xxx/Zigs/zig-gamedev/libs/zgui/libs/imgui -I /Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/include -DZGUI_IMPLOT=1 -Mroot -lc++ -lc --cache-dir /Users/xxx/Zigs/zig-gamedev/zig-cache --global-cache-dir /Users/xxx/.cache/zig --name zgui -static --listen=-
install
└─ minimal_glfw_gl
   └─ install minimal_glfw_gl
      └─ zig build-exe minimal_glfw_gl Debug native
         └─ zig build-lib libglfw Debug native 1 errors
error: unable to check cache: stat file '/Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/platform.c' failed: FileNotFound
error: the following command failed with 1 compilation errors:
/Users/xxx/SDK/Zigs/zig/zig build-lib -lobjc -cflags -D_GLFW_COCOA -- /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/platform.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/monitor.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/init.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/vulkan.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/input.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/context.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/window.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/osmesa_context.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/egl_context.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/null_init.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/null_monitor.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/null_window.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/null_joystick.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/posix_thread.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/posix_module.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/posix_poll.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/nsgl_context.m /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/cocoa_time.c /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/cocoa_joystick.m /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/cocoa_init.m /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/cocoa_window.m /Users/xxx/Zigs/zig-gamedev/Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/src/cocoa_monitor.m -ODebug -I /Users/xxx/Zigs/zig-gamedev/libs/zglfw/libs/glfw/include -F /Users/xxx/Zigs/zig-gamedev/libs/system-sdk/macos12/System/Library/Frameworks -isystem /Users/xxx/Zigs/zig-gamedev/libs/system-sdk/macos12/usr/include -L /Users/xxx/Zigs/zig-gamedev/libs/system-sdk/macos12/usr/lib -Mroot -framework IOKit -framework CoreFoundation -framework Metal -framework AppKit -framework CoreServices -framework CoreGraphics -framework Foundation -lc --cache-dir /Users/xxx/Zigs/zig-gamedev/zig-cache --global-cache-dir /Users/xxx/.cache/zig --name libglfw -static --listen=-
Build Summary: 9/18 steps succeeded; 2 failed (disable with --summary none)
install transitive failure
├─ minimal_glfw_gl transitive failure
│  └─ install minimal_glfw_gl transitive failure
│     └─ zig build-exe minimal_glfw_gl Debug native transitive failure
│        └─ zig build-lib libglfw Debug native 1 errors
└─ minimal_zgui_glfw_gl transitive failure
   └─ install minimal_zgui_glfw_gl transitive failure
      └─ zig build-exe minimal_zgui_glfw_gl Debug native transitive failure
         ├─ zig build-lib zgui Debug native 1 errors
         └─ zig build-lib libglfw Debug native (reused)
error: the following build command failed with exit code 1:
/Users/xxx/Zigs/zig-gamedev/zig-cache/o/1214e0c61586ccb806c36f6f457796c4/build /Users/xxx/SDK/Zigs/zig/zig /Users/xxx/Zigs/zig-gamedev /Users/xxx/Zigs/zig-gamedev/zig-cache /Users/xxx/.cache/zig --seed 0xd4b12a58 -Z57ee43939532ef47
hazeycode commented 8 months ago

Which version of Zig are you using?

Angluca commented 8 months ago

Use master version zig 0.12.0-dev.3142 Old macbook-pro can't upgrade osx 12.0, So only use 11.7 T_T

hazeycode commented 7 months ago

Fixed by https://github.com/zig-gamedev/zig-gamedev/pull/518