Skip to content

gcc_linux_amd64 compiler error #73441

Closed as not planned
Closed as not planned
@MasterDimmy

Description

@MasterDimmy

Go version

go version go1.24.2 windows/amd64

Output of go env in your module/workspace:

set AR=ar
set CC=gcc
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_ENABLED=1
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set CXX=g++
set GCCGO=gccgo
set GO111MODULE=
set GOAMD64=v1
set GOARCH=amd64
set GOAUTH=netrc
set GOBIN=
set GOCACHE=C:\Users\1\AppData\Local\go-build
set GOCACHEPROG=
set GODEBUG=
set GOENV=C:\Users\1\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFIPS140=off
set GOFLAGS=
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=E:\TEMP\go-build333069533=/tmp/go-build -gno-record-gcc-switches
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMOD=M:\Projects\AY\reverse_browser\go.mod
set GOMODCACHE=D:\gopath\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\gopath
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\go
set GOSUMDB=sum.golang.org
set GOTELEMETRY=off
set GOTELEMETRYDIR=C:\Users\1\AppData\Roaming\go\telemetry
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=D:\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.24.2
set GOWORK=
set PKG_CONFIG=pkg-config

What did you do?

set GOOS=linux
set GOARCH=amd64
go build -race -o test     
                                                                                                                                                                                                                                                                                                                                     server>go build -race -o test                                                                                                                                                   # 
runtime/cgo                                                                                                                                                                                                      
gcc_linux_amd64.c: In function '_cgo_sys_thread_start':                                                                                                                                                            
gcc_linux_amd64.c:57:9: error: unknown type name 'sigset_t'; did you mean '_sigset_t'?                                                                                                                                
57 |         sigset_t ign, oset;                                                                                                                                                                                      
|         ^~~~~~~~                                                                                                                                                                                                 
|         _sigset_t                                                                                                                                                                                          
gcc_linux_amd64.c:62:9: error: implicit declaration of function 'sigfillset' [-Werror=implicit-function-declaration]                                                                                                  
62 |         sigfillset(&ign);                                                                                                                                                                                        
|         ^~~~~~~~~~                                                                                                                                                                                         
gcc_linux_amd64.c:57:23: error: unused variable 'oset' [-Werror=unused-variable]                                                                                                                                      
57 |         sigset_t ign, oset;                                                                                                                                                                                      
|                       ^~~~                                                                                                                                                                                 
cc1.exe: all warnings being treated as errors                                                                         

What did you see happen?

errors

What did you expect to see?

ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions