Closed pablovela5620 closed 2 years ago
Could you give me a bit more information about your system, xcode, compiler, python version and so on. Otherwise it is very difficult to investigate.
For sure Macbook Pro M1 16 in OS 12.4 | System Firmware 7459.121.3 Python Version Python 3.9.13 using miniforge (conda)4.12.0
Xcode 13.4.1 Build version 13F100
cmake version 3.23.2 bazel 5.2.0 opencv@3 version 3.4.16_3
Seems like I'm getting a slightly different error now (I'd noticed that i'd forgotten to install xcode perviously as this is a new computer)
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
WARNING: /Users/pablovela/0Dev/repos/mediapipe-silicon/mediapipe/mediapipe/framework/tool/BUILD:182:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /Users/pablovela/0Dev/repos/mediapipe-silicon/mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/modules/face_detection:face_detection_short_range_cpu (25 packages loaded, 2054 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_pablovela/310c415b7161d43f73f8e65119baefc4/external/zlib/BUILD.bazel:5:11: Compiling uncompr.c failed: I/O exception during sandboxed execution: com.google.devtools.build.lib.shell.ExecFailedException: java.io.IOException: Cannot run program "/var/tmp/_bazel_pablovela/install/71ed47cad951a20fff87381f54639763/xcode-locator": error=86, Bad CPU type in executable
Target //mediapipe/modules/face_detection:face_detection_short_range_cpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.678s, Critical Path: 0.13s
INFO: 113 processes: 95 internal, 18 darwin-sandbox.
FAILED: Build did NOT complete successfully
build-macos.sh: line 46: pushd: dist: No such file or directory
So I ran softwareupdate --install-rosetta --agree-to-license
(based on this)restarted my termial and also made sure to update my OS to the latest. Seems to have fixed things. Not really sure exactly why but hopefully it'll help someone else
It seems that xcode-locator
is still a x64 binary and not compatible with M1. Thx for the update!
Appreciate this tool you've built! I'm in the process of trying to build the python wheels myself but get the following error when running
build-macos.sh
any insights would be greatly appreciated. Thanks again