Skip to content

Revert "Revert "Bump the Yams and swift-argument-parser tag for main and release/5.4"" #36366

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

Conversation

shahmishal
Copy link
Member

Reverts #36361

@shahmishal
Copy link
Member Author

@swift-ci test

@shahmishal
Copy link
Member Author

@swift-ci build toolchain

@shahmishal
Copy link
Member Author

@CodaFi
Copy link
Contributor

CodaFi commented Mar 9, 2021

@swift-ci test Apple Silicon macOS platform

@shahmishal
Copy link
Member Author

@CodaFi Please wait from running testing until swiftlang/swift-package-manager#3338 has been merged.

@shahmishal
Copy link
Member Author

@shahmishal
Copy link
Member Author

@shahmishal
Copy link
Member Author

@swift-ci
Copy link
Contributor

swift-ci commented Mar 9, 2021

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@shahmishal
Copy link
Member Author

@swift-ci test Linux

@swift-ci
Copy link
Contributor

macOS Toolchain
Download Toolchain
Git Sha - 8fd976e

Install command
tar -zxf swift-PR-36366-904-osx.tar.gz --directory ~/

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci clean test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci clean test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci clean test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci test Linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

artemcm added a commit to artemcm/swift-package-manager that referenced this pull request Mar 16, 2021
With the version-bump of Yams in swiftlang/swift#36366, Yams `4.0.2` now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing `-Ddispatch_DIR` to its CMake build, we have the following problem on Linux:
- `swift`'s `build-script` installs Dispatch into a just-built toolchain which we use to build SwiftPM, which will contain, among other things, the Dispatch `.swiftmodule`.
- The compiler workspace checkout of `swift-corelibs-libdispatch` also contains a copy of the Dispatch `.swiftmodule`.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.
artemcm added a commit to artemcm/swift-driver that referenced this pull request Mar 16, 2021
…build

