Skip to content

"Failed to find tool. Is cc_wrapper.sh installed?" #950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hobofan opened this issue Sep 20, 2021 · 4 comments · Fixed by #969
Closed

"Failed to find tool. Is cc_wrapper.sh installed?" #950

hobofan opened this issue Sep 20, 2021 · 4 comments · Fixed by #969

Comments

@hobofan
Copy link
Contributor

hobofan commented Sep 20, 2021

I tried updating to the latest head (5c09f01) to get access the feature from #566, but encountered the error below when trying to build. Going a few commits back to where that feature was implemented (52e3ba4) the build worked again, so somewhere in between those two commits there must have been a bug introduced. I'll see if I can narrow it down further.

EDIT: e8d61a6 is the first commit the build fails on, so it looks like PR #928 caused this

I'm building on macOS 11.3.1, with Bazel 4.0.0.

Please let me know if there is any other info I can provide to help track down the issue.

Full error:

ERROR: /private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/external/raze__spirv_cross__0_23_1/BUILD.bazel:40:19: CargoBuildScriptRun external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir failed: (Exit 1): cargo_build_script_runner failed: error executing command bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_rust/cargo/cargo_build_script_runner/cargo_build_script_runner ... (remaining 9 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox cargo_build_script_runner failed: error executing command bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_rust/cargo/cargo_build_script_runner/cargo_build_script_runner ... (remaining 9 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
Build script process failed with exit code 1
--stdout:
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-apple-darwin")
HOST = Some("x86_64-apple-darwin")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "external/local_config_cc/cc_wrapper.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/sandbox/darwin-sandbox/453/execroot/REDACTED/bazel-out/darwin-fastbuild/bin/external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir/src/wrapper.o" "-c" "src/wrapper.cpp"
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "external/local_config_cc/cc_wrapper.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/sandbox/darwin-sandbox/453/execroot/REDACTED/bazel-out/darwin-fastbuild/bin/external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir/src/vendor/SPIRV-Cross/spirv_cfg.o" "-c" "src/vendor/SPIRV-Cross/spirv_cfg.cpp"
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "external/local_config_cc/cc_wrapper.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/sandbox/darwin-sandbox/453/execroot/REDACTED/bazel-out/darwin-fastbuild/bin/external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir/src/vendor/SPIRV-Cross/spirv_cross_parsed_ir.o" "-c" "src/vendor/SPIRV-Cross/spirv_cross_parsed_ir.cpp"
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "external/local_config_cc/cc_wrapper.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/sandbox/darwin-sandbox/453/execroot/REDACTED/bazel-out/darwin-fastbuild/bin/external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir/src/vendor/SPIRV-Cross/spirv_cross.o" "-c" "src/vendor/SPIRV-Cross/spirv_cross.cpp"
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = Some("external/local_config_cc/cc_wrapper.sh")
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "external/local_config_cc/cc_wrapper.sh" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-arch" "x86_64" "-Wall" "-Wextra" "-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" "-DSPIRV_CROSS_WRAPPER_NO_EXCEPTIONS" "-DSPIRV_CROSS_WRAPPER_GLSL" "-DSPIRV_CROSS_WRAPPER_HLSL" "-DSPIRV_CROSS_WRAPPER_MSL" "-o" "/private/var/tmp/_bazel_max/5d903361dcf374e4f8f57c5eff2d766d/sandbox/darwin-sandbox/453/execroot/REDACTED/bazel-out/darwin-fastbuild/bin/external/raze__spirv_cross__0_23_1/spirv_cross_build_script.out_dir/src/vendor/SPIRV-Cross/spirv_parser.o" "-c" "src/vendor/SPIRV-Cross/spirv_parser.cpp"

--stderr:


error occurred: Failed to find tool. Is `cc_wrapper.sh` installed?



Target //internal_tool:internal_tool_gui failed to build
@hlopko
Copy link
Member

hlopko commented Oct 11, 2021

@illicitonion any thoughts? :)

@illicitonion
Copy link
Collaborator

Apologies, I've been on vacation for a bit - #969 should fix this

@ikalchev
Copy link
Contributor

Hey @illicitonion, sorry to bother you - any progress on this?

illicitonion added a commit that referenced this issue Nov 1, 2021
Also add the `--sysroot` flag if needed

This is needed for in-tree CXX values because we chdir before execing the build script binary.

Fixes #950
@illicitonion
Copy link
Collaborator

Apologies - I've rebased and merged that PR so this particular issue should be fixed - let's track the other issue you raised around other flags separately :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants