-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.help wanted
Milestone
Description
Go version
go version go1.24.4 darwin/arm64
Output of go env
in your module/workspace:
AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/ayman/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/ayman/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/kl/jr58_v3n31g19ls79g3x4ch40000gn/T/go-build1222044133=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/tmp/setwinsz/go.mod'
GOMODCACHE='/Users/ayman/.go/pkg/mod'
GONOPROXY='github.com/charmbracelet/ultraviolet,github.com/charmbracelet/bubbletea-internal,github.com/charmbracelet/lipgloss-internal'
GONOSUMDB='github.com/charmbracelet/ultraviolet,github.com/charmbracelet/bubbletea-internal,github.com/charmbracelet/lipgloss-internal'
GOOS='darwin'
GOPATH='/Users/ayman/.go'
GOPRIVATE='github.com/charmbracelet/ultraviolet,github.com/charmbracelet/bubbletea-internal,github.com/charmbracelet/lipgloss-internal'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/nix/store/rq7irijkj3nhapmjcv9d96xgkisj55x2-go-1.24.4/share/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/ayman/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/nix/store/rq7irijkj3nhapmjcv9d96xgkisj55x2-go-1.24.4/share/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.24.4'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
Run the following program for GOOS=aix GOARCH=ppc64
package main
import "golang.org/x/sys/unix"
func main() {
_ = unix.IoctlSetWinsize(0, unix.TIOCSWINSZ, nil)
}
What did you see happen?
./main.go:6:30: cannot use unix.TIOCSWINSZ (untyped int constant 18446744071562622055) as int value in argument to unix.IoctlSetWinsize (overflows)
What did you expect to see?
The program to compile correctly.
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.help wanted
Type
Projects
Status
Todo