Closed vymao closed 6 months ago
The script is designed to be run inside the execroot / sandbox which is what happens when you execute bazel.
If you want to reproduce this by hand you need to run with --sandbox_debug
which will leave the sandbox directory in place and you can then copy the command that is run in order to execute the script locally.
Got it, thanks
I am debugging an issue with a generated bash script when trying to build a cmake project. More specifically, the file has the path of the following:
bazel-out/darwin-fastbuild/bin/external/onnx_runtime_extensions/onnx_runtime_ext_foreign_cc/build_script.sh
.If I try running this, I get the following error:
If I look at the first 114 lines, I get the following:
It seems to be complaining about
$EXT_BUILD_ROOT
, which seems to come from this line:export EXT_BUILD_ROOT=$(pwd)
. This seems to setEXT_BUILD_ROOT
to the directory from which I runbazel build
, which doesn't seem right? I expect it to be perhapsEXT_BUILD_ROOT=$(pwd)/bazel-cpp
instead or something.Is this a bug?