Skip to content

Conversation

@danieldk
Copy link
Member

libgcc_s.so is normally a linker script that adds -lgcc for static functions. However due to bootstrapping requirements, libgcc_s is also added to the glibc library directory. Unfortunately, here it is a symlink to libgcc_s.so.1. Fix it by replacing the symlink by a linker script.

libgcc_s.so is normally a linker script that adds -lgcc for static
functions. However due to bootstrapping requirements, libgcc_s is
also added to the glibc library directory. Unfortunately, here it
is a symlink to libgcc_s.so.1. Fix it by replacing the symlink by
a linker script.
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice detective work!

@jiqing-feng
Copy link

I have verified that it fixed my CPU build issue. Thanks!

@danieldk danieldk merged commit 5f9c8af into main Dec 1, 2025
29 checks passed
@danieldk danieldk deleted the fix-libgcc_s-linker-script branch December 1, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants