-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go install with -trimpath and muslc (alpine linux) gcc is needed #50311
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
Comments
cgo needs a C compiler is needed to build C code, this is working as expected. If you prefer to disable cgo, you can configure that with the If your C compiler command is not "gcc", you can configure cgo to use a different command via the See https://pkg.go.dev/cmd/go#hdr-Environment_variables for a list of environment variables supported by the go command. For asking questions, please see https://golang.org/wiki/Questions. |
Sorry, I didn't give enough information. Futhermore, if I disable I think, this issue is related with #37158, isn't it? More info here from Ian Lance Taylor: https://groups.google.com/g/golang-nuts/c/dsqLZi2mEog/m/3mcMSda-BAAJ |
Thanks for your support and the information. |
with
-trimpath
option with go install with muslc on default alpine linux, the go install doesn't work.apk add --no-cache build-base
can be executed as workaround before (but, we have to do each time on CI).What version of Go are you using (
go version
)?go 1.17.5
What did you do?
on our CI, with alpine linux:
What did you see instead?
The text was updated successfully, but these errors were encountered: