Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CompileSwift normal x86_64 /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift
cd /Users/bgesiak/GitHub/apple/swift-corelibs-xctest
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a.xctoolchain/usr/bin/swift -frontend -c /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTimeUtilities.swift -primary-file /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCaseProvider.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestExpectation.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTAssert.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestMain.swift -target x86_64-apple-macosx10.11 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug -F /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug -enable-testing -g -module-cache-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-generated-files.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-own-target-headers.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-project-headers.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug/include -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/DerivedSources/x86_64 -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/bgesiak/GitHub/apple/swift-corelibs-xctest -emit-module-doc-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase~partial.swiftdoc -Onone -module-name SwiftXCTest -emit-module-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase~partial.swiftmodule -serialize-diagnostics-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.dia -emit-dependencies-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.d -emit-reference-dependencies-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.swiftdeps -o /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.o
Assertion failed: ((!FileContext || issue != Status::Malformed) && "error deserializing an individual record"), function error, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/include/swift/Serialization/ModuleFile.h, line 361.
0 swift 0x00000001048f0a8b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1 swift 0x00000001048efd46 llvm::sys::RunSignalHandlers() + 70
2 swift 0x00000001048f1132 SignalHandler(int) + 322
3 libsystem_platform.dylib 0x00007fff8b1deeaa _sigtramp + 26
4 libsystem_platform.dylib 0x00007fff6e14c945 _sigtramp + 3807828661
5 swift 0x00000001048f0f46 abort + 22
6 swift 0x00000001048f0f21 __assert_rtn + 81
7 swift 0x00000001024f83eb swift::ModuleFile::resolveCrossReference(swift::ModuleDecl*, unsigned int) + 5755
8 swift 0x00000001024eb8e2 swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 10802
9 swift 0x00000001024f17d4 swift::ModuleFile::getType(llvm::PointerEmbeddedInt<unsigned int, 31>) + 1012
10 swift 0x00000001024f27c3 swift::ModuleFile::getType(llvm::PointerEmbeddedInt<unsigned int, 31>) + 5091
11 swift 0x00000001024ed251 swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 17313
12 swift 0x00000001024f0d84 swift::ModuleFile::maybeReadPattern() + 868
13 swift 0x00000001024f0ec1 swift::ModuleFile::maybeReadPattern() + 1185
14 swift 0x00000001024ed36b swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::Optional<swift::DeclContext*>) + 17595
15 swift 0x00000001024f6cb1 swift::ModuleFile::readMembers(llvm::SmallVectorImpl<swift::Decl*>&) + 273
16 swift 0x00000001024fa065 swift::ModuleFile::loadAllMembers(swift::Decl*, unsigned long long) + 245
17 swift 0x00000001028e1e1b swift::IterableDeclContext::loadAllMembers() const + 91
18 swift 0x00000001028d062c swift::NominalTypeDecl::getMembers(bool) const + 28
19 swift 0x000000010291955a swift::NominalTypeDecl::lookupDirect(swift::DeclName, bool) + 90
20 swift 0x0000000102917ee9 swift::DeclContext::lookupQualified(swift::Type, swift::DeclName, unsigned int, swift::LazyResolver*, llvm::SmallVectorImpl<swift::ValueDecl*>&) const + 3369
21 swift 0x00000001027b9b9c swift::TypeChecker::lookupMember(swift::DeclContext*, swift::Type, swift::DeclName, swift::OptionSet<swift::NameLookupFlags, unsigned int>) + 716
22 swift 0x00000001026cc7ee swift::constraints::ConstraintSystem::lookupMember(swift::Type, swift::DeclName) + 286
23 swift 0x000000010272f736 swift::constraints::ConstraintSystem::performMemberLookup(swift::constraints::ConstraintKind, swift::DeclName, swift::Type, swift::constraints::ConstraintLocator*, bool) + 2438
24 swift 0x00000001027311bd swift::constraints::ConstraintSystem::simplifyMemberConstraint(swift::constraints::Constraint const&) + 429
25 swift 0x00000001027322da swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) + 74
26 swift 0x00000001026cd28c swift::constraints::ConstraintSystem::addConstraint(swift::constraints::Constraint*, bool, bool) + 28
27 swift 0x000000010271384a swift::ASTVisitor<(anonymous namespace)::ConstraintGenerator, swift::Type, void, void, void, void, void>::visit(swift::Expr*) + 12794
28 swift 0x000000010271608f (anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*) + 63
29 swift 0x000000010286b23c (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) + 76
30 swift 0x00000001028692eb (anonymous namespace)::Traversal::visit(swift::Expr*) + 219
31 swift 0x00000001028686f5 swift::Expr::walk(swift::ASTWalker&) + 53
32 swift 0x000000010270f6b7 swift::constraints::ConstraintSystem::generateConstraints(swift::Expr*) + 199
33 swift 0x0000000102773b5f swift::TypeChecker::solveForExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::FreeTypeVariableBinding, swift::ExprTypeCheckListener*, swift::constraints::ConstraintSystem&, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>) + 271
34 swift 0x0000000102779b28 swift::TypeChecker::typeCheckExpression(swift::Expr*&, swift::DeclContext*, swift::Type, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener*) + 568
35 swift 0x000000010277ad49 swift::TypeChecker::typeCheckBinding(swift::Pattern*&, swift::Expr*&, swift::DeclContext*) + 169
36 swift 0x000000010277af40 swift::TypeChecker::typeCheckPatternBinding(swift::PatternBindingDecl*, unsigned int) + 288
37 swift 0x00000001027985aa validatePatternBindingDecl(swift::TypeChecker&, swift::PatternBindingDecl*, unsigned int) + 858
38 swift 0x000000010279446e (anonymous namespace)::DeclChecker::visit(swift::Decl*) + 542
39 swift 0x0000000102794237 swift::TypeChecker::typeCheckDecl(swift::Decl*, bool) + 151
40 swift 0x00000001027e0bc5 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 437
41 swift 0x00000001027dfee9 (anonymous namespace)::StmtChecker::typeCheckBody(swift::BraceStmt*&) + 25
42 swift 0x00000001027df0ef swift::TypeChecker::typeCheckFunctionBodyUntil(swift::FuncDecl*, swift::SourceLoc) + 383
43 swift 0x00000001027def21 swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 49
44 swift 0x00000001027dfb7a swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 138
45 swift 0x0000000102760296 typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) + 166
46 swift 0x0000000102760f7a swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1578
47 swift 0x00000001025a3827 swift::CompilerInstance::performSema() + 4599
48 swift 0x0000000101ff821d frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 3533
49 swift 0x0000000101ff33d9 main + 2937
50 libdyld.dylib 0x00007fff95d8e5ad start + 1
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a.xctoolchain/usr/bin/swift -frontend -c /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTimeUtilities.swift -primary-file /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCaseProvider.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestExpectation.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTAssert.swift /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestMain.swift -target x86_64-apple-macosx10.11 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug -F /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug -enable-testing -g -module-cache-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-generated-files.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-own-target-headers.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/SwiftXCTest-project-headers.hmap -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Products/Debug/include -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/DerivedSources/x86_64 -Xcc -I/Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/bgesiak/GitHub/apple/swift-corelibs-xctest -emit-module-doc-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase~partial.swiftdoc -Onone -module-name SwiftXCTest -emit-module-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase~partial.swiftmodule -serialize-diagnostics-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.dia -emit-dependencies-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.d -emit-reference-dependencies-path /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.swiftdeps -o /Users/bgesiak/Library/Developer/Xcode/DerivedData/XCTest-gdiiwlsynrssmkdgamrgfoqbjewl/Build/Intermediates/XCTest.build/Debug/SwiftXCTest.build/Objects-normal/x86_64/XCTestCase.o
1. While type-checking 'waitForExpectationsWithTimeout' at /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift:181:12
2. While type-checking declaration 0x7fc2a78a0780 at /Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift:203:9
3. While type-checking expression at [/Users/bgesiak/GitHub/apple/swift-corelibs-xctest/Sources/XCTest/XCTestCase.swift:203:23 - line:203:48] RangeText="NSRunLoop.currentRunLoop()"
4. While loading members for 'NSRunLoop' at <invalid loc>
5. While deserializing decl #10028 (PATTERN_BINDING_DECL)
6. While deserializing decl #10029 (VAR_DECL)
7. While deserializing decl #21933 (XREF)
8. Cross-reference to module 'CoreFoundation'
... CFRunLoop
@modocache
Copy link
Author

modocache commented Feb 26, 2016

@slavapestov
Copy link

slavapestov commented Feb 26, 2016

Wild guess: Maybe clang and swift are finding different versions of the Foundation module?

I recall seeing something like this recently...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment