-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Build Issue on Windows #44782
Comments
I would suggest chcking your antivirus first. |
I tried to shut down Micorsoft defender, but it still failed to compile. Previously, version 1.15. X was compiled normally. |
I am unable to reproduce this on windows and the error message ("The process cannot access the file because it is being used by another process.") is consistant with a antivirus interfering. Not much can be done unless someone can reproduce this. |
Often antivirus vendors incorrectly flag Go versions that were just released, while older versions work fine because their binaries were whitelisted after some week. |
host system info
|
I would try - if you haven't already -, in order 1) to reboot the machine 2) to nuke the Go folder and clone the repo again. If the issue persists then it's very likely the antivirus, and the only things you can do are 1) disable it 2) wait for them to whitelist Go1.16 and update their signature database. We've seen this issue in the past, it was never a bug in Go. |
@gopherbot add OS-Windows |
@ALTree Thank you very much for your help. According to your suggestion, I tried the same question again |
I tried turning on windows defender and it still compiled fine for me. If you are using onedrive or other backup software on your user folder, it could cause this if it tries to sync at the same time you're compileing. |
@AlexRouSg Thank you very much. I retested as you suggested, but I still couldn't compile. This should be a special case. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Try to compile f21be2f
What did you expect to see?
Compiled successfully
What did you see instead?
C:\Users\ts\develop\go\src>all.bat
Building Go cmd/dist using C:\Users\ts\develop\go.old
Building Go toolchain1 using C:\Users\ts\develop\go.old
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
go install cmd/compile: copying C:\Users\ts\AppData\Local\Temp\go-build888002794\b092\exe\a.out.exe: open C:\Users\ts\develop\go\pkg\tool\windows_amd64\compile.exe: The process cannot access the file because it is being used by another process.
go tool dist: FAILED: C:\Users\ts\develop\go\pkg\tool\windows_amd64\go_bootstrap install -gcflags=all= -ldflags=all= -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
The text was updated successfully, but these errors were encountered: