Skip to content
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

[SR-3081] Xcode 8.1, duplicate symbol __TMRbBp in release configuration #45671

Closed
swift-ci opened this issue Oct 29, 2016 · 8 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-3081
Radar rdar://problem/28924516
Original Reporter danthorpe (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

macOS Sierra 10.12.1

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee danthorpe (JIRA)
Priority Medium

md5: 504f79245953b1988f9a2fd00eaae84a

is duplicated by:

  • SR-3093 "duplicate symbol __TMRbBp" linker error with WMO

Issue Description:

Hi, we've seen that with Xcode 8.1, 8T61a, the swift compiler/linker fails:

duplicate symbol __TMRbBp in:
/Users/daniel/Library/Developer/Xcode/DerivedData/ProcedureKit-dnykyvtglbgxhrgjsrqujqiprltx/Build/Intermediates/ProcedureKit.build/Release/ProcedureKit.build/Objects-normal/x86_64/Condition.o
/Users/daniel/Library/Developer/Xcode/DerivedData/ProcedureKit-dnykyvtglbgxhrgjsrqujqiprltx/Build/Intermediates/ProcedureKit.build/Release/ProcedureKit.build/Objects-normal/x86_64/ProcedureQueue.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

when building this framework: http://github.com/ProcedureKit/ProcedureKit.

The failure is avoided with this commit: ProcedureKit/ProcedureKit@37b4677

@keith
Copy link
Collaborator

keith commented Oct 31, 2016

I'm having this issue as well. I've reduced the problem to a sample project with < 20 LOC (attached). The fix from the linked commit also solves it in this case. SwiftSymbolCollision.zip

@keith
Copy link
Collaborator

keith commented Oct 31, 2016

There's also a conversation about this on the Apple dev forums https://forums.developer.apple.com/message/191894

@belkadan
Copy link
Contributor

@jckarter, you had something similar to this in Radar, right?

@jckarter
Copy link
Member

Yeah, rdar://problem/28924516. I think @slavapestov was looking into it.

@jckarter
Copy link
Member

You can work around this by setting "Reflection Level" to "None" in your build settings.

@jckarter
Copy link
Member

Looks like Slava already fixed this in master: 94f0ffd

@jckarter
Copy link
Member

jckarter commented Nov 2, 2016

And 3.0: #5562

Should be fixed in future seeds.

@keith
Copy link
Collaborator

keith commented Nov 2, 2016

Thanks everyone!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

4 participants