Skip to content
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

x/build/cmd/release: go1.14 external linker warnings when macOS SDK versions diverge. #36900

Closed
cagedmantis opened this issue Jan 30, 2020 · 1 comment

Comments

@cagedmantis
Copy link
Contributor

@cagedmantis cagedmantis commented Jan 30, 2020

System linker warnings are logged when using cgo in go1.14 (as noted in #36025)

The issue occurs when:

  1. Go is compiled on macOS with an associated macOS SDK version (go1.14 beta was compiled on a Catalina macOS 10.15 builder).
  2. Go is installed on a version of macOS that has an SDK earlier than the version that Go was compiled on.
  3. Go compiles an application that uses cgo.

There fix for this particular issue: Setting the CGO_CFLAGS environmental variable to "-mmacosx-version-min=10.11" eliminates the warnings on versions of macOS where the SDK is greater than 10.10.

@gopherbot
Copy link

@gopherbot gopherbot commented Jan 30, 2020

Change https://golang.org/cl/216304 mentions this issue: cmd/release: set the minimum macOS version supported by releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.