runtime/cgo: relocation target _InterlockedExchangeAdd not defined in Windows build. #45180
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes 1.16.2
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to build a project.
This project was previously succesfully built in go 1.14.6 on the same machine.
The interesting thing is I then uninstalled 1.16.2 and reinstalled 1.14.6 and it compiled fine again.
I then kept 1.14.6 and installed 1.16.2 as a second version on my system following these instructions. I was then able to build it with
go1.16.2
.So to me it seems like the problem is not in the go compiler itself but in something that go uses.
I found a microsoft article which states that
Does Go implement this Function itself or does go rely on gcc?
My gcc Version is 8.3.0
I don't really know which part of the project is relying on this function and I cannot share the project source code.
If someone knows how to trigger an include of that function just tell me I'll try to build it then.
What did you expect to see?
succesful build like it was on 1.14.6
What did you see instead?
runtime/cgo(.text): relocation target _InterlockedExchangeAdd not defined
The text was updated successfully, but these errors were encountered: