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
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin release-blocker
Milestone

Comments

@cagedmantis
Copy link
Contributor

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.

@cagedmantis cagedmantis added this to the Go1.14 milestone Jan 30, 2020
@cagedmantis cagedmantis self-assigned this Jan 30, 2020
@gopherbot gopherbot added the Builders x/build issues (builders, bots, dashboards) label Jan 30, 2020
@dmitshur dmitshur added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin labels Jan 30, 2020
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin release-blocker
Projects
None yet
Development

No branches or pull requests

3 participants