Build Fails on Apple M1: have 'x86_64', need 'arm64e'

53 views
Skip to first unread message

Suraj Upadhyay

unread,
Feb 13, 2023, 11:27:10 AM2/13/23
to Discuss
Hi Team,

I am trying to build Tensorflow from source code in Apple Macbook Air M1.
But I have been encountering this issue where it fails at platform check with this error:

ImportError: dlopen(/private/var/tmp/_bazel_surajupadhyay/8f981fe79948ed3aaf25909f52b20451/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/_pywrap_cpu_feature_guard.so, 0x0002): tried: '/private/var/tmp/_bazel_surajupadhyay/8f981fe79948ed3aaf25909f52b20451/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/platform/_pywrap_cpu_feature_guard.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/private/var/tmp/_bazel_surajupadhyay/8f981fe79948ed3aaf25909f52b20451/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/platform/_pywrap_cpu_feature_guard.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

Can someone please guide me how to solve this issue?
I am a new aspiring contributor to the project.

Thanks,
~Suraj.
Reply all
Reply to author
Forward
0 new messages