-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: minimum macOS version changed going from 1.12.5 to 1.12.9 #33968
Comments
In the discussion on #30448 people requested the the minimum version be increased on the 1.12 branch. Here you are suggesting that that should not have happened. I don't know what is best. CC @eliasnaur @pieterclaerhout @networkimprov @macetw : discuss. |
To be accurate, I suggest two things:
|
I'm not sure CL https://go-review.googlesource.com/c/go/+/175918 (commit 4cd6c3b) is related. It seems that CL only affects internal linking mode, i.e. using the Go linker, instead of the system linker. But the warning in this issue is from ld, the system linker, which suggests it is using external linking mode. |
Isn't this actually an issue on the CGO side? My wild guess is that CGO is linking against 10.10 while the normal Go builds are linking against 10.9 hence the error message… |
The system linker on macOS has the following option to define this from whjat I can find:
|
I don't understand this issue. When linking a Go program that uses cgo, the Go linker will generate a Macho-O object file that is marked as requiring macOS release version 10.9. The error that you are reporting says that the C linker wants to generate code for macOS 10.9, but is seeing C code that was marked as requiring macOS 10.10. But this seems to be entirely a problem with the C toolchain: the compiler says it needs 10.10, the linker says that it expects 10.9. I don't understand what Go has to do with it. I particularly don't understand what https://golang.org/cl/175918 has to do with it; that CL changes the minimum requirement from 10.7 to 10.9. The problem you are seeing is that the C toolchain is requiring 10.10, so both 10.7 and 10.9 should be fine. How sure are you that https://golang.org/cl/175918 is the problem? Is there a way that we can reproduce the problem ourselves? Thanks. |
I'll move this issue to WaitingForInfo state, because we can't proceed with investigating it without more information. I'll also remove release-blocker, as it doesn't need to block the release of Go 1.12.11 in the current state. |
This is not an issue for cgo. In my experience, using cgo compiling uses
the clang linker, which is beyond the scope of go. Our team had a cgo
binary (at the same time we had a pure go binary). The issue was only
experienced on the pure go binary.
…On Tue, Oct 8, 2019, 4:09 PM Dmitri Shuralyov ***@***.***> wrote:
I'll move this issue to WaitingForInfo state, because we can't proceed
with investigating it without more information. I'll also remove
release-blocker, as it doesn't need to block the release of Go 1.12.11 in
the current state.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33968?email_source=notifications&email_token=AA2S2BIHDC5BVAX72U3EMNLQNTSH5A5CNFSM4ISK23Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAVN6IY#issuecomment-539680547>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2S2BMW67G4I7OVCIFHJK3QNTSH5ANCNFSM4ISK23YQ>
.
|
@macetw Thanks. The error reported in the original bug report here was pretty clearly from a cgo build. Are you sure you are seeing the same problem? Do you have instructions for how to recreate it? |
@networkimprov I have nothing to add here. I fixed on my end by updating from Mac OS SDK 10.11 to 10.12. This works fine, but it's unfortunate that this happens in a patch release. |
This is a duplicate issue. We will track further progress for this issue in #22281. |
Most activity on this issue is now on #36025 |
I guess this relates to 4cd6c3b
was built for newer OSX version (10.10) than being linked (10.9)
) vs 4cd6c3b#diff-f44dab9aab3c3c3aaff916e6bb1fb763R418 does not line up.10.10
removes the warning (but the build still fails, I need to investigate more on that).Note that I did not open up this issue to fix my particular problem (I will eventually figure that out), but more of a "heads up" issue. Reading the issues surrounding 4cd6c3b I see a lot of the same guesswork that I'm doing in this area and my own guessing tells me that this change was unintentionally a little too big for a patch release.
The text was updated successfully, but these errors were encountered: