-
Notifications
You must be signed in to change notification settings - Fork 78
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
I am facing log/slog is no in std (/usr/local/go/src/log/slog) #287
Comments
Double-check your Go installation. 1.21 should have log/slog: https://pkg.go.dev/log/slog@go1.21.0 |
Hi @pohly Yes. I checked. log/slog is present. but, still report this issue. are there other impacts? I found if i used "compiler=gccgo" to build, returned this error. without it, using default gc, it has no issue. Thanks, |
Perhaps |
Hi @pohly I found the size of binary built by gc is around 15MB. So, I want to try use gccgo to build and compare the size difference.But, facing this issue. Can you give some proposals? Thanks, |
We can't attest to what gccgo does. https://go.dev/doc/install/gccgo says: """ |
Hi All,
I am using the following command to build shared library:
go build -buildvcs=false -buildmode=c-shared -gccgoflags="-s -w" -compiler=gccgo -o xxxx.so
but, finally, returns the final error message:
/home/sqc/go/pkg/mod/github.com/go-logr/logr@v1.4.1/context_slog.go:25:2: package log/slog is not in std (/usr/local/go/src/log/slog)
go version: go1.21.9 linux/amd64.
Please help to check if it is bug or not
Thanks,
Marinero
The text was updated successfully, but these errors were encountered: