Open rimadeodhar opened 3 years ago
I'm not sure what the exact shape of the overall problem here is, but you can fix this by adding the following to your .bazelrc.user
:
build --macos_sdk_version=11.3
I'm hitting this too.
xcodebuild -showsdks
DriverKit SDKs:
DriverKit 21.0.1 -sdk driverkit21.0.1
iOS SDKs:
iOS 15.0 -sdk iphoneos15.0
iOS Simulator SDKs:
Simulator - iOS 15.0 -sdk iphonesimulator15.0
macOS SDKs:
macOS 12.0 -sdk macosx12.0
tvOS SDKs:
tvOS 15.0 -sdk appletvos15.0
tvOS Simulator SDKs:
Simulator - tvOS 15.0 -sdk appletvsimulator15.0
watchOS SDKs:
watchOS 8.0 -sdk watchos8.0
watchOS Simulator SDKs:
Simulator - watchOS 8.0 -sdk watchsimulator8.0
Adding build --macos_sdk_version=12.0
to my $GOPATH/go/src/github.com/cockroachdb/cockroach/.bazelrc.user
file fixed the issue.
I get the same error when running ./dev doctor
on a freshly provisioned Mac. The suggested fix helps.
FYI on the latest Monterey I need build --macos_sdk_version=12.3
.
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
Describe the problem
Attempting to run make bazel-generate on my local machine in cockroach db repo gives me the following error:
Running bazel build also gives me the same error.
xcodebuild --show-sdks gives me this list:
I can work around this issue by passing the argument -c opt --macos_sdk_version=11.3 for bazel build. For e.g., bazel build works when I run the following command and pass in the macOS SDK version explicitly:
bazel build -c opt --macos_sdk_version=11.3 pkg/cmd/cockroach-short
I don't have a workaround for make bazel-generate.
See slack thread for more context.
To Reproduce Encountered this error on GH CI for my PR: https://github.com/cockroachdb/cockroach/pull/65683. Attempting to run make bazel-generate on my local dev machine gave me the above error.
Expected behavior make bazel-generate and bazel build should work with the new SDK version.
Epic CRDB-17171 Jira issue: CRDB-7739