Skip to content

🍒 Fix duplicate symbols static-linking failure by renaming symbols #619

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

Merged

Conversation

etcwilde
Copy link
Contributor

@etcwilde etcwilde commented Dec 6, 2022

Cherry-picking #544.
Should resolve: swiftlang/swift#62034

_swift_stdlib_XX symbols defined in _CUnicode module are also defined in
runtime library as hidden visibility. It works in linking as a shared
library, but it doesn't when statically linking with lld, which resolves
lib_StringProcessing.a's _swift_stdlib_getScript and loads
UnicodeScalarProps.c.o, then loads libswiftCore.a's
UnicodeScalarProps.cpp.o for other _swift_stdlib_XX symbols that are not
defined in UnicodeScalarProps.c.o.
@etcwilde etcwilde added the r5.7 5.7 Release Cherry Picks label Dec 6, 2022
@etcwilde etcwilde requested review from shahmishal and Azoy December 6, 2022 02:05
@etcwilde
Copy link
Contributor Author

etcwilde commented Dec 6, 2022

@swift-ci please smoke test

Copy link
Contributor

@Azoy Azoy left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link

@ephemer ephemer left a comment

Choose a reason for hiding this comment

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

LGTM and it appears to be already in the main branch, so I'm hoping this can be merged soon to unblock static linking workflows in 5.7.x

@tomerd
Copy link

tomerd commented Dec 7, 2022

cc @shahmishal

@stephentyrone stephentyrone merged commit bc39046 into swiftlang:swift/release/5.7 Dec 7, 2022
@etcwilde etcwilde deleted the ewilde/fix-62034 branch December 8, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r5.7 5.7 Release Cherry Picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants