bazel build points to builder directory _opt_bblocal_var_buildworker_ports_build_ports_devel_bazel

Steven Smith steve.t.smith at
Fri Jan 14 03:14:13 UTC 2022

I’m trying to build/update py-tensforflow-metadat and am hitting this (bizarre) bazel issue.

First, the build fails with the error:

> :info:build Execution platform: @local_config_platform//:host
> :info:build Use --sandbox_debug to see verbose messages from the sandbox
> :info:build xcrun: error: can't exec '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_bazel/bazel-3.7/work/bazelwrap/cc' (errno=No such file or directory)

Weird that bazel wants to look in a MacPorts build directory.

Searching for this string in ${worksrcpath}, it appears in the file created during the build stage:


>   if (binary_name == "wrapped_clang_pp") {
>     tool_name = "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_bazel/bazel-3.7/work/bazelwrap/cxx";
>   } else if (binary_name == "wrapped_clang") {
>     tool_name = "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_bazel/bazel-3.7/work/bazelwrap/cc";

This is not the file from <>

I’m stumped. Does anyone have insight on what’s causing this weird bazel build issue?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <>

More information about the macports-dev mailing list