-
Notifications
You must be signed in to change notification settings - Fork 1.2k
build: migrate swift to CMake 3.15.1 #2524
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
e6c66cb
to
678690e
Compare
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
678690e
to
e4cadc7
Compare
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test |
1 similar comment
Please test with following PR: @swift-ci please test |
Please test with following PR: @swift-ci please test Linux platform |
1 similar comment
Please test with following PR: @swift-ci please test Linux platform |
Please test with following PR: @swift-ci please test Linux platform |
1 similar comment
Please test with following PR: @swift-ci please test Linux platform |
Please test with following PR: @swift-ci please test Linux platform |
FYI, building toolchain package using this PR fails with following error: CMake Error at Tools/plutil/cmake_install.cmake:41 (file):
file INSTALL cannot find
"/Users/norio/github/swift-dev/swift-corelibs-foundation/Tools/plutil/plutil".
Call Stack (most recent call first):
Tools/cmake_install.cmake:42 (include)
cmake_install.cmake:52 (include)
FAILED: CMakeFiles/install.util
cd /Users/norio/github/swift-dev/build/buildbot_linux/foundation-linux-x86_64 && /Users/norio/github/swift-dev/build/cmake-linux-x86_64/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting I guess that is not reproduced with the test triggered by #2524 (comment) |
Ugh, seems that |
e4cadc7
to
9fdb9eb
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
9fdb9eb
to
a3360e4
Compare
@swift-ci please test |
building toolchain package with updated commit fails with following error: CMake Error at cmake_install.cmake:93 (file):
file INSTALL cannot find
"/Users/norio/github/swift-dev/build/buildbot_linux/foundation-linux-x86_64/plutil".
FAILED: CMakeFiles/install.util
cd /Users/norio/github/swift-dev/build/buildbot_linux/foundation-linux-x86_64 && /Users/norio/github/swift-dev/build/cmake-linux-x86_64/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
|
That is the correct location; I wonder why its looking for |
No. |
I got same result. file(INSTALL DESTINATION "/usr/bin" TYPE PROGRAM FILES "/Users/norio/github/swift-dev/build/buildbot_linux/foundation-linux-x86_64/plutil") but,
instead of
that |
Something seems cached there, this is what is getting generated for me:
|
a3360e4
to
1864067
Compare
building toolchain package with updated commit fails with following error: + /Users/norio/github/swift-dev/indexstore-db/Utilities/build-script-helper.py build --verbose --package-path /Users/norio/github/swift-dev/indexstore-db --build-path /Users/norio/github/swift-dev/build/buildbot_linux/indexstoredb-linux-x86_64 --configuration release --toolchain /Users/norio/github/swift-dev/build/swift-nightly-install --ninja-bin /Users/norio/github/swift-dev/build/buildbot_linux/ninja-build/ninja
/Users/norio/github/swift-dev/build/swift-nightly-install/usr/bin/swift build --package-path /Users/norio/github/swift-dev/indexstore-db --build-path /Users/norio/github/swift-dev/build/buildbot_linux/indexstoredb-linux-x86_64 --configuration release --verbose -Xcxx -I -Xcxx /Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift -Xcxx -I -Xcxx /Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift/Block
lsb_release -r
/Users/norio/github/swift-dev/build/swift-nightly-install/usr/bin/swiftc --driver-mode=swift -L /Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift/pm/4_2 -lPackageDescription -swift-version 4.2 -I /Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift/pm/4_2 -sdk / -package-description-version 4.2 /Users/norio/github/swift-dev/indexstore-db/Package.swift -fileno 7
/Users/norio/github/swift-dev/indexstore-db: error: manifest parse error(s):
/Users/norio/github/swift-dev/indexstore-db/Package.swift:3:8: error: missing required module 'Foundation'
import PackageDescription
^
Traceback (most recent call last):
File "/Users/norio/github/swift-dev/indexstore-db/Utilities/build-script-helper.py", line 94, in <module>
main()
File "/Users/norio/github/swift-dev/indexstore-db/Utilities/build-script-helper.py", line 83, in main
swiftpm('build', swift_exec, swiftpm_args, env)
File "/Users/norio/github/swift-dev/indexstore-db/Utilities/build-script-helper.py", line 15, in swiftpm
subprocess.check_call(cmd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/norio/github/swift-dev/build/swift-nightly-install/usr/bin/swift', 'build', '--package-path', '/Users/norio/github/swift-dev/indexstore-db', '--build-path', '/Users/norio/github/swift-dev/build/buildbot_linux/indexstoredb-linux-x86_64', '--configuration', 'release', '--verbose', '-Xcxx', '-I', '-Xcxx', '/Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift', '-Xcxx', '-I', '-Xcxx', '/Users/norio/github/swift-dev/build/swift-nightly-install/usr/lib/swift/Block']' returned non-zero exit status 1
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting It seems to fail while building $ docker-swiftnightly-run find /usr/lib/ -name "*Foundation*"|sort>nightly20191024.txt
$ (cd build/swift-nightly-install; find . -name "*Foundation*"|sed "s/^\.//"|sort)>pr-2524.txt
$ diff -u nightly20191024.txt pr-2524.txt
--- nightly20191024.txt 2019-10-27 09:03:51.000000000 +0900
+++ pr-2524.txt 2019-10-27 09:03:57.000000000 +0900
@@ -7,17 +7,17 @@
/usr/lib/swift/CoreFoundation/CoreFoundation.h
/usr/lib/swift/CoreFoundation/ForFoundationOnly.h
/usr/lib/swift/CoreFoundation/ForSwiftFoundationOnly.h
-/usr/lib/swift/linux/libFoundation.so
-/usr/lib/swift/linux/libFoundationNetworking.so
-/usr/lib/swift/linux/libFoundationXML.so
-/usr/lib/swift/linux/x86_64/Foundation.swiftdoc
-/usr/lib/swift/linux/x86_64/Foundation.swiftmodule
-/usr/lib/swift/linux/x86_64/FoundationNetworking.swiftdoc
-/usr/lib/swift/linux/x86_64/FoundationNetworking.swiftmodule
-/usr/lib/swift/linux/x86_64/FoundationXML.swiftdoc
-/usr/lib/swift/linux/x86_64/FoundationXML.swiftmodule
/usr/lib/swift/shims/CoreFoundationOverlayShims.h
/usr/lib/swift/shims/CoreFoundationShims.h
/usr/lib/swift/shims/FoundationOverlayShims.h
/usr/lib/swift/shims/FoundationShimSupport.h
/usr/lib/swift/shims/FoundationShims.h
+/usr/lib/x86_64-linux-gnu/libFoundation.so
+/usr/lib/x86_64-linux-gnu/libFoundationNetworking.so
+/usr/lib/x86_64-linux-gnu/libFoundationXML.so
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/Foundation.swiftdoc
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/Foundation.swiftmodule
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/FoundationNetworking.swiftdoc
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/FoundationNetworking.swiftmodule
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/FoundationXML.swiftdoc
+/usr/lib/x86_64-linux-gnu/swift/linux/x86_64/FoundationXML.swiftmodule |
It seems that |
@swift-ci please test |
1864067
to
62e1d61
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
25c849b
to
99ddef3
Compare
@swift-ci please test |
99ddef3
to
2c6d20f
Compare
@swift-ci please test |
@swift-ci please test Linux platform |
2c6d20f
to
8787c66
Compare
@swift-ci please test |
8787c66
to
e98ba47
Compare
@swift-ci please test |
@swift-ci please test Linux platform |
Please test with following PR: @swift-ci please test Linux platform |
2 similar comments
Please test with following PR: @swift-ci please test Linux platform |
Please test with following PR: @swift-ci please test Linux platform |
@swift-ci please test macOS platform |
This migrates Foundation to CMake 3.15.1 and uses the new export targets from libdispatch to enable simpler builds with better dependency tracking.
Ensure that we export the Foundation libraries, plutil, and uuid for users of Foundation against the build tree.
e98ba47
to
388e84a
Compare
@swift-ci please test |
This migrates Foundation to CMake 3.15.1 and uses the new export targets from
libdispatch to enable simpler builds with better dependency tracking.