Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime/cgo: Compilation Error #58320

Closed
peterramaldes opened this issue Feb 4, 2023 · 2 comments
Closed

runtime/cgo: Compilation Error #58320

peterramaldes opened this issue Feb 4, 2023 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@peterramaldes
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.20 linux/amd64

Does this issue reproduce with the latest release?

Yes (latest release = 1.20)

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/home/peterramaldes/.local/go/bin"
GOCACHE="/home/peterramaldes/.cache/go-build"
GOENV="/home/peterramaldes/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/peterramaldes/.local/go/pkg/mod"
GONOPROXY="github.com/peterramaldes/*,gitlab.com/peterramaldes/*"
GONOSUMDB="github.com/peterramaldes/*,gitlab.com/peterramaldes/*"
GOOS="linux"
GOPATH="/home/peterramaldes/.local/go"
GOPRIVATE="github.com/peterramaldes/*,gitlab.com/peterramaldes/*"
GOPROXY="direct"
GOROOT="/home/peterramaldes/.asdf/installs/golang/1.20/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/peterramaldes/.asdf/installs/golang/1.20/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1632069434=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Try to build (go build fetch.go) this program on Go 1.20 linux/amd64

What did you expect to see?

The compilation did not failed on 1.20 (on 1.19.5 linux/amd64 did not failed)

What did you see instead?

image

@peterramaldes peterramaldes changed the title Compilation Error affected/package: runtime/cgo runtime/cgo: Compilation Error Feb 4, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Feb 4, 2023
@seankhliao
Copy link
Member

working as intended, with CGO_ENABLED=1, you need an appropriate C toolchain setup now that we no longer ship precompiled artifacts.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2023
@peterramaldes
Copy link
Author

I get it. Thank you @seankhliao .

@golang golang locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants