Skip to content

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

@JAicewizard

Description

@JAicewizard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.gabywins

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions