-
Notifications
You must be signed in to change notification settings - Fork 74.2k
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
Unable to build tensorflow from source on Apple M1 #57914
Comments
@sun1638650145, |
I've looked at this issue, but this issue doesn't provide any installation help. |
Hi @sun1638650145 , Referring to above comment till the official support for Apple Silicon (Aarch64 based) made available, could you please try with alternate approaches suggested by other users for similar issues from here. Also I observed you are using Clang version of 14.0 which is not yet tested on Tensorflow officially.Please refer the supported configurations here. Thankyou! |
Hi, because I contributed to the build of |
Xcode 14.x come with "problematic" linker (ld), cf. #58368 (comment) |
Hi @sun1638650145 , Could you please confirm the sequence of steps you followed to Build from source? Please refer to the attached documentation here and confirm the steps you have followed. Also please confirm have you used ./configure option to change any default settings. Please ignore GPU related steps as MacOS not supporting TF-GPU for now. Thankyou! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
@SuryanarayanaY Hi, I've verified my steps (I didn't use any additional configuration options), and I've also tried TensorFlow 2.11 with the same problem. |
@freedomtan I suspect this is the problem now, thanks for reminding me. |
Yes, I am pretty sure that's the ld problem (or maybe compiler+ld problem). It's not an M1 only issue. I ran into same problems on MacBook Pro 2018 + Ventura + Xcode 14.1 |
Hi @sun1638650145 , |
Hi @sun1638650145 , I confirm that with MacOS 13.3 and XCode 14.3 configurations worked successfully for build from source on Apple M1. Xcode14.3 should resolve this error related to linker id. Please refer this source for confirmation. Please update the configurations mentioned above and let us know if still having problem in build. Thanks! |
@SuryanarayanaY Yes, I have been able to successfully build, thank you very much for your help. |
Click to expand!
Issue Type
Build/Install
Source
source
Tensorflow Version
tf 2.10
Custom Code
No
OS Platform and Distribution
macOS 12.6
Mobile device
None
Python version
3.9
Bazel version
5.1.1-homebrew
GCC/Compiler version
Apple clang version 14.0.0 (clang-1400.0.29.102)
CUDA/cuDNN version
None
GPU model and memory
None
Current Behaviour?
I need to use
tensorflow-text
, becausetensorflow
does not provide pre-compiled packages for Apple silicon,text
compiled bytensorflow-macos
has a symbol error, so now I need to compiletensorflow
myself, and then go to compiletext
. I'm a newbie tobazel
, and this is my first time compilingtensorflow
, I have tried reinstallingXcode
and usingconda
andvirtualenv
virtual environments respectively, but all have this error.Standalone code to reproduce the issue
Default settings used for all options.
Relevant log output
The text was updated successfully, but these errors were encountered: