这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot find dirname in latest 1.21.0 release #399

@zllak

Description

@zllak

Hello,

On the latest 1.21.0 release, a call to dirname was added in the cc_wrapper.sh, unfortunately, this fails:

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
error: linking with `bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/apple_support~/crosstool/cc_wrapper.sh` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u TVOS_DEPLOYMENT_TARGET -u XROS_DEPLOYMENT_TARGET LC_ALL="C" PATH="bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/rust_toolchain/lib/rustlib/aarch64-apple-darwin/bin:/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/bin:/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/bin" VSLANG="1033" ZERO_AR_DATE="1" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/apple_support~/crosstool/cc_wrapper.sh" "/var/folders/w_/kzqq0tyj75x3ppgzpp9s6vn80000gn/T/rustcnHktAv/symbols.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.00.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.01.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.02.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.03.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.04.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.05.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.06.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.07.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.08.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.09.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.10.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.11.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.12.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.13.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.14.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.process_wrapper.71ffe47d54c7a66c-cgu.15.rcgu.o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper.dnkk8vsj9hrnpryd1u280zjeg.rcgu.o" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/execroot/_main/bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~~i~rules_rust_tinyjson/libtinyjson-1980135637.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libstd-83616591c03b4bdb.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-ebf901b6d23bf634.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libobject-7710b4452bd82af9.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-f98cf7c088667f19.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-6392ea87905caffc.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libgimli-25a08af37ed77b0e.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-284c364e42397f3c.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-0ca552d44faec676.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-3d585033511079b9.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-6619a2e13d28fdc8.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-6ed5108eff20a13b.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libadler-4dc30e5b1322c3d7.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libunwind-1abf6f4ec08a1e84.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-189cd29769b1eb60.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/liblibc-b73012c1f7d960db.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/liballoc-60825299673ba243.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-0ffffa7eb0407c16.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libcore-ec2fdc463bb543f6.rlib" "/private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-d6d5c321a716d6df.rlib" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-L" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~~rust~rust_darwin_aarch64__aarch64-apple-darwin__stable_tools/rust_toolchain/lib/rustlib/aarch64-apple-darwin/lib" "-o" "bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/rules_rust~/util/process_wrapper/process_wrapper" "-Wl,-dead_strip" "-nodefaultlibs" "-lc++" "-Wl,-oso_prefix,__BAZEL_EXECUTION_ROOT_NO_SANDBOX__/" "-headerpad_max_install_names" "-no-canonical-prefixes" "-target" "arm64-apple-macosx15.2" "-fobjc-link-runtime" "-dead_strip" "-framework" "Foundation" "-Wl,-no_warn_duplicate_libraries"
  = note: bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/apple_support~/crosstool/cc_wrapper.sh: line 70: dirname: command not found
          bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/apple_support~/crosstool/cc_wrapper.sh: line 72: /private/var/tmp/_bazel_zllak/c59c6aad081a23fc5ce8e38c4090c891/sandbox/darwin-sandbox/5760/execroot/_main/wrapped_clang: No such file or directory

The PATH givens does not include a directory that contains dirname.
Not sure if this is a problem here, or a problem later, like in rules_rust.

Let me know if you need more informations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions