gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 551 forks source link

Link error: missing symbol _kCAGravityTopLeft on macOS #3750

Closed parasyte closed 3 years ago

parasyte commented 3 years ago

Short info header:


Trying to build an app with fltk or fermium (SDL2) fails with a missing symbol error during linking.

The function was added in https://github.com/gfx-rs/gfx/pull/3731 And there was a followup patch that was supposed to fix this: https://github.com/gfx-rs/gfx/pull/3742 I'm not sure if something else is actually missing here, but the FLTK and SDL2 examples in the pixels repo are the only ones that fail to compile.

To repro, build the minimal-fltk or minimal-sdl2 examples in the pixels repo. Starting with commit id https://github.com/parasyte/pixels/commit/f238814d12aa186a4cd9db3badda9ae1c3bf29b5

$ cargo run --release --package minimal-fltk ``` Compiling minimal-fltk v0.1.0 (/Users/parasyte/projects/pixels/examples/minimal-fltk) error: linking with `cc` failed: exit status: 1 | = note: "cc" "-m64" "-arch" "x86_64" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.0.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.1.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.10.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.11.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.12.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.13.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.14.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.15.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.2.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.3.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.4.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.5.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.6.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.7.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.8.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.minimal_fltk.chw6ckua-cgu.9.rcgu.o" "-o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk" "/Users/parasyte/projects/pixels/target/release/deps/minimal_fltk.16h3fs7n0raimz4l.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/parasyte/projects/pixels/target/release/deps" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/build" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/build/Release" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib64" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib/Release" "-L" "/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib64/Release" "-L" "/Users/parasyte/projects/pixels/target/release/build/objc_exception-e214845630be5564/out" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/libenv_logger-f8f49a99a8e0eb79.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libatty-dc0b12e096726c63.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhumantime-5645cc456d4aadd7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex-522996e7fad67a25.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libaho_corasick-158b88949238e5c0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmemchr-26aa2534f52fed1e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex_syntax-123405eeaec18d30.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpixels-da14dbc739cde7e0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpollster-4c36940fb0456a14.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libultraviolet-8bb418de37d4a935.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwide-ba1dc680179ae395.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsafe_arch-103f5037f6d833e6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbytemuck-97ef221728ef66cc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu-78285b93aee46ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_core-38a699e294a08cbe.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc-3377f2dd7e42c4d5.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc_types-e2256292183bcc8b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor-749a41a301b1af8a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor_types-0f7e1d2b4f627507.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_types-c62a8bd58dada415.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_metal-f5a6a2059bff96b4.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libprofiling-3ddc8da546bdbd86.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libstorage_map-ee465e1a8d16e4a9.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcopyless-d8ed87c6f5ebafac.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmetal-400d60c4414b8516.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcocoa_foundation-3c52fdc678b2f7a7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types-b523a44341688285.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types_shared-a32743d133089662.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_graphics_types-d89538db6f7f6034.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation-c73f1d3721828bf3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation_sys-f9d258b6a44f0c28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libblock-3b03e44ae483bb71.rlib" "/Users/parasyte/projects/pixels/target/release/deps/librange_alloc-ad3872f1d2339f5b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_empty-c7bdda42390e3d12.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_hal-cfc59c67fc939552.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnaga-896cfcde4e33919f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfxhash-f53876ae403b69c6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbyteorder-66fb10972b657068.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcodespan_reporting-bfe1a61c09d3afb0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libunicode_width-51914c151ec42269.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libtermcolor-35917ae97a22f11e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpetgraph-092d7fee0f42c6f3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libindexmap-1598bb72e74798d1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhashbrown-e92f5209cd2e6770.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libahash-3c499df46ba6353e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfixedbitset-67cc0d680a322469.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libthiserror-edb58e9ab2372a5e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libspirv_headers-4153ef434c1e4ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnum_traits-d65e543181363af1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_set-547eea718240f14a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_vec-d3e785ac8866d647.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot-fc59180cd155deca.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot_core-3dee691cc68b7cfa.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsmallvec-66ba01edeb55491b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblock_api-dcfcde40afe97e28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libscopeguard-af75c3d4ab87846c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libinstant-bb40a85c9f18fffc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libarrayvec-cd017989f394b26b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblog-b3034436fe59feab.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcfg_if-981b590c1b3dfe95.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfltk-464346f41708cb8e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libraw_window_handle-a859269488f46948.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfltk_sys-c4add92d3938e819.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libobjc-806883360f2ed84f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmalloc_buf-680311d1249a765c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblibc-422c15f341c3fe7a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbitflags-f176b72f326ddfb7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblazy_static-f975ffce16139e6a.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-46a061b08cc06738.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-7bebd2f04d2b9056.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-8022bf77ecaec932.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-40998048b1ba428e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-bd2a545ac887ab20.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-c0832a78f281aa17.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-e84927fb7a338bcb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-80e6dd310746668f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-70160232b7f5a1eb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-dc1f6511b0655580.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7606550a486f0fa7.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-d71be2efb2f94c3f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-6bbd477ed289203f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-c7c7638eea6d267e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-ac475f5c856023a5.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-35393beafda280dd.rlib" "-framework" "Metal" "-lSystem" "-framework" "Foundation" "-framework" "Foundation" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-framework" "Carbon" "-framework" "Cocoa" "-framework" "ApplicationServices" "-lobjc" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-fuse-ld=/usr/local/bin/zld" = note: ld: warning: directory not found for option '-L/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/build/Release' ld: warning: directory not found for option '-L/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib64' ld: warning: directory not found for option '-L/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib/Release' ld: warning: directory not found for option '-L/Users/parasyte/projects/pixels/target/release/build/fltk-sys-d8c3b97f9680815a/out/lib64/Release' Undefined symbols for architecture x86_64: "_kCAGravityTopLeft", referenced from: gfx_backend_metal::Instance::create_surface_from_nsview::hb542c2857e4201f9 in libgfx_backend_metal-f5a6a2059bff96b4.rlib(gfx_backend_metal-f5a6a2059bff96b4.gfx_backend_metal.cn6147uw-cgu.6.rcgu.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error error: could not compile `minimal-fltk` ```
$ cargo run --release --package minimal-sdl2 ``` Compiling minimal-sdl2 v0.1.0 (/Users/parasyte/projects/pixels/examples/minimal-sdl2) error: linking with `cc` failed: exit status: 1 | = note: "cc" "-m64" "-arch" "x86_64" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.0.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.1.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.10.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.11.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.12.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.13.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.14.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.15.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.2.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.3.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.4.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.5.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.6.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.7.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.8.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.minimal_sdl2.2lzsi4jx-cgu.9.rcgu.o" "-o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2" "/Users/parasyte/projects/pixels/target/release/deps/minimal_sdl2.4w3tvfis7afdf774.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/parasyte/projects/pixels/target/release/deps" "-L" "/usr/local/lib" "-L" "/usr/lib" "-L" "/usr/local/lib" "-L" "/Users/parasyte/projects/pixels/target/release/build/objc_exception-e214845630be5564/out" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/libenv_logger-f8f49a99a8e0eb79.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libatty-dc0b12e096726c63.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhumantime-5645cc456d4aadd7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex-522996e7fad67a25.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libaho_corasick-158b88949238e5c0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmemchr-26aa2534f52fed1e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex_syntax-123405eeaec18d30.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpixels-da14dbc739cde7e0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpollster-4c36940fb0456a14.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libultraviolet-8bb418de37d4a935.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwide-ba1dc680179ae395.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsafe_arch-103f5037f6d833e6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbytemuck-97ef221728ef66cc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu-78285b93aee46ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_core-38a699e294a08cbe.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc-3377f2dd7e42c4d5.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc_types-e2256292183bcc8b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor-749a41a301b1af8a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor_types-0f7e1d2b4f627507.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_types-c62a8bd58dada415.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_metal-f5a6a2059bff96b4.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libprofiling-3ddc8da546bdbd86.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libstorage_map-ee465e1a8d16e4a9.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcopyless-d8ed87c6f5ebafac.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmetal-400d60c4414b8516.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcocoa_foundation-3c52fdc678b2f7a7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types-b523a44341688285.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types_shared-a32743d133089662.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_graphics_types-d89538db6f7f6034.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation-c73f1d3721828bf3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation_sys-f9d258b6a44f0c28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libblock-3b03e44ae483bb71.rlib" "/Users/parasyte/projects/pixels/target/release/deps/librange_alloc-ad3872f1d2339f5b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_empty-c7bdda42390e3d12.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_hal-cfc59c67fc939552.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnaga-896cfcde4e33919f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfxhash-f53876ae403b69c6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbyteorder-66fb10972b657068.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblog-b3034436fe59feab.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcodespan_reporting-bfe1a61c09d3afb0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libunicode_width-51914c151ec42269.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libtermcolor-35917ae97a22f11e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpetgraph-092d7fee0f42c6f3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libindexmap-1598bb72e74798d1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhashbrown-e92f5209cd2e6770.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libahash-3c499df46ba6353e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfixedbitset-67cc0d680a322469.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libthiserror-edb58e9ab2372a5e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libspirv_headers-4153ef434c1e4ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnum_traits-d65e543181363af1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_set-547eea718240f14a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_vec-d3e785ac8866d647.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbitflags-f176b72f326ddfb7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot-fc59180cd155deca.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot_core-3dee691cc68b7cfa.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsmallvec-66ba01edeb55491b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblock_api-dcfcde40afe97e28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libscopeguard-af75c3d4ab87846c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libinstant-bb40a85c9f18fffc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcfg_if-981b590c1b3dfe95.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libarrayvec-cd017989f394b26b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libberyllium-bdc5709ea2131430.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libraw_window_handle-a859269488f46948.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libobjc-806883360f2ed84f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmalloc_buf-680311d1249a765c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblibc-422c15f341c3fe7a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfermium-dfdaf5ff7459b78f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libchlorine-2351a0f9e8d69c60.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-46a061b08cc06738.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-7bebd2f04d2b9056.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-8022bf77ecaec932.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-40998048b1ba428e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-bd2a545ac887ab20.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-c0832a78f281aa17.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-e84927fb7a338bcb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-80e6dd310746668f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-70160232b7f5a1eb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-dc1f6511b0655580.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7606550a486f0fa7.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-d71be2efb2f94c3f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-6bbd477ed289203f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-c7c7638eea6d267e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-ac475f5c856023a5.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-35393beafda280dd.rlib" "-framework" "Metal" "-lSystem" "-framework" "Foundation" "-framework" "Foundation" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-lobjc" "-liconv" "-lSDL2" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-fuse-ld=/usr/local/bin/zld" = note: Undefined symbols for architecture x86_64: "_kCAGravityTopLeft", referenced from: gfx_backend_metal::Instance::create_surface_from_nsview::hb542c2857e4201f9 in libgfx_backend_metal-f5a6a2059bff96b4.rlib(gfx_backend_metal-f5a6a2059bff96b4.gfx_backend_metal.cn6147uw-cgu.6.rcgu.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error error: could not compile `minimal-sdl2` ```

