runtime: TestCgoDLLImports fails with "fatal error: pthread.h: No such file or directory" #20666
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
What version of Go are you using (
go version
)?go version devel +2f7fbf8851e Wed Jun 14 02:54:44 2017 +0000 windows/amd64
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=d:\a
set GORACE=
set GOROOT=d:\a\go
set GOTOOLDIR=d:\a\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\brainman\AppData\Local\Temp\1\go-build204410399=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
What did you do?
I run
go test -run=TestCgoDLLImports runtime
command.What did you expect to see?
PASS
What did you see instead?
I, obviously, do not have pthread.h file. But others might be in the same situation.
We could replace pthread_create with _beginthreadex, but I do not know what replace pthread_join with. We could disable the test, but it is, obviously, working on some systems (our builders). Not sure what to do.
Alex
The text was updated successfully, but these errors were encountered: