Open
Description
Expected Behavior
Fail to compile in MacOS
Actual Behavior
% bazel build --sandbox_debug //...
WARNING: For repository 'rules_java', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph.
INFO: Analyzed 81 targets (127 packages loaded, 5768 targets configured).
ERROR: /private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/external/_main~non_module_dependencies~honggfuzz/BUILD.bazel:131:11: Compiling libhfuzz/performance.c failed: (Exit 1): sandbox-exec failed: error executing CppCompile command
(cd /private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/sandbox/darwin-sandbox/142/execroot/_main && \
exec env - \
PATH=/Users/lmirelmann/Library/Caches/bazelisk/downloads/sha256/0a9bfb9581a37049b7dcf204cc569b0458bedba20e84c55c0952161e036525ba/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin \
PWD=/proc/self/cwd \
TMPDIR=/var/folders/yy/tq88v3x96m7_03ct6y81plqh0000gn/T/ \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/sandbox/darwin-sandbox/142/sandbox.sb /var/tmp/_bazel_lmirelmann/install/92a4dbac19ba995301329efc59d9b07c/process-wrapper '--timeout=0' '--kill_delay=15' '--stats=/private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/sandbox/darwin-sandbox/142/stats.out' external/bazel_tools~cc_configure_extension~local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -MD -MF bazel-out/darwin_x86_64-fastbuild/bin/external/_main~non_module_dependencies~honggfuzz/_objs/honggfuzz_engine/performance.d '-frandom-seed=bazel-out/darwin_x86_64-fastbuild/bin/external/_main~non_module_dependencies~honggfuzz/_objs/honggfuzz_engine/performance.o' -iquote external/_main~non_module_dependencies~honggfuzz -iquote bazel-out/darwin_x86_64-fastbuild/bin/external/_main~non_module_dependencies~honggfuzz '-mmacos-version-min=15.0' -D_GNU_SOURCE -D_HF_ARCH_LINUX -fPIC -Wall -Wextra -Werror -Wno-override-init -Wno-initializer-overrides -Wno-gnu-empty-initializer -Wno-format-pedantic -Wno-gnu-statement-expression -mllvm '-inline-threshold=2000' -fblocks '-fsanitize-coverage=0' '-fno-sanitize=all' -fno-stack-protector -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=0' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/_main~non_module_dependencies~honggfuzz/libhfuzz/performance.c -o bazel-out/darwin_x86_64-fastbuild/bin/external/_main~non_module_dependencies~honggfuzz/_objs/honggfuzz_engine/performance.o)
In file included from external/_main~non_module_dependencies~honggfuzz/libhfuzz/performance.c:10:
external/_main~non_module_dependencies~honggfuzz/honggfuzz.h:374:5: error: unknown type name 'timer_t'; did you mean 'time_t'?
374 | timer_t timerId;
| ^~~~~~~
| time_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_time_t.h:31:33: note: 'time_t' declared here
31 | typedef __darwin_time_t time_t;
| ^
1 error generated.
INFO: Elapsed time: 5.920s, Critical Path: 0.15s
INFO: 39 processes: 38 internal, 1 darwin-sandbox.
ERROR: Build did NOT complete successfully
% bazel query --output=build @local_config_platform//:host
# /private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/external/local_config_platform/BUILD.bazel:4:9
platform(
name = "host",
constraint_values = ["@platforms//cpu:x86_64", "@platforms//os:osx"],
)
# Rule host instantiated at (most recent call last):
# /private/var/tmp/_bazel_lmirelmann/cb69affe826809a241c0977900dc1520/external/local_config_platform/BUILD.bazel:4:9 in <toplevel>
For reasons that are not clear to me, the compilation of honggfuzz has the flag -D_HF_ARCH_LINUX
that should not be there (as there is a select
in honggfuzz.BUILD
). Not sure why this is happening.
Steps to Reproduce the Problem
- From a Mac, run
bazel build //...
Specifications
- Version: Git at commit
1b9ddac66217c77f4eea0d3a8b765953ab5080b5
- Platform: MacOS 15.0.1, x86
Metadata
Metadata
Assignees
Labels
No labels