following https://github.com/tensorflow/tfx-bsl/#build-from-source
python setup.py bdist_wheel
/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/setuptools/dist.py:493: UserWarning: Normalizing '1.7.0.dev' to '1.7.0.dev0'
warnings.warn(tmpl.format(**locals()))
running bdist_wheel
running build
running bazel_build
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
WARNING: Download from https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/582c8d236cb079023657287c318ff26adb239002.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_github_tensorflow_metadata/tensorflow_metadata/proto/v0/BUILD:24:17: in cc_library rule @com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:cc_metadata_v0_proto_cc: target '@com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:cc_metadata_v0_proto_cc' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:2020:11: in cc_library rule @com_google_zetasql//zetasql/public:language_options: target '@com_google_zetasql//zetasql/public:language_options' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/common/BUILD:184:11: in cc_library rule @com_google_zetasql//zetasql/common:proto_helper: target '@com_google_zetasql//zetasql/common:proto_helper' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/functions/BUILD:1336:11: in cc_library rule @com_google_zetasql//zetasql/public/functions:common_proto: target '@com_google_zetasql//zetasql/public/functions:common_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:412:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:approx-bounds: target '@com_google_cc_differential_privacy//algorithms:approx-bounds' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:130:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:bounded-sum: target '@com_google_cc_differential_privacy//algorithms:bounded-sum' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:166:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:bounded-mean: target '@com_google_cc_differential_privacy//algorithms:bounded-mean' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/types/BUILD:19:11: in cc_library rule @com_google_zetasql//zetasql/public/types:types: target '@com_google_zetasql//zetasql/public/types:types' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:65:11: in cc_library rule @com_google_zetasql//zetasql/public:type: target '@com_google_zetasql//zetasql/public:type' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:1164:11: in cc_library rule @com_google_zetasql//zetasql/public:proto_value_conversion: target '@com_google_zetasql//zetasql/public:proto_value_conversion' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/common/BUILD:336:11: in cc_library rule @com_google_zetasql//zetasql/common:builtin_function_internal: target '@com_google_zetasql//zetasql/common:builtin_function_internal' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:278:11: in cc_library rule @com_google_zetasql//zetasql/public:simple_catalog: target '@com_google_zetasql//zetasql/public:simple_catalog' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/analyzer/BUILD:162:11: in cc_library rule @com_google_zetasql//zetasql/analyzer:resolver: target '@com_google_zetasql//zetasql/analyzer:resolver' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/reference_impl/BUILD:92:11: in cc_library rule @com_google_zetasql//zetasql/reference_impl:evaluation: target '@com_google_zetasql//zetasql/reference_impl:evaluation' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //tfx_bsl:move_generated_files (100 packages loaded, 8109 targets configured).
INFO: Found 1 target...
INFO: From ProtoCompile tfx_bsl/public/proto/model_spec_pb2.py:
external/com_google_protobuf/python: warning: directory does not exist.
ERROR: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/bazel/BUILD:40:15: CcConfigureMakeRule external/com_google_zetasql/bazel/m4/include [for host] failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify '--sandbox_debug' Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules #0.0.8. Building library 'm4'
Environment:______________TMPDIR=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/
EXT_BUILD_ROOT=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/366/execroot/tfx_bsl
INSTALLDIR=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/366/execroot/tfx_bsl/bazel-out/host/bin/external/com_google_zetasql/bazel/m4
PATH=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/366/execroot/tfx_bsl:/Users/dxia/.pyenv/versions/ml-golden-path/bin:/opt/homebrew/Cellar/pyenv/2.2.4-1/libexec:/opt/homebrew/Cellar/pyenv/2.2.4-1/plugins/python-build/bin:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/Users/dxia/.pyenv/libexec/pyenv:/Users/dxia/.pyenv/libexec:/Users/dxia/.pyenv/shims:/Users/dxia/.pyenv/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
BUILD_TMPDIR=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/tmp.41N4Evb6
PWD=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/366/execroot/tfx_bsl
EXT_BUILD_DEPS=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/tmp.3H4Vgm62
SHLVL=2
BUILD_LOG=bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure.log
BUILD_SCRIPT=bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure_script.sh
_=/usr/bin/env
__________________________ln: illegal option -- t
usage: ln [-Ffhinsv] source_file [link_name]
ln [-Ffhinsv] source_file ... linkname_dir
link source_file link_name
_____ END BUILD LOGS _____
rules_foreign_cc: Build script location: bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure_script.sh
rules_foreign_cc: Build log location: bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure.log
Target //tfx_bsl:move_generated_files failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 84.832s, Critical Path: 6.29s
INFO: 414 processes: 48 internal, 366 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "setup.py", line 133, in <module>
setup(
File "/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 91, in run
subprocess.check_call(
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/homebrew/bin/bazel', 'run', '-c', 'opt', '--macos_minimum_os=10.14', '//tfx_bsl:move_generated_files']' returned non-zero exit status 1.
The above error shows the native ln
utility lacks the -t
option. So I tried installing the GNU version
with brew install coreutils
. I update my PATH
to make ln
default to /opt/homebrew/opt/coreutils/libexec/gnubin/ln
.
python setup.py bdist_wheel
/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/setuptools/dist.py:493: UserWarning: Normalizing '1.7.0.dev' to '1.7.0.dev0'
warnings.warn(tmpl.format(**locals()))
running bdist_wheel
running build
running bazel_build
WARNING: Download from https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/582c8d236cb079023657287c318ff26adb239002.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_github_tensorflow_metadata/tensorflow_metadata/proto/v0/BUILD:24:17: in cc_library rule @com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:cc_metadata_v0_proto_cc: target '@com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:cc_metadata_v0_proto_cc' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:2020:11: in cc_library rule @com_google_zetasql//zetasql/public:language_options: target '@com_google_zetasql//zetasql/public:language_options' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:412:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:approx-bounds: target '@com_google_cc_differential_privacy//algorithms:approx-bounds' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:130:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:bounded-sum: target '@com_google_cc_differential_privacy//algorithms:bounded-sum' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_cc_differential_privacy/algorithms/BUILD:166:11: in cc_library rule @com_google_cc_differential_privacy//algorithms:bounded-mean: target '@com_google_cc_differential_privacy//algorithms:bounded-mean' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/common/BUILD:184:11: in cc_library rule @com_google_zetasql//zetasql/common:proto_helper: target '@com_google_zetasql//zetasql/common:proto_helper' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/functions/BUILD:1336:11: in cc_library rule @com_google_zetasql//zetasql/public/functions:common_proto: target '@com_google_zetasql//zetasql/public/functions:common_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/types/BUILD:19:11: in cc_library rule @com_google_zetasql//zetasql/public/types:types: target '@com_google_zetasql//zetasql/public/types:types' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:65:11: in cc_library rule @com_google_zetasql//zetasql/public:type: target '@com_google_zetasql//zetasql/public:type' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:1164:11: in cc_library rule @com_google_zetasql//zetasql/public:proto_value_conversion: target '@com_google_zetasql//zetasql/public:proto_value_conversion' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/common/BUILD:336:11: in cc_library rule @com_google_zetasql//zetasql/common:builtin_function_internal: target '@com_google_zetasql//zetasql/common:builtin_function_internal' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/public/BUILD:278:11: in cc_library rule @com_google_zetasql//zetasql/public:simple_catalog: target '@com_google_zetasql//zetasql/public:simple_catalog' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/analyzer/BUILD:162:11: in cc_library rule @com_google_zetasql//zetasql/analyzer:resolver: target '@com_google_zetasql//zetasql/analyzer:resolver' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/zetasql/reference_impl/BUILD:92:11: in cc_library rule @com_google_zetasql//zetasql/reference_impl:evaluation: target '@com_google_zetasql//zetasql/reference_impl:evaluation' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //tfx_bsl:move_generated_files (3 packages loaded, 155 targets configured).
INFO: Found 1 target...
INFO: From Compiling zetasql/public/functions/uuid.cc:
warning: unknown warning option '-Wno-unused-but-set-parameter'; did you mean '-Wno-unused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wnonnull-compare' [-Wunknown-warning-option]
2 warnings generated.
INFO: From Generating C++ proto_library @com_google_zetasql//zetasql/public:type_annotation_proto:
zetasql/public/type_annotation.proto:22:1: warning: Import zetasql/public/proto/type_annotation.proto is unused.
ERROR: /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/external/com_google_zetasql/bazel/BUILD:40:15: CcConfigureMakeRule external/com_google_zetasql/bazel/m4/include [for host] failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify '--sandbox_debug' Bazel command line flag.
rules_foreign_cc: Printing build logs:
_____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules #0.0.8. Building library 'm4'
Environment:______________TMPDIR=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/
EXT_BUILD_ROOT=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl
INSTALLDIR=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/bazel-out/host/bin/external/com_google_zetasql/bazel/m4
PATH=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl:/Users/dxia/.pyenv/versions/ml-golden-path/bin:/opt/homebrew/Cellar/pyenv/2.2.4-1/libexec:/opt/homebrew/Cellar/pyenv/2.2.4-1/plugins/python-build/bin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/sbin:/opt/homebrew/bin:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/Users/dxia/.pyenv/libexec/pyenv:/Users/dxia/.pyenv/libexec:/Users/dxia/.pyenv/shims:/Users/dxia/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
BUILD_TMPDIR=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/tmp.pBoq9ruAoo
PWD=/private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl
EXT_BUILD_DEPS=/var/folders/sr/ryl6yttx739282tn918mf3l00000gn/T/tmp.VuYHF7qdwE
SHLVL=2
BUILD_LOG=bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure.log
BUILD_SCRIPT=bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure_script.sh
_=/opt/homebrew/opt/coreutils/libexec/gnubin/env
__________________________PKG_CONFIG_PATH=
configure: WARNING: unrecognized options: --disable-nls
checking for a BSD-compatible install... /opt/homebrew/opt/coreutils/libexec/gnubin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/homebrew/opt/coreutils/libexec/gnubin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh accepts -g... yes
checking for /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh option to accept ISO C89... none needed
checking whether /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh... gcc3
checking how to run the C preprocessor... /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/local_config_cc/cc_wrapper.sh -E
checking for grep that handles long lines and -e... /opt/homebrew/bin/ggrep
checking for egrep... /opt/homebrew/bin/ggrep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking the archiver (ar_wrapper) interface... ar
checking for ar... ar_wrapper
checking for ranlib... ranlib
checking build system type... Invalid configuration `arm64-apple-darwin21.2.0': machine `arm64-apple' not recognized
configure: error: /bin/sh /private/var/tmp/_bazel_dxia/d04b2a0af0bfa8b87e9ee3d22b80983f/sandbox/darwin-sandbox/1537/execroot/tfx_bsl/external/m4/build-aux/config.sub arm64-apple-darwin21.2.0 failed
_____ END BUILD LOGS _____
rules_foreign_cc: Build script location: bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure_script.sh
rules_foreign_cc: Build log location: bazel-out/host/bin/external/com_google_zetasql/bazel/m4/logs/Configure.log
Target //tfx_bsl:move_generated_files failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 25.176s, Critical Path: 5.55s
INFO: 380 processes: 64 internal, 316 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "setup.py", line 133, in <module>
setup(
File "/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/dxia/.pyenv/versions/ml-golden-path/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 91, in run
subprocess.check_call(
File "/Users/dxia/.pyenv/versions/3.8.12/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/homebrew/bin/bazel', 'run', '-c', 'opt', '--macos_minimum_os=10.14', '//tfx_bsl:move_generated_files']' returned non-zero exit status 1.
Unfortunately, the error
Invalid configuration
arm64-apple-darwin21.2.0': machine
arm64-apple' not recognized
indicates M1 Macs are not supported.