Fix build error on sparc64 caused by using the gold linker #4255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When building on a sparc64 machine running Debian sid with gcc 12.2.0, linking fails with the following error:
collect2: fatal error: ld terminated with signal 10 [Bus error]
(build log)It appears to be caused by using the gold linker, although I'm not exactly sure why. None of the other Linux-based Debian architectures exhibit this issue with the gold linker.
I made the proposed change and tested it on one of the GCC Compile Farm sparc64 machines (gcc202), which was then able to successfully compile lxc.