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

runtime/race: reference to WakeByAddressSingle'` when compiling with race on windows/amd64 1.21.11 #68176

Open
JAicewizard opened this issue Jun 25, 2024 · 5 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. gabywins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@JAicewizard
Copy link

JAicewizard commented Jun 25, 2024

Go version

go 1.21.11 windows/amd64

Output of go env in your module/workspace:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\runneradmin\AppData\Local\go-build
set GOENV=C:\Users\runneradmin\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\runneradmin\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\runneradmin\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\hostedtoolcache\windows\go\1.21.11\x64
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\hostedtoolcache\windows\go\1.21.11\x64\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.11
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\a\go-duckdb\go-duckdb\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\RUNNER~1\AppData\Local\Temp\go-build3538349329=/tmp/go-build -gno-record-gcc-switches

What did you do?

go test -v -x -race -count=1 .

What did you see happen?

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x1e3b): undefined reference to `WaitOnAddress'
2024-06-25T16:01:56.9717778Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x2165): undefined reference to `WakeByAddressSingle'
2024-06-25T16:01:56.9855080Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x2199): undefined reference to `WakeByAddressSingle'
2024-06-25T16:01:56.9860172Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x21c0): undefined reference to `WakeByAddressAll'
2024-06-25T16:01:56.9864578Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x4580): undefined reference to `WakeByAddressSingle'
2024-06-25T16:01:56.9868896Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x45fd): undefined reference to `WakeByAddressAll'
2024-06-25T16:01:56.9873250Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x4b9f): undefined reference to `WakeByAddressSingle'
2024-06-25T16:01:56.9877565Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x4c04): undefined reference to `WakeByAddressSingle'
2024-06-25T16:01:56.9881848Z C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\hostedtoolcache\windows\go\1.21.11\x64\src\runtime\race\internal\amd64v1\race_windows.syso:gotsan.cpp:(.text+0x4c0b): undefined reference to `WakeByAddressAll'

What did you expect to see?

The code should compile, or at least not have these errors

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 25, 2024
@JAicewizard
Copy link
Author

This looks a lot like a dup of #53539, but this should have been fixed in go 1.21 according to the issue

@joedian joedian added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 26, 2024
@griesemer griesemer added this to the Backlog milestone Jun 26, 2024
@griesemer
Copy link
Contributor

@golang/windows

@alexbrainman
Copy link
Member

@JAicewizard

I see that you found this issue #61058 (comment) . Hopefully @qmuntal will reply to you.

I do not use Windows anymore myself. So I cannot help you.

Alex

@qmuntal
Copy link
Contributor

qmuntal commented Jun 27, 2024

Thanks for reporting. From where did you download the GCC binaries and which Windows version are yoiu using?

@rsc rsc added the gabywins label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. gabywins NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Development

No branches or pull requests

8 participants