Open tisonkun opened 8 months ago
It seems a script returns value other than 0. I tried to debug and get:
$ /private/var/tmp/_bazel_tison/c244744f015d9943cebd9b4c9b18d7b0/sandbox/darwin-sandbox/338/execroot/_main/external/bazel_tools~cc_configure_extension~local_config_cc/cc_wrapper.sh bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/llvm-project\~17.0.3/llvm/llvm-min-tblgen-2.params
ld: warning: ignoring file bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/external/llvm-project~17.0.3/llvm/llvm-min-tblgen-2.params, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x2D 0x6F 0x0A 0x62 0x61 0x7A 0x65 0x6C 0x2D 0x6F 0x75 0x74 0x2F 0x64 0x61 0x72 )
Undefined symbols for architecture arm64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reproduce
The reproduce is simple, with file structure:
where
when build with:
it fails with:
while if built with:
It succeeds with preinstalled LLVM@17.
Environment
Reference