I don't see the expected QuartzCore framework in the linker command.

parasyte commented 3 years ago

Any of the examples using winit works as expected, and does include the QuartzCore framework in the linker command.

$ RUSTFLAGS='-Z print-link-args' cargo run --release --package minimal-winit ``` Compiling minimal-winit v0.1.0 (/Users/parasyte/projects/pixels/examples/minimal-winit) "cc" "-m64" "-arch" "x86_64" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.0.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.1.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.10.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.11.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.12.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.13.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.14.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.15.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.2.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.3.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.4.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.5.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.6.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.7.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.8.rcgu.o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.minimal_winit.8jhosxyp-cgu.9.rcgu.o" "-o" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit" "/Users/parasyte/projects/pixels/target/release/deps/minimal_winit.45lod8xbrsdgszak.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/parasyte/projects/pixels/target/release/deps" "-L" "/Users/parasyte/projects/pixels/target/release/build/objc_exception-e214845630be5564/out" "-L" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/parasyte/projects/pixels/target/release/deps/libenv_logger-f8f49a99a8e0eb79.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libatty-dc0b12e096726c63.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhumantime-5645cc456d4aadd7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex-522996e7fad67a25.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libaho_corasick-158b88949238e5c0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmemchr-26aa2534f52fed1e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libregex_syntax-123405eeaec18d30.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwinit_input_helper-8a3f7fd162653278.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwinit-7d2a3c9810a92702.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libdispatch-f23fff06f028e462.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_video_sys-09003ab4fc89e051.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_graphics-5eb07a0afc9804b9.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation-e92d45ad7f7c2047.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation_sys-16a3bcd7bfc3ecd9.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcfg_if-1ac3f129457c24ac.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcocoa-ab2c5d2fe3690ce0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_graphics-60cb1220f9235839.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblazy_static-f975ffce16139e6a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpixels-da14dbc739cde7e0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpollster-4c36940fb0456a14.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libultraviolet-8bb418de37d4a935.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwide-ba1dc680179ae395.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsafe_arch-103f5037f6d833e6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbytemuck-97ef221728ef66cc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu-78285b93aee46ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_core-38a699e294a08cbe.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc-3377f2dd7e42c4d5.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_alloc_types-e2256292183bcc8b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor-749a41a301b1af8a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgpu_descriptor_types-0f7e1d2b4f627507.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libwgpu_types-c62a8bd58dada415.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_metal-f5a6a2059bff96b4.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libprofiling-3ddc8da546bdbd86.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libstorage_map-ee465e1a8d16e4a9.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcopyless-d8ed87c6f5ebafac.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmetal-400d60c4414b8516.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcocoa_foundation-3c52fdc678b2f7a7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types-b523a44341688285.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libforeign_types_shared-a32743d133089662.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_graphics_types-d89538db6f7f6034.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation-c73f1d3721828bf3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcore_foundation_sys-f9d258b6a44f0c28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libblock-3b03e44ae483bb71.rlib" "/Users/parasyte/projects/pixels/target/release/deps/librange_alloc-ad3872f1d2339f5b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libobjc-806883360f2ed84f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libmalloc_buf-680311d1249a765c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_backend_empty-c7bdda42390e3d12.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libgfx_hal-cfc59c67fc939552.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnaga-896cfcde4e33919f.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfxhash-f53876ae403b69c6.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbyteorder-66fb10972b657068.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcodespan_reporting-bfe1a61c09d3afb0.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libunicode_width-51914c151ec42269.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libtermcolor-35917ae97a22f11e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libpetgraph-092d7fee0f42c6f3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libindexmap-1598bb72e74798d1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libhashbrown-e92f5209cd2e6770.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libahash-3c499df46ba6353e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libfixedbitset-67cc0d680a322469.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libthiserror-edb58e9ab2372a5e.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libspirv_headers-4153ef434c1e4ac3.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libnum_traits-d65e543181363af1.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_set-547eea718240f14a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbit_vec-d3e785ac8866d647.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libbitflags-f176b72f326ddfb7.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot-fc59180cd155deca.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libparking_lot_core-3dee691cc68b7cfa.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libsmallvec-66ba01edeb55491b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblock_api-dcfcde40afe97e28.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libscopeguard-af75c3d4ab87846c.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libinstant-bb40a85c9f18fffc.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libarrayvec-cd017989f394b26b.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libraw_window_handle-a859269488f46948.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblibc-422c15f341c3fe7a.rlib" "/Users/parasyte/projects/pixels/target/release/deps/liblog-b3034436fe59feab.rlib" "/Users/parasyte/projects/pixels/target/release/deps/libcfg_if-981b590c1b3dfe95.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-46a061b08cc06738.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-7bebd2f04d2b9056.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libobject-8022bf77ecaec932.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-40998048b1ba428e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libgimli-bd2a545ac887ab20.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-c0832a78f281aa17.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-e84927fb7a338bcb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-80e6dd310746668f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-70160232b7f5a1eb.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-dc1f6511b0655580.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-7606550a486f0fa7.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-d71be2efb2f94c3f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-6bbd477ed289203f.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-c7c7638eea6d267e.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-ac475f5c856023a5.rlib" "/Users/parasyte/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-35393beafda280dd.rlib" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-framework" "CoreVideo" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-framework" "AppKit" "-framework" "AppKit" "-framework" "QuartzCore" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-framework" "Metal" "-lSystem" "-framework" "Foundation" "-framework" "Foundation" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-lobjc" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" Finished release [optimized] target(s) in 1m 36s Running `target/release/minimal-winit` ```
parasyte commented 3 years ago

The referenced PRs fix this issue. The Metal backend just needs a patch release.

parasyte commented 3 years ago

Fixed by https://github.com/gfx-rs/gfx/commit/e625940050cd184d8696a967f0b227936674edfa