[Change analagous to: swiftlang/swift-package-manager#3363]
With the version-bump of Yams in swiftlang/swift#36366, Yams 4.0.2 now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing -Ddispatch_DIR to its CMake build, we have the following problem on Linux:
- swift's build-script installs Dispatch into a just-built toolchain which we use to build swift-driver, which will contain, among other things, the Dispatch .swiftmodule.
- The compiler workspace checkout of swift-corelibs-libdispatch also contains a copy of the Dispatch .swiftmodule.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.
artemcm added a commit to swiftlang/swift-package-manager that referenced this pull request Mar 16, 2021
With the version-bump of Yams in swiftlang/swift#36366, Yams `4.0.2` now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing `-Ddispatch_DIR` to its CMake build, we have the following problem on Linux:
- `swift`'s `build-script` installs Dispatch into a just-built toolchain which we use to build SwiftPM, which will contain, among other things, the Dispatch `.swiftmodule`.
- The compiler workspace checkout of `swift-corelibs-libdispatch` also contains a copy of the Dispatch `.swiftmodule`.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.
@artemcm
Copy link
Contributor

artemcm commented Mar 16, 2021

@swift-ci test Linux

@artemcm
Copy link
Contributor

artemcm commented Mar 17, 2021

@swift-ci build toolchain

@artemcm
Copy link
Contributor

artemcm commented Mar 17, 2021

@swift-ci test Apple Silicon macOS platform

@swift-ci
Copy link
Contributor

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 8fd976e

Install command
tar zxf swift-PR-36366-575-ubuntu16.04.tar.gz
More info

@shahmishal
Copy link
Member Author

apple/swift-xcode-playground-support#54
@swift-ci test Apple Silicon macOS platform

@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

CodaFi pushed a commit to CodaFi/swift-driver that referenced this pull request Mar 22, 2021
…build

[Change analagous to: swiftlang/swift-package-manager#3363]
With the version-bump of Yams in swiftlang/swift#36366, Yams 4.0.2 now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing -Ddispatch_DIR to its CMake build, we have the following problem on Linux:
- swift's build-script installs Dispatch into a just-built toolchain which we use to build swift-driver, which will contain, among other things, the Dispatch .swiftmodule.
- The compiler workspace checkout of swift-corelibs-libdispatch also contains a copy of the Dispatch .swiftmodule.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.
@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

@shahmishal
Copy link
Member Author

11:32:01 Test Case '-[SwiftDriverTests.JobExecutorTests testDarwinBasic]' started.
11:32:01 /Users/buildnode/jenkins/workspace/swift-PR-macos-apple-silicon/branch-main/swift-driver/Sources/SwiftDriverExecution/MultiJobExecutor.swift:296: error: -[SwiftDriverTests.JobExecutorTests testDarwinBasic] : failed: caught error: "fatalError"
11:32:01 Test Case '-[SwiftDriverTests.JobExecutorTests testDarwinBasic]' failed (28.004 seconds).
11:32:01 Test Suite 'JobExecutorTests' failed at 2021-03-24 11:32:01.015.

@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

1 similar comment
@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

@shahmishal
Copy link
Member Author

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2021

Build failed
Swift Test Linux Platform
Git Sha - 8fd976e

@shahmishal
Copy link
Member Author

@swift-ci test Linux

@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

@shahmishal
Copy link
Member Author

11:29:44 Test Case '-[FunctionalTests.PluginTests testUseOfVendedBinaryTool]' started.
11:29:44 
/Users/buildnode/jenkins/workspace/swift-PR-macos-apple-silicon/branch-main/swiftpm/Tests/FunctionalTests/PluginTests.swift:115: error: -[FunctionalTests.PluginTests testUseOfVendedBinaryTool] : failed - terminated(1): /Users/buildnode/jenkins/workspace/swift-PR-macos-apple-silicon/branch-main/buildbot_incremental/swiftpm-macosx-arm64/arm64-apple-macosx/release/swift-build --package-path /var/folders/ld/md151_257fldz2fn_bzqb5hm0000gp/T/Miscellaneous_Plugins.1NXiPb/MyBinaryToolPlugin --configuration debug --product MyLocalTool output:
11:29:44     'MyBinaryToolPlugin' /private/var/folders/ld/md151_257fldz2fn_bzqb5hm0000gp/T/Miscellaneous_Plugins.1NXiPb/MyBinaryToolPlugin: warning: found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
11:29:44         /private/var/folders/ld/md151_257fldz2fn_bzqb5hm0000gp/T/Miscellaneous_Plugins.1NXiPb/MyBinaryToolPlugin/Sources/MyLocalTool/foo.dat
11:29:44     
11:29:44     error: running plugin script failed: signalled(signal: 5):
11:29:44     Fatal error: Error raised at top level: plugin doesn’t have access to any tool named ‘mytool’ [line 13]: file Swift/ErrorType.swift, line 200
11:29:44     
11:29:44     
11:29:44 Test Case '-[FunctionalTests.PluginTests testUseOfVendedBinaryTool]' failed (5.059 seconds).

@shahmishal
Copy link
Member Author

@swift-ci test windows

@shahmishal
Copy link
Member Author

@swift-ci build toolchain

@swift-ci
Copy link
Contributor

swift-ci commented Apr 8, 2021

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 8fd976e

Install command
tar zxf swift-PR-36366-585-ubuntu16.04.tar.gz
More info

@shahmishal
Copy link
Member Author

@swift-ci test Apple Silicon macOS platform

@swift-ci
Copy link
Contributor

swift-ci commented Apr 9, 2021

macOS Toolchain
Download Toolchain
Git Sha - 8fd976e

Install command
tar -zxf swift-PR-36366-937-osx.tar.gz --directory ~/

@shahmishal shahmishal merged commit a93593a into main Apr 9, 2021
@shahmishal shahmishal deleted the revert-36361-revert-36296-shahmishal/bump-yams-argument-parser-tag branch April 9, 2021 03:07
shahmishal pushed a commit to swiftlang/swift-driver that referenced this pull request Apr 21, 2021
…build

[Change analagous to: swiftlang/swift-package-manager#3363]
With the version-bump of Yams in swiftlang/swift#36366, Yams 4.0.2 now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing -Ddispatch_DIR to its CMake build, we have the following problem on Linux:
- swift's build-script installs Dispatch into a just-built toolchain which we use to build swift-driver, which will contain, among other things, the Dispatch .swiftmodule.
- The compiler workspace checkout of swift-corelibs-libdispatch also contains a copy of the Dispatch .swiftmodule.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.

(cherry picked from commit a76b464)
shahmishal pushed a commit to swiftlang/swift-package-manager that referenced this pull request Apr 21, 2021
With the version-bump of Yams in swiftlang/swift#36366, Yams `4.0.2` now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing `-Ddispatch_DIR` to its CMake build, we have the following problem on Linux:
- `swift`'s `build-script` installs Dispatch into a just-built toolchain which we use to build SwiftPM, which will contain, among other things, the Dispatch `.swiftmodule`.
- The compiler workspace checkout of `swift-corelibs-libdispatch` also contains a copy of the Dispatch `.swiftmodule`.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.

(cherry picked from commit 6af862d)
shahmishal added a commit to swiftlang/swift-package-manager that referenced this pull request Apr 25, 2021
#3363) (#3423)

* [Bootstrap] Do not pass `-Ddispatch_DIR` to the Yams CMake build (#3363)

With the version-bump of Yams in swiftlang/swift#36366, Yams `4.0.2` now actually expresses the dependency on Dispatch in its CMake config.

With the current behavior of passing `-Ddispatch_DIR` to its CMake build, we have the following problem on Linux:
- `swift`'s `build-script` installs Dispatch into a just-built toolchain which we use to build SwiftPM, which will contain, among other things, the Dispatch `.swiftmodule`.
- The compiler workspace checkout of `swift-corelibs-libdispatch` also contains a copy of the Dispatch `.swiftmodule`.

Both of these will be found, leading to build failures like:
```
/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-nightly-install/usr/lib/swift/dispatch/module.modulemap:1:8: error: redefinition of module 'Dispatch'
19:37:47 module Dispatch {
19:37:47        ^
19:37:47 /home/buildnode/jenkins/workspace/swift-PR-Linux/branch-main/swift-corelibs-libdispatch/dispatch/module.modulemap:1:8: note: previously defined here
19:37:47 module Dispatch {
19:37:47        ^
19:37:47
```
We also cannot put off building `libDispatch` until SwiftPM is built, because the `libDispatch` dylib is required to link SwiftPM.
Not passing `-Ddispatch_DIR` to Yams' CMake build causes it to successfully locate the Dispatch package in the just-built toolchain on its own.

(cherry picked from commit 6af862d)

* Fix invalid assumptions leading to unit test failures on Apple Silicon. (#3328)

rdar://75113176
(cherry picked from commit 3ff6f8b)

* Disable `testExplicitSwiftPackageBuild` on Apple Silicon because it relies on compiler fixes from later compiler versions, on this platform.

Co-authored-by: Artem Chikin <[email protected]>
Co-authored-by: Anders Bertelrud <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants