-
Couldn't load subscription status.
- Fork 1.4k
Open
Labels
Description
Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
- Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands,
swift build,swift test,swift packageetc.
Description
When building swift-foundation with the swiftbuild build system, SwiftPM fails with the following error repeated many times:
error: /usr/lib/swift/_FoundationCShims/module.modulemap:1:8 redefinition of module '_FoundationCShims' error: SwiftCompile normal aarch64 /Repos/Public/swift-foundation/Sources/FoundationEssentials/WinSDK+Extensions.swift failed with a nonzero exit code. Command line: cd /Repos/Public Expected behavior
I expect SwiftPM to successfully build/test swift-foundation like it does with the existing build system
Actual behavior
Build log output: output.txt
It appears that the build system is confusing the local _FoundationCShims module (built in the package) with the module that is shipped with the toolchain.
Steps to reproduce
- Checkout swift-foundation
- Run
swift test --build-system swiftbuild
Swift Package Manager version/commit hash
10/17 Nightly Main Toolchain
Swift & OS version (output of swift --version ; uname -a)
Swift version 6.3-dev (LLVM d8e7cc748ee6e7f, Swift a07ea37d0054945) Target: aarch64-unknown-linux-gnu Build config: +assertions Linux nightly-noble 6.1.68 #1 SMP Fri Nov 22 18:05:17 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress