See https://github.com/golang/go/issues/54422 diff -upr go.orig/misc/cgo/testsigfwd/main.go go/misc/cgo/testsigfwd/main.go --- go.orig/misc/cgo/testsigfwd/main.go 2022-08-12 20:28:17.222319036 +0200 +++ go/misc/cgo/testsigfwd/main.go 2022-08-12 20:28:45.752384953 +0200 @@ -7,7 +7,7 @@ package main import "fmt" /* -#cgo CFLAGS: -pthread +#cgo CFLAGS: -pthread -fno-stack-protector #cgo LDFLAGS: -pthread #include