-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Build TensorFlow for raspberry pi failed by ): relocation truncated to fit: R_AARCH64_CALL26 against symbol #69951
Comments
I have tried to add -fPIC in the build flag, but it still reports the same issue. I also tried change '-O2‘ to '-Os', it is the same. |
Hi, Building for the aarch64 Configuration: f86a22a88103843b2f048db8d142631a85f0eddbce9df51d51c468ebb4786d1fExecution platform: @local_execution_config_platform//:platformbazel-out/aarch64-opt/bin/tensorflow/c/experimental/gradients/libmath_grad.pic.a(math_grad.pic.o): in function Configuration: f86a22a88103843b2f048db8d142631a85f0eddbce9df51d51c468ebb4786d1fExecution platform: @local_execution_config_platform//:platformINFO: Elapsed time: 758.820s, Critical Path: 625.27s |
Hi, Add more info when I debug it. This issue ONLY happens at build the target --//tensorflow/tools/pip_package:build_pip_package Willen |
I met with a similar problem when running The bazel build always failed at Of course it should be not so easy to shrink the lib size. I used to find some sources that mentioned the Here is my error logs.
|
Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tf 2.16.1
Custom code
Yes
OS platform and distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.11
Bazel version
6.5.0
GCC/compiler version
aarch64
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
Build successfully for raspberry PI 4
Standalone code to reproduce the issue
1. Clone the code: git clone https://github.com/tensorflow/tensorflow.git cd tensorflow ./tensorflow/tools/ci_build/pi/build_raspberry_pi.sh AARCH64
Relevant log output
The text was updated successfully, but these errors were encountered: