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-9939] Undefined symbols linker error when compiling with Swift 5.0 in release mode #52345

Closed
swift-ci opened this issue Feb 17, 2019 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself optimized only Flag: An issue whose reproduction requires optimized compilation regression swift 5.0

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9939
Radar rdar://problem/48403349
Original Reporter luiz (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

macOS Mojave 10.14.2 (18C54)
Version 10.2 beta 2 (10P91b)
Apple Swift version 5.0 (swiftlang-1001.0.60.3 clang-1001.0.37.8)
Target: x86_64-apple-darwin18.2.0
ABI version: 0.7

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 5.0Regression, OptimizedOnly
Assignee None
Priority Medium

md5: 7bf189721b739e220fbd403af4974dbc

is duplicated by:

  • SR-10040 Cross module subclass of generic superclass is missing symbol

Issue Description:

Steps to reproduce:

1. Clone this repo: https://github.com/LuizZak/SwiftRewriter
2. Checkout the branch 'swift5.0'
3. Compile with 'swift build -c=release'

Expected result:

Have the project compile successfully.

Actual result:

Compilation fails with a linker error:

Undefined symbols for architecture x86_64:
  "_$s6Antlr46ParserCACycfC", referenced from:
      _$s15ObjcParserAntlr16ObjectiveCParserCN in ObjectiveCParser.swift.o
      _$s15ObjcParserAntlr022ObjectiveCPreprocessorB0CN in ObjectiveCPreprocessorParser.swift.o
ld: symbol(s) not found for architecture x86_64

Notes:

The problem does not occur if the project is compiled in debug mode.

@belkadan
Copy link
Contributor

@slavapestov, @DougGregor, does this sound familiar?

@slavapestov
Copy link
Member

#22990

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Jul 23, 2019

luiz (JIRA User), Could you verify if the problem is fixed and if so move the JIRA to "Closed"?
Thanks!
Anna

@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 optimized only Flag: An issue whose reproduction requires optimized compilation regression swift 5.0
Projects
None yet
Development

No branches or pull requests

4 participants