-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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] /usr/bin/ld: failed to set dynamic section sizes: memory exhausted #15337
Comments
From the linker error message, it seems like the machine doesn't have enough ram to link the code. I am not sure if there is a solution to this problem other than increasing machine ram. Maybe @snnn has some helpful insight for this? |
@baijumeswani thanks for your answer, I got 256GB of RAM total on the server and 182GB are free. I was able as well to build the Maybe it's related to a 4GB limit, don't really know. |
@goldyfruit thanks for the info. I should not have assumed. :) I'm sorry but I have no good reason why you're seeing the linker error. I'll try to consult with other engineers internally, but not sure if I will have any luck. If you do find the answer to the problem, please post it here so it can benefit others who might find themselves in a similar boat. |
You couldn't 👍
I hope you will have some update.
Sure. |
@goldyfruit Did you try removing "--parallel" build.sh command-line option? |
No I don't, let me try without it! |
Still running... 13 hours! |
Same error after 27 hours of build.
|
Can you try building a Release version instead of a Debug version? I am hoping that Release build might succeed. You can specify the release build by adding " --config Release" option to the build.sh command. |
@goldyfruit Did you try building Release build? |
Build in progress (thanks for the reminder 👍 ) |
Did a
I give up for now, thanks for helping. |
When you get back to this, you can install/upgrade cmake using "pip install cmake" |
I've got the same issue while building for Cortex A9 (armv7l).
OS GNU ld (GNU Binutils for Ubuntu) 2.38 ./build.sh --config Release --parallel --skip_submodule_sync --skip_tests --use_xnnpack --build_wheel --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-dev -Wall -Wextra -O3 -g3 -mfloat-abi=hard -mfpu=neon-vfpv3 -mcpu=cortex-a9 -mfloat-abi=hard" CMAKE_C_FLAGS="-Wno-dev -Wall -Wextra -O3 -g3 -mfloat-abi=hard -mfpu=neon-vfpv3 -mcpu=cortex-a9 -mfloat-abi=hard" During the last failed build I had 16GB of swap. Now I've doubled it.
|
Describe the issue
Unable to build
onnxruntime
on Debian Bookworm container forarmv7
.Urgency
No response
Target platform
armv7
Build script
Dockerfile-debian.arm32v7
install_debian_armv7.sh
The text was updated successfully, but these errors were encountered: