-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/link: object file was built for newer macOS version (11.0) than being linked (10.16) #43856
Comments
Thanks for the report. This is interesting in part because 10.16 is an alternative name for 11.0, they represent the same macOS version. You said From To make progress, we need to be able to reproduce it, or at least determine what are the relevant factors that determine whether these warnings get printed. CC @golang/release, @ianlancetaylor. |
I reproduced the issue with a really simple program:
package foo
import (
"github.com/spacemonkeygo/openssl"
)
func bar() {
_ = openssl.FIPSModeSet(true)
}
package foo
import "testing"
func TestBar(_ *testing.T) {
bar()
} Just running |
Thanks. Can you also try:
And see if that makes a difference? Can you confirm this if this still happens if you go back to Go 1.15.6 (given you said in #36025 (comment) that it started to happen with Go 1.15.7)? |
Can you also please include the complete |
Go version output:
Installed Go 1.15.6 from golang.org and don't see the warnings in any case. |
Thanks, that's helpful information. What happens if you install Go 1.15.7 from golang.org/dl? If the error doesn't happen, then this may mean there's a problem with how Homebrew installs Go. |
I had recently (last night) upgraded a mac to 11.0 Thinking it was related to how Homebrew built/installed Go, I tried using it to install from HEAD and was greeted by:
Following the instructions to force a removal & reinstall of CLT, I was unable to reproduce the issue any longer with the existing Homebrew installed go1.15.7 |
Tried a few options, installed from golang.org using the So it does seem like brew installation causes the issue. Reinstalled the |
I'll close this since this appears to have been a problem specific to Homebrew and/or version of Xcode CLI tools installed, and there's nothing to change on the Go side at this time. If there are new reproducible problems with the Go installer or tarball from golang.org/dl, or building Go from source, please file a new issue. |
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install |
happend to me on macOS 13.0
so downloading and manually installing the release candidate of CLT for 14.1 at |
the command |
What version of Go are you using (
go version
)?1.15.7
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go test -v -count=1 -coverprofile=cov.out
What did you expect to see?
Output of the
go test
without any unexpected warnings.What did you see instead?
Following warnings in addition to the expected output. Go test does work fine.
The text was updated successfully, but these errors were encountered: