-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: with -compiler=gccgo, only call runtime.setmodinfo if using a version of gccgo that supports it #42916
Comments
@dotaheor I wasn't able to reproduce this at the commit you listed. Could you edit the issue to include the full |
OK, it is included now. But I looks there is not much useful info in the output. Other info
|
Thanks, I was able to reproduce the issue using a toolchain built with this Dockerfile:
This is with: It looks like this issue was exposed when we enabled In module mode, we embed version information in linked binaries. The symbol @ianlancetaylor Any idea what might cause this? |
The version of gccgo being used is too old. The This is the kind of problem that is inevitable when using the "go" tool from the gc toolchain with gccgo. We try to make them work together, but it's hard to avoid all version mismatch problems. If you want to use gccgo, the best approach is to use the "go" tool that comes with the version of gccgo that you are using. That said, this is a bug, although not a very important one, so leaving this issue open. |
Is there a work around to link |
@apm-opentt I can't think of one. Sorry. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No. It is on tip only.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Normal run.
What did you see instead?
It is on Debian 10 stable.
The text was updated successfully, but these errors were encountered: