Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
[X] Confirmed reproduction steps with SwiftPM CLI.
Description
Check out the spm-bug-release-build-fatal-error tag of https://github.com/hylo-lang-hylo and swift build -c release. It crashes with no useful diagnostic every time it gets to building shim.cc. If the build is invoked with swift test -c release iit will reporterror: fatalError` but that's it.
swift build -c release
[1/1] Compiling plugin Format Source Code
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin Lint Source Code
[4/4] Compiling plugin StandardLibraryBuilderPlugin
[5/5] Compiling plugin TestGeneratorPlugin
[6/6] Compiling plugin ValidatorPlugin
Building for production...
[6/15] Building freestanding.cbor
[6/15] Building hosted.cbor
[6/15] Compiling shim.cc
Compilation exited abnormally with code 1 at Wed Mar 6 14:04:42
Expected behavior
Build succeeds or issues a diagnostic
Actual behavior
see description
Steps to reproduce
see description
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.9.0
Swift & OS version (output of swift --version ; uname -a)
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Darwin DaveA-MBP14-5.localdomain 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?Description
Check out the spm-bug-release-build-fatal-error tag of https://github.com/hylo-lang-hylo and
swift build -c release
. It crashes with no useful diagnostic every time it gets to building shim.cc. If the build is invoked withswift test -c release iit will report
error: fatalError` but that's it.Expected behavior
Build succeeds or issues a diagnostic
Actual behavior
see description
Steps to reproduce
see description
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.9.0
Swift & OS version (output of
swift --version ; uname -a
)swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) Target: arm64-apple-macosx14.0 Darwin DaveA-MBP14-5.localdomain 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64