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

link problem on windows #110

Closed
coolit opened this issue Aug 11, 2020 · 8 comments
Closed

link problem on windows #110

coolit opened this issue Aug 11, 2020 · 8 comments
Labels
A-Build-System Related to build systems or continuous integration O-Windows Specific to the Windows desktop operating system

Comments

@coolit
Copy link

coolit commented Aug 11, 2020

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
Copy link
Author

coolit commented Aug 11, 2020

After reinstalling windows SDK following this instructions:
rust-lang/book#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 coolit closed this as completed Aug 11, 2020
@coolit coolit mentioned this issue Aug 11, 2020
@coolit coolit changed the title if link failed during the build process, its following build will fail too link problem on windows Aug 11, 2020
@coolit coolit reopened this Aug 11, 2020
@cart
Copy link
Member

cart commented Aug 12, 2020

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

@karroffel karroffel added A-Build-System Related to build systems or continuous integration help wanted O-Windows Specific to the Windows desktop operating system labels Aug 12, 2020
@cart
Copy link
Member

cart commented Aug 14, 2020

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.

#150

@cart
Copy link
Member

cart commented Aug 14, 2020

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

@coltontcrowe
Copy link

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

@cart
Copy link
Member

cart commented Aug 14, 2020

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.

@coolit
Copy link
Author

coolit commented Aug 15, 2020

After revisiting this post rust-lang/book#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: #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 coolit closed this as completed Aug 15, 2020
@coolit
Copy link
Author

coolit commented Aug 15, 2020

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

hymm referenced this issue in hymm/bevy Jan 29, 2023
add a method on add to create a simple outer schedule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration O-Windows Specific to the Windows desktop operating system
Projects
None yet
Development

No branches or pull requests

4 participants