Skip to content

Swift 6.1 build time error: redefinition of module 'CNIO...' #3204

Open
@MahdiBM

Description

@MahdiBM

Expected behavior

No errors.

Actual behavior

Errors on project that builds fine with Swift 6.0 compiler:

/__w/my-app/my-app/.build/x86_64-unknown-linux-gnu/debug/CNIOWASI-tool.build/module.modulemap:1:8: error: redefinition of module 'CNIOWASI'
1 | module CNIOWASI {
  |        `- error: redefinition of module 'CNIOWASI'
2 |     umbrella header "/__w/my-app/my-app/.build/checkouts/swift-nio/Sources/CNIOWASI/include/CNIOWASI.h"
3 |     export *

I have noticed other module names as well. These are the ones I could quickly catch:
CNIOAtomics, CNIOLinux, CNIODarwin, CNIOWASI, CNIOBoringSSLShims

Steps to reproduce

None. The project is private.

If possible, minimal yet complete reproducer code (or URL to code)

None. The project is private. Haven't tried to minimally reproduce.

SwiftNIO version/commit hash

2.81.0 tag.

System & version information

swift:6.1-noble Docker image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions