Skip to content

[SR-15105] Source compatibility suite: FAIL: siesta, 5.1, cb9c1b, Swift Package: duplicate symbol '_NDR_record'  #57431

@hamishknight

Description

@hamishknight
Previous ID SR-15105
Radar rdar://problem/82303284
Original Reporter @hamishknight
Type Bug
Environment

swift-main-source-compat-suite
swift-main-source-compat-suite-debug
swift-5.5-source-compat-suite

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: c04cf32deba14c05720d7fe43ebbf716

Issue Description:

https://ci.swift.org/job/swift-main-source-compat-suite/6084/
https://ci.swift.org/job/swift-5.5-source-compat-suite/139/

siesta is failing with:

error: link command failed with exit code 1 (use -v to see invocation)
duplicate symbol '_NDR_record' in:
    /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta/.build/x86_64-apple-macosx/release/CwlPreconditionTesting.build/CwlBadInstructionException.swift.o
    /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta/.build/x86_64-apple-macosx/release/CwlPreconditionTesting.build/CwlCatchBadInstruction.swift.o

And in a debug run https://ci.swift.org/job/swift-main-source-compat-suite-debug/4198/,
both siesta and Nimble fail with:

<unknown>:0: error: symbol 'NDR_record' (NDR_record) is in generated IR file, but not in TBD file
<unknown>:0: error: please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project, and add '-Xfrontend -validate-tbd-against-ir=none' to squash the errors

Looks like this has been worked around upstream in mattgallagher/CwlPreconditionTesting@0630439888c94657a235ffcd5977d6047ef3c87b, although Nimble and siesta don't yet have it in their dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TBDGenArea → compiler: TBD generationbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfsource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.0unexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions