It seems rules_go's latest master (3c293b0) of //tests/core isn't running on my macOS 26.0.1 machine using bazel 8.4.2 the repo-configured bazel 7.7.0. It returns an error from dyld about a missing LC_UUID command. An example error from //tests/core/go_bazel_test:dataargtest_test is at the end of this ticket. All the other tests in //tests/core error in the same way.
(I've checked that there's nothing hinky with my xcode tools install and it all seems on the up and up. My OS and xcode tools are all up to date.)
There's a mention about a fix for this kind of problem in Go 1.24's notes but I'm not sure how it applies here. (Perhaps we've done more cgo surgery than I'm aware of that also needs to be updated? Or perhaps we do some bootstrapping in an interesting way?)
There error is this:
$ bazel clean
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
jmhodges @ Mac.localdomain: ~/src/github.com/bazel-contrib/rules_go (master)
$ bazel test --sandbox_debug tests/core/go_bazel_test/...
INFO: Analyzed target //tests/core/go_bazel_test:dataargtest_test (154 packages loaded, 13397 targets configured).
ERROR: /Users/jmhodges/src/github.com/bazel-contrib/rules_go/BUILD.bazel:42:7: GoStdlib stdlib_/pkg failed: (Exit 1): sandbox-exec failed: error executing GoStdlib command
(cd /private/var/tmp/_bazel_jmhodges/3b5eeee67f2c4757dfe50ed05fca3371/sandbox/darwin-sandbox/18/execroot/io_bazel_rules_go && \
exec env - \
APPLE_SDK_PLATFORM=MacOSX \
APPLE_SDK_VERSION_OVERRIDE=26.0 \
CC=external/local_config_apple_cc/wrapped_clang \
CGO_CFLAGS='-D_FORTIFY_SOURCE=1 -fstack-protector -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG -fdebug-prefix-map=__BAZEL_EXECUTION_ROOT__=. -fdebug-prefix-map=__BAZEL_XCODE_DEVELOPER_DIR__=/PLACEHOLDER_DEVELOPER_DIR -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/MacOSX.platform/Developer/Library/Frameworks -no-canonical-prefixes -pthread -no-canonical-prefixes -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -target arm64-apple-macosx26.0 -Dfdopen=fdopen' \
CGO_ENABLED=1 \
CGO_LDFLAGS='-Wl,-oso_prefix,__BAZEL_EXECUTION_ROOT__/ -headerpad_max_install_names -no-canonical-prefixes -target arm64-apple-macosx26.0 -fobjc-link-runtime -Xlinker -no_deduplicate -framework Foundation -Wl,-no_warn_duplicate_libraries' \
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
GOARCH=arm64 \
GODEBUG='winsymlink=0' \
GOEXPERIMENT='' \
GOOS=darwin \
GOPATH='' \
GOROOT=external/go_sdk \
GOROOT_FINAL=GOROOT \
GOTOOLCHAIN=local \
PATH=external/local_config_apple_cc:/bin:/usr/bin \
RELATIVE_AST_PATH=true \
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk \
TMPDIR=/var/folders/5n/04tgfq3d2616vmydv89kfkq00000gn/T/ \
XCODE_VERSION_OVERRIDE=26.0.1.17A400 \
ZERO_AR_DATE=1 \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_jmhodges/3b5eeee67f2c4757dfe50ed05fca3371/sandbox/darwin-sandbox/18/sandbox.sb /var/tmp/_bazel_jmhodges/install/db4e05b077c1b909fb68b9ff707e78a4/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/private/var/tmp/_bazel_jmhodges/3b5eeee67f2c4757dfe50ed05fca3371/sandbox/darwin-sandbox/18/stats.out' bazel-out/darwin_arm64-opt-exec-ST-a828a81199fe/bin/external/go_sdk/builder_reset/builder stdlib -sdk external/go_sdk -goroot external/go_sdk -installsuffix darwin_arm64 -out bazel-out/darwin_arm64-fastbuild/bin/stdlib_ -package std -package runtime/cgo -package cmd/internal/cov -package cmd/internal/bio -gcflags '')
# runtime/cgo
dyld[3847]: missing LC_UUID load command in ../../../../../external/local_config_apple_cc/wrapped_clang
dyld[3847]: missing LC_UUID load command
stdlib: error running subcommand external/go_sdk/bin/go: exit status 1
Target //tests/core/go_bazel_test:dataargtest_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 23.155s, Critical Path: 21.60s
INFO: 18 processes: 15 internal, 2 darwin-sandbox, 1 local.
ERROR: Build did NOT complete successfully
//tests/core/go_bazel_test:dataargtest_test FAILED TO BUILD
Executed 0 out of 1 test: 1 fails to build.
It seems rules_go's latest master (3c293b0) of //tests/core isn't running on my macOS 26.0.1 machine
using bazel 8.4.2the repo-configured bazel 7.7.0. It returns an error from dyld about a missing LC_UUID command. An example error from//tests/core/go_bazel_test:dataargtest_testis at the end of this ticket. All the other tests in //tests/core error in the same way.(I've checked that there's nothing hinky with my xcode tools install and it all seems on the up and up. My OS and xcode tools are all up to date.)
There's a mention about a fix for this kind of problem in Go 1.24's notes but I'm not sure how it applies here. (Perhaps we've done more cgo surgery than I'm aware of that also needs to be updated? Or perhaps we do some bootstrapping in an interesting way?)
There error is this: