Hi everybody,
A couple of days ago I stopped being able to build swift, which is weird.
The configuration is MacOS 10.5.5 with Xcode 11.5 (Version 11.5 (11E608c)) and the default toolchain (although I have had the same thing happen with other toolchains, and swift also won't build in the Big Sur partition with the Xcode beta but I get different errors, still maybe related to XCText, but that' s for another day.)
I ran update-checkout with everything in master (or swift/master for llvm). Then just run build-script, building with ninja in the build/Ninja-DebugAssert. I deleted the whole Ninja-DebugAssert directory to force a really clean build.
The specific error I'm getting is no such module at
import _SwiftAppKitOverlayShims
I have been trying to figure this out but I am still stuck. I am getting it consistently with different toolchains and stuff. I deleted the Xcode Beta, some other toolchains, Xcode itself, then reinstalled, ran Xcode-select -s to ensure I had the right stuff etc and I'm still getting a failure here.
The full error is below (twice, because it fails in parallel.)
Is anybody else seeing this or does anybody see something I am missing?
Like I said I got a failure in the Big Sur partition around the general area of XCTest with the Xcode beta and a fresh checkout but I decided to leave that alone for now.
Thanks!
Dan
[1115/1639][ 68%][1270.913s] Generating /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftmodule
FAILED: lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftmodule lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftdoc lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftinterface
cd /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest && /usr/local/Cellar/cmake/3.17.3/bin/cmake -E remove -f /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftmodule /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftdoc /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftinterface && /usr/local/Cellar/cmake/3.17.3/bin/cmake -E make_directory /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule && /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/dfs/swift-source/swift/utils/line-directive @/Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/Wn56x.txt -- /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./bin/swiftc -emit-module -o /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftmodule -avoid-emit-module-source-info -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -target x86_64-apple-macosx10.9 -resource-dir /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/../../../Developer/Library/Frameworks -Onone -g -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -module-cache-path /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enforce-exclusivity=unchecked -module-name XCTest -swift-version 5 -swift-version 5 -autolink-force-load -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xfrontend -module-interface-preserve-types-as-written -warn-implicit-overrides -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/PrivateFrameworks/ -module-link-name swiftXCTest -whole-module-optimization -parse-as-library -I /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx -emit-module-interface-path /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx/XCTest.swiftmodule/x86_64-apple-macos.swiftinterface -Xfrontend -experimental-skip-non-inlinable-function-bodies @/Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/Wn56x.txt
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:7:8: error: no such module '_SwiftAppKitOverlayShims'
import _SwiftAppKitOverlayShims
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:1:1: error: failed to build module 'AppKit' from its module interface; the compiler that produced it, 'Apple Swift version 5.2 (swiftlang-1103.8.25.8 clang-1103.0.30.20)', may have used features that aren't supported by this compiler, 'Swift version 5.3-dev (LLVM f9957f081870012, Swift 7976162e56d628a)'
// swift-interface-format-version: 1.0
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:7:8: error: no such module '_SwiftAppKitOverlayShims'
import _SwiftAppKitOverlayShims
^
[1116/1639][ 68%][1273.818s] Compiling /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/OSX/x86_64/XCTest.o
FAILED: stdlib/public/Darwin/XCTest/OSX/x86_64/XCTest.o
cd /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest && /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Users/dfs/swift-source/swift/utils/line-directive @/Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/Wn56x.txt -- /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./bin/swiftc -c -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -target x86_64-apple-macosx10.9 -resource-dir /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/../../../Developer/Library/Frameworks -Onone -g -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -module-cache-path /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enforce-exclusivity=unchecked -module-name XCTest -swift-version 5 -swift-version 5 -autolink-force-load -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xfrontend -module-interface-preserve-types-as-written -warn-implicit-overrides -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/PrivateFrameworks/ -module-link-name swiftXCTest -whole-module-optimization -parse-as-library -I /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/./lib/swift/macosx -o /Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/OSX/x86_64/XCTest.o @/Users/dfs/swift-source/build/Ninja-DebugAssert/swift-macosx-x86_64/stdlib/public/Darwin/XCTest/Wn56x.txt
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:7:8: error: no such module '_SwiftAppKitOverlayShims'
import _SwiftAppKitOverlayShims
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:1:1: error: failed to build module 'AppKit' from its module interface; the compiler that produced it, 'Apple Swift version 5.2 (swiftlang-1103.8.25.8 clang-1103.0.30.20)', may have used features that aren't supported by this compiler, 'Swift version 5.3-dev (LLVM f9957f081870012, Swift 7976162e56d628a)'
// swift-interface-format-version: 1.0
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/AppKit.swiftmodule/x86_64.swiftinterface:7:8: error: no such module '_SwiftAppKitOverlayShims'
import _SwiftAppKitOverlayShims
^