Skip to content
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

Building a wheel for Mac M1 is getting an error #2661

Open
StephanElter opened this issue Feb 5, 2022 · 2 comments
Open

Building a wheel for Mac M1 is getting an error #2661

StephanElter opened this issue Feb 5, 2022 · 2 comments

Comments

@StephanElter
Copy link

Hello all,
I tried to build a wheel for Mac M1 for the last Addons. I did it like described in #2503.
I get the following error. Does someone know what the problem is?
Because i use Tensorflow 2.7. (Python 3.9.5) I couldn't use the wheel from #2503
if someone can provide a build wheel for Addons >= tensorflow-addons-0.15.0. it would also help.

Thanks a lot !

bazel build build_pip_pkg
Starting local Bazel server and connecting to it...
WARNING: /private/var/tmp/_bazel_stephanelter/3e9e45535f0149b84e463236aa5bb192/external/local_config_tf/BUILD:11113:8: target 'libtensorflow_framework.2.dylib' is both a rule and a file; please choose another name for the rule
INFO: Analyzed target //:build_pip_pkg (38 packages loaded, 269 targets configured).
INFO: Found 1 target...
ERROR: /Users/stephanelter/addons/tensorflow_addons/custom_ops/seq2seq/BUILD:7:18: C++ compilation of rule '//tensorflow_addons/custom_ops/seq2seq:_beam_search_ops.so' failed (Exit 1): cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 ... (remaining 40 argument(s) skipped)
In file included from tensorflow_addons/custom_ops/seq2seq/cc/ops/beam_search_ops.cc:16:
In file included from bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/op.h:24:
In file included from bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/full_type_util.h:24:
In file included from bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/node_def_util.h:23:
In file included from bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/attr_value_util.h:24:
In file included from bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/tensor.h:25:
bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/tensor_types.h:176:25: error: 'auto' not allowed in lambda parameter
auto all = [](const auto&... bool_vals) {
^~~~
bazel-out/darwin-opt/bin/external/local_config_tf/include/tensorflow/core/framework/tensor_types.h:176:30: error: type 'int &' of function parameter pack does not contain any unexpanded parameter packs
auto all = [](const auto&... bool_vals) {
~~~~~~~~~~~^~~~~~~~~~~~~
2 errors generated.

@sbilgil
Copy link

sbilgil commented Sep 26, 2022

Did anyone find a solution. I also have same error with mac m1 and tensorflow-macos==2.8.0

@bhack
Copy link
Contributor

bhack commented Sep 26, 2022

/cc @lgeiger

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

No branches or pull requests

3 participants