bevy icon indicating copy to clipboard operation
bevy copied to clipboard

link problem on windows

Open coolit opened this issue 6 years ago • 8 comments

On win10 with the "button" example, I think I have installed windows sdk.

  • But sometimes the link just failed during the build process. The error was: Non-UTF-8 output: LINK : fatal error LNK1104: \xce\xde\xb7\xa8\xb4\xf2\xbf\xaa\xce\xc4\xbc\xfe\xa1\xb0D:\rust_build\all\release\examples\button.exe\xa1\xb1\r\n

  • And if I rebuild, it will fail again, unless I rename the target exe file and rebuild again. Btw, the target exe file cannot be deleted, but can be renamed.

coolit avatar Aug 11 '20 07:08 coolit

After reinstalling windows SDK following this instructions: https://github.com/rust-lang/book/pull/2389 The unstable link problem seems to be gone in most cases, but still will occasionally occur, e.g. when I switched to another font.

coolit avatar Aug 11 '20 13:08 coolit

This is very interesting. I'm curious if anyone else can repro this. I'll respond here if I can.

cart avatar Aug 12 '20 01:08 cart

I'm curious if you still have issues if you use the pre-packaged rust version of LLD. We just switched our config to use that.

https://github.com/bevyengine/bevy/pull/150

cart avatar Aug 14 '20 19:08 cart

I booted into windows and I haven't been able to repro yet.

cart avatar Aug 14 '20 19:08 cart

I haven't been able to reproduce it. I believe I have SDK 10.0.18362.0

coltontcrowe avatar Aug 14 '20 21:08 coltontcrowe

Cool. im down to leave this open for a few days to see if anyone else hits the issue. Otherwise I'll probably close this.

cart avatar Aug 14 '20 21:08 cart

After revisiting this post https://github.com/rust-lang/book/pull/2389 and adding the English lang pack, now the err changed to: fatal error LNK1104: cannot open file 'D:\rust_build\release\examples\button.exe'

How to repro: Using the button example, switch between the two fonts until the error occur (sometimes it will appear easily, sometimes after several tries). You can find the second font here: https://github.com/bevyengine/bevy/issues/112
font: asset_server.load("assets/fonts/FiraSans-Bold.ttf").unwrap(), font: asset_server.load("assets/fonts/simhei.ttf").unwrap(),

Edit: The error seemed to only occur under Clion terminal. If I used windows terminal, no err occurred. So maybe it was because the old binary was still occupied by some Clion thread.

coolit avatar Aug 15 '20 07:08 coolit

But the interesting thing is no such error occurred to other projects when using Clion terminal.

coolit avatar Aug 15 '20 19:08 coolit