Skip to content
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

error: linking with link.exe failed: exit code: 1120 #464

Closed
0rphon opened this issue Jan 19, 2020 · 10 comments
Closed

error: linking with link.exe failed: exit code: 1120 #464

0rphon opened this issue Jan 19, 2020 · 10 comments
Labels
type: bug Something isn't working

Comments

@0rphon
Copy link

0rphon commented Jan 19, 2020

im attempting to use pixels which uses wgpu as a dependency. When i try to compile i get the following wgpu error:

error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.0.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.1.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.10.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.11.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.12.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.13.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.14.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.15.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.2.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.3.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.4.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.5.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.6.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.7.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.8.rcgu.o" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.wgpu_native.en5mh52n-cgu.9.rcgu.o" "/OUT:C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.dll" "/DEF:C:\\Users\\Elijah.000\\AppData\\Local\\Temp\\rustcVnmLta\\lib.def" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.34v9405h3id8js4v.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps" "/LIBPATH:C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\build\\spirv_cross-f3d9b019adf8d1cb\\out" "/LIBPATH:C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libvec_map-40fb2e5d5d0bc20b.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\librendy_memory-8614eebacdbb81a9.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libslab-b1cc884c5d3910bc.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libcolorful-3ede600e241666fb.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libhibitset-ad63090756d84f0e.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libatom-c15e81f62dc325cd.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libcopyless-9f41f5589cc8ab14.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\librendy_descriptor-15573bdc80762527.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\librelevant-7488e35bb90ea782.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_backend_vulkan-7a6c8454137b179b.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libarrayvec-45fe720c8d49f620.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libash-da0ab63a15323307.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libshared_library-e6a53d52cf18c69b.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\liblazy_static-0f47665919efc2d9.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_backend_empty-a0ee0debaa849907.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_backend_dx12-6c0a521388a10b9f.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libd3d12-00976f5315de69c1.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_backend_dx11-b5330d49df5998b9.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libwio-d4df133721f2b090.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libparking_lot-08e5deeab469a8aa.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libparking_lot_core-f6afc758b0160a11.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\liblock_api-c2f9817bc400f72c.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libscopeguard-19462f381fd9fbb0.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\liblog-2f1435f61e41e05c.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libcfg_if-ec34dfddbd9996eb.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\liblibloading-43125fb797a1dc59.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libwinapi-4cf64f1039488f76.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\librange_alloc-ff00a044b445ffa1.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_auxil-abebb060e143bdc1.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libfxhash-489e4aed8ff73b88.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libbyteorder-2a5fd6a6439254fb.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libspirv_cross-654419f765893819.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libgfx_hal-6d176bf1b3028b46.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libraw_window_handle-84e5fe61dbf81096.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\liblibc-2d3dc14927d80887.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libsmallvec-4c20a3406e05d320.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libmaybe_uninit-bdc337cabcc28eef.rlib" "C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\libbitflags-32fd7420814d3220.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-8a5a44f7d6eecc27.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-02c4adc465c51179.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-f168923b2471eb89.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-83de629a6fe6ea7e.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-dbe2f79a4dff2bfb.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fd31f5868238b806.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-bb388fc928b4655e.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-840a2fbe6ef93d4e.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-fa038a450c7df728.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-d9c83a19446f1049.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-6cba6311351b7f84.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-5da1591a1c8aa4bd.rlib" "C:\\Users\\Elijah.000\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-f0f714497ea6aee0.rlib" "advapi32.lib" "cfgmgr32.lib" "d3d11.lib" "d3d12.lib" "d3dcompiler.lib" "dxgi.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "opengl32.lib" "synchronization.lib" "user32.lib" "winspool.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" "/DLL" "/IMPLIB:C:\\Users\\Elijah.000\\Desktop\\coding\\Rust\\Game\\babel\\target\\debug\\deps\\wgpu_native-e421b97e10ca0957.dll.lib"  
  = note:    Creating library C:\Users\Elijah.000\Desktop\coding\Rust\Game\babel\target\debug\deps\wgpu_native-e421b97e10ca0957.dll.lib and object C:\Users\Elijah.000\Desktop\coding\Rust\Game\babel\target\debug\deps\wgpu_native-e421b97e10ca0957.dll.exp
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_parser.o)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_hlsl.o)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_msl.o)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cfg.o)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o)' 
          LINK : warning LNK4217: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(wrapper.o)' in function '"public: __cdecl std::runtime_error::runtime_error(class std::runtime_error const &)" (??0runtime_error@std@@QEAA@AEBV01@@Z)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross.o)'
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross_util.o)'      
          LINK : warning LNK4286: symbol '??0exception@std@@QEAA@AEBV01@@Z (public: __cdecl std::exception::exception(class std::exception const &))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_glsl.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_parser.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_hlsl.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_msl.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cfg.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o)'
          LINK : warning LNK4217: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(wrapper.o)' in function '"public: virtual __cdecl std::runtime_error::~runtime_error(void)" (??1runtime_error@std@@UEAA@XZ)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_cross_util.o)'
          LINK : warning LNK4286: symbol '??1exception@std@@UEAA@XZ (public: virtual __cdecl std::exception::~exception(void))' defined in 'msvcrt.lib(throw_bad_alloc.obj)' is imported by 'libspirv_cross-654419f765893819.rlib(spirv_glsl.o)'
          libspirv_cross-654419f765893819.rlib(spirv_parser.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_hlsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cfg.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(wrapper.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: 
__cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross_util.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
          libspirv_cross-654419f765893819.rlib(spirv_glsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl std::exception::exception(char const * const &)" (__imp_??0exception@std@@QEAA@AEBQEBD@Z)
            Hint on symbols that are defined and could potentially match:
              "__declspec(dllimport) public: __cdecl std::exception::exception(class std::exception const &)" (__imp_??0exception@std@@QEAA@AEBV01@@Z)
          libspirv_cross-654419f765893819.rlib(spirv_hlsl.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(wrapper.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(spirv_cross_util.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(spirv_glsl.o) : error LNK2001: unresolved external symbol __imp_sprintf_s
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_cfg.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_parser.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(wrapper.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: 
void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_glsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_hlsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base0@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_parser.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_hlsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cfg.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(wrapper.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross_util.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_glsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_Winerror_map@std@@YAPEBDH@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl terminate(void)" (__imp_?terminate@@YAXXZ) referenced in function "public: void __cdecl std::list<unsigned int,class std::allocator<unsigned int> >::swap(class std::list<unsigned int,class std::allocator<unsigned int> > &)" (?swap@?$list@IV?$allocator@I@std@@@std@@QEAAXAEAV12@@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl terminate(void)" (__imp_?terminate@@YAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_parser.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Swap_all(struct std::_Container_base0 &)" (__imp_?_Swap_all@_Container_base0@std@@QEAAXAEAU12@@Z)  
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: 
void __cdecl std::_Container_base0::_Swap_all(struct std::_Container_base0 &)" (__imp_?_Swap_all@_Container_base0@std@@QEAAXAEAU12@@Z)   
          libspirv_cross-654419f765893819.rlib(spirv_hlsl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Swap_all(struct std::_Container_base0 &)" (__imp_?_Swap_all@_Container_base0@std@@QEAAXAEAU12@@Z)    
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Swap_all(struct std::_Container_base0 &)" (__imp_?_Swap_all@_Container_base0@std@@QEAAXAEAU12@@Z)     
          libspirv_cross-654419f765893819.rlib(spirv_cross_parsed_ir.o) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl std::_Container_base0::_Swap_all(struct std::_Container_base0 &)" (__imp_?_Swap_all@_Container_base0@std@@QEAAXAEAU12@@Z)
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: 
__cdecl std::_Container_base12::_Container_base12(void)" (__imp_??0_Container_base12@std@@QEAA@XZ) referenced in function "public: __cdecl std::_Deque_val<struct std::_Deque_simple_types<struct spirv_cross::SPIRFunction *> >::_Deque_val<struct std::_Deque_simple_types<struct spirv_cross::SPIRFunction *> >(void)" (??0?$_Deque_val@U?$_Deque_simple_types@PEAUSPIRFunction@spirv_cross@@@std@@@std@@QEAA@XZ)       
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: 
__cdecl std::_Container_base12::~_Container_base12(void)" (__imp_??1_Container_base12@std@@QEAA@XZ) referenced in function "public: __cdecl std::_Deque_val<struct std::_Deque_simple_types<struct spirv_cross::SPIRFunction *> >::~_Deque_val<struct std::_Deque_simple_types<struct spirv_cross::SPIRFunction *> >(void)" (??1?$_Deque_val@U?$_Deque_simple_types@PEAUSPIRFunction@spirv_cross@@@std@@@std@@QEAA@XZ)     
          libspirv_cross-654419f765893819.rlib(spirv_cross.o) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: 
void __cdecl std::_Container_base12::_Orphan_all(void)" (__imp_?_Orphan_all@_Container_base12@std@@QEAAXXZ) referenced in function "public: void __cdecl std::_Deque_alloc<0,struct std::_Deque_base_types<struct spirv_cross::SPIRFunction *,class std::allocator<struct spirv_cross::SPIRFunction *> > >::_Free_proxy(void)" (?_Free_proxy@?$_Deque_alloc@$0A@U?$_Deque_base_types@PEAUSPIRFunction@spirv_cross@@V?$allocator@PEAUSPIRFunction@spirv_cross@@@std@@@std@@@std@@QEAAXXZ)
          libspirv_cross-654419f765893819.rlib(spirv_glsl.o) : error LNK2019: unresolved external symbol __imp_sprintf referenced in function "protected: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerGLSL::convert_float_to_string(struct spirv_cross::SPIRConstant const &,unsigned int,unsigned int)" (?convert_float_to_string@CompilerGLSL@spirv_cross@@IEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBUSPIRConstant@2@II@Z)
          libspirv_cross-654419f765893819.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol __imp_sprintf
          C:\Users\Elijah.000\Desktop\coding\Rust\Game\babel\target\debug\deps\wgpu_native-e421b97e10ca0957.dll : fatal error LNK1120: 10 unresolved externals


error: aborting due to previous error

error: could not compile `wgpu-native`.

To learn more, run the command again with --verbose.```
@grovesNL
Copy link
Collaborator

Thanks for reporting this issue! The errors appear to originate from spirv_cross which builds a C++ dependency.

Could you try to run the examples from wgpu-rs or examples from spirv_cross to check if spirv_cross can be used in general (outside of pixels)?

Also which features/target/build options are being used with pixels so we can try to reproduce this? i.e. do you have any pixels features enabled, Debug vs. Release, are you trying to build a static library, etc.

@grovesNL grovesNL added the type: bug Something isn't working label Jan 19, 2020
@0rphon
Copy link
Author

0rphon commented Jan 19, 2020

i was just testing to see if importing pixels would work. i used pixels = "0.0.2" under dependencies but besides that it was just a basic hello world file being built to a bin. i just tried adding wgpu = "0.4.0" instead of pixels and the same error happened. attempting to build the examples from spirv_cross does this:

PS D:\Downloads\spirv_cross-master> cargo test
  Downloaded bindgen v0.30.0
  Downloaded cexpr v0.2.3
  Downloaded clang-sys v0.19.0
  Downloaded aster v0.41.0
  Downloaded lazy_static v0.2.11
  Downloaded env_logger v0.4.3
  Downloaded quasi v0.32.0
  Downloaded which v1.0.5
  Downloaded syntex_syntax v0.58.1
  Downloaded log v0.3.9
  Downloaded quasi_codegen v0.32.0
  Downloaded regex v0.2.11
  Downloaded rustc-serialize v0.3.24
  Downloaded clap v2.33.0
  Downloaded bitflags v0.9.1
  Downloaded bitflags v0.8.2
  Downloaded glob v0.2.11
  Downloaded syntex_errors v0.58.1
  Downloaded peeking_take_while v0.1.2
  Downloaded syntex_pos v0.58.1
  Downloaded unicode-xid v0.0.4
  Downloaded nom v3.2.1
  Downloaded aho-corasick v0.6.10
  Downloaded strsim v0.8.0
  Downloaded textwrap v0.11.0
  Downloaded syntex v0.58.1
  Downloaded term v0.4.6
  Downloaded thread_local v0.3.6
  Downloaded memchr v2.3.0
  Downloaded utf8-ranges v1.0.4
  Downloaded regex-syntax v0.5.6
  Downloaded kernel32-sys v0.2.2
  Downloaded libloading v0.4.3
  Downloaded atty v0.2.14
  Downloaded winapi v0.2.8
  Downloaded unicode-width v0.1.7
  Downloaded memchr v1.0.2
  Downloaded winapi-build v0.1.1
  Downloaded ucd-util v0.1.7
   Compiling libc v0.2.66
   Compiling winapi-build v0.1.1
   Compiling cc v1.0.50
   Compiling winapi v0.2.8
   Compiling log v0.4.8
   Compiling cfg-if v0.1.10
   Compiling rustc-serialize v0.3.24
   Compiling unicode-xid v0.0.4
   Compiling bitflags v0.8.2
   Compiling lazy_static v1.4.0
   Compiling memchr v2.3.0
   Compiling winapi v0.3.8
   Compiling regex v0.2.11
   Compiling libloading v0.4.3
   Compiling bitflags v1.2.1
   Compiling glob v0.2.11
   Compiling ucd-util v0.1.7
   Compiling utf8-ranges v1.0.4
   Compiling unicode-width v0.1.7
   Compiling vec_map v0.8.1
   Compiling bitflags v0.9.1
   Compiling strsim v0.8.0
   Compiling peeking_take_while v0.1.2
   Compiling lazy_static v0.2.11
   Compiling wasm v0.1.0 (D:\Downloads\spirv_cross-master\wasm)
   Compiling thread_local v0.3.6
   Compiling kernel32-sys v0.2.2
   Compiling regex-syntax v0.5.6
   Compiling textwrap v0.11.0
   Compiling syntex_pos v0.58.1
   Compiling clang-sys v0.19.0
   Compiling spirv_cross v0.16.0 (D:\Downloads\spirv_cross-master\spirv_cross)
   Compiling memchr v1.0.2
   Compiling which v1.0.5
   Compiling log v0.3.9
   Compiling aho-corasick v0.6.10
   Compiling nom v3.2.1
error: failed to run custom build command for `spirv_cross v0.16.0 (D:\Downloads\spirv_cross-master\spirv_cross)`

Caused by:
  process didn't exit successfully: `D:\Downloads\spirv_cross-master\target\debug\build\spirv_cross-84475846d9d34f65\build-script-build` (exit code: 1)
--- stdout
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-pc-windows-msvc")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
DEBUG = Some("true")
CXX_x86_64-pc-windows-msvc = None
CXX_x86_64_pc_windows_msvc = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-pc-windows-msvc = None
CXXFLAGS_x86_64_pc_windows_msvc = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,mmx,sse,sse2")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-W4" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-FoD:\\Downloads\\spirv_cross-master\\target\\debug\\build\\spirv_cross-8465f283b23fff02\\out\\src/wrapper.o" "-c" "src/wrapper.cpp"
wrapper.cpp
src/wrapper.cpp(1): warning C4068: unknown pragma
src/wrapper.cpp(4): fatal error C1083: Cannot open include file: 'vendor/SPIRV-Cross/spirv_cross_util.hpp': No such file or directory
exit code: 2

--- stderr


error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-W4" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-FoD:\\Downloads\\spirv_cross-master\\target\\debug\\build\\spirv_cross-8465f283b23fff02\\out\\src/wrapper.o" "-c" "src/wrapper.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).



warning: build failed, waiting for other jobs to finish...
error: build failed

@grovesNL
Copy link
Collaborator

Thank you! It seems like there might be a couple separate issues here, but for the spirv_cross examples issue I created grovesNL/spirv_cross#126 (which I'm able to reproduce now)

@0rphon
Copy link
Author

0rphon commented Jan 21, 2020

thanks! is there anything i can do to get it working on my end until its fixed?

@grovesNL
Copy link
Collaborator

I'm not sure yet, but normally when people have hit the original issue it's because it's related to either attempting to statically link (grovesNL/spirv_cross#109 and gfx-rs/wgpu-rs#135) or using gcc on Windows (grovesNL/spirv_cross#112). It would be useful to try to check if any of these cases apply to your environment somehow.

Could you try to run the wgpu-rs examples directly (i.e. cloning the wgpu-rs repository and running cargo run --example cube)?

@frankieD3
Copy link

I am getting a very similar failure with Rust 1.43 running on Windows 10 in Git bash. I tried the wgpbu-rs repository check that you mention above. I also had worked through a tutorial https://www.falseidolfactory.com/2020/04/01/intro-to-gfx-hal-part-1-drawing-a-triangle.html in which the build showed me this problem the first time. The error I see is referencing a lone CXX symbol __CxxFrameHandler4

= note: libspirv_cross-540902a585abd075.rlib(wrapper.o) : error LNK2001: unresolved external symbol __CxxFrameHandler4
libspirv_cross-540902a585abd075.rlib(spirv_msl.o) : error LNK2001: unresolved external symbol __CxxFrameHandler4
F:\users\fdemi\rust\Graphics\wgpu-rs\target\debug\examples\cube.exe : fatal error LNK1120: 1 unresolved externals

Thanks,

Frank

@grovesNL
Copy link
Collaborator

grovesNL commented May 5, 2020

@frankieD3 this is caused by an update to cc-rs using a different version of VS between the Rust build and the C++ build in the spirv-cross crate (a dependency of wgpu). See rust-lang/cc-rs#493 and the PR to Rust that should fix this rust-lang/rust#71882

You can downgrade cc-rs to an earlier version (e.g. cargo update -p cc --precise 1.0.50) and everything should work for now.

@frankieD3
Copy link

frankieD3 commented May 5, 2020 via email

@grovesNL
Copy link
Collaborator

grovesNL commented May 5, 2020

@frankieD3 No problem! This is a new issue and unfortunately it looks like you were one of the first users to hit it -- hopefully the issue will be fixed upstream soon :)

Please let us know if you hit any other issues, we're happy to help. We also have a Matrix chat if you'd like to ask questions there.

@cwfitzgerald
Copy link
Member

We no longer depend on spirv-cross, so closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants