-
Notifications
You must be signed in to change notification settings - Fork 934
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
Comments
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. |
i was just testing to see if importing pixels would work. i used
|
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) |
thanks! is there anything i can do to get it working on my end until its fixed? |
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 |
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 Thanks, Frank |
@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. |
Thanks Josh. As I am learning rust I am also trying to understand the overall infrastructure. Interesting and challenging.
Frank
From: Josh Groves <notifications@github.com>
Sent: Monday, May 4, 2020 8:18 PM
To: gfx-rs/wgpu <wgpu@noreply.github.com>
Cc: frankieD3 <frank.deming@icloud.com>; Mention <mention@noreply.github.com>
Subject: Re: [gfx-rs/wgpu] error: linking with `link.exe` failed: exit code: 1120 (#464)
@frankieD3 <https://github.com/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 <rust-lang/cc-rs#493> and the PR to Rust that should fix this rust-lang/rust#71882 <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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#464 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE3SB4S42OKQ2MRYYYX4ZYTRP5ZMXANCNFSM4KIWXXLA> . <https://github.com/notifications/beacon/AE3SB4UZDA55OGIVDHJN64TRP5ZMXA5CNFSM4KIWXXLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUXHA5Q.gif>
|
@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. |
We no longer depend on spirv-cross, so closing |
im attempting to use pixels which uses wgpu as a dependency. When i try to compile i get the following wgpu error:
The text was updated successfully, but these errors were encountered: