Wgpu: Compute example doesn't link on Windows Nightly

Created on 30 Dec 2019  Â·  6Comments  Â·  Source: gfx-rs/wgpu

Annoying error on CI:

(Link target) ->
wgpu_native.lib(wrapper.o) : fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0xA [C:\Users\travis\build\gfx-rs\wgpu\examples\compute\build\compute.vcxproj]

Currently blocking bors to merge anything :( We should find out what happens there and/or disable the build of this particular example on Windows Nightly.

help wanted bug

All 6 comments

Compared to the last successful build on master, we can see the following difference:

$ rustc --version
rustc 1.41.0-nightly (99b89533d 2019-12-16)
$ rustup --version
rustup 1.20.2 (13979c968 2019-10-16)
$ cargo --version
cargo 1.41.0-nightly (626f0f40e 2019-12-03)

Vs

$ rustc --version
rustc 1.42.0-nightly (9ae6cedb8 2019-12-23)
$ rustup --version
rustup 1.21.1 (7832b2ebe 2019-12-20)
$ cargo --version
cargo 1.41.0-nightly (19a0de242 2019-12-12)

A quick skim of the log seems to indicate that wgpu_native.lib is being built actually using the GNU toolchain. Rust is installed with nightly-x86_64-pc-windows-gnu. This may currently on nightly be incompatible with MSVC.

That's odd, I thought MSVC is the default toolchain on Windows. Might be Travis trying to make their Windows image as Linux-y as possible? Do you happen to know the rustup command sequence to install and activate the msvc toolchain?

I tend to use:

rustup default nightly-msvc

This should also work with install.

That fixed it. See #426

Please cc me from that pr

On Dec 30, 2019, at 13:55, Korijn van Golen notifications@github.com wrote:


That fixed it. See #426

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Masterchef365 picture Masterchef365  Â·  14Comments

ZKing1000 picture ZKing1000  Â·  23Comments

z2oh picture z2oh  Â·  13Comments

lordnoriyuki picture lordnoriyuki  Â·  17Comments

porky11 picture porky11  Â·  13Comments