<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hm. The benchmark targets don't seem to be passing a -module-cache-path option, so it's going to be buried in your /var/folders directory. Here you go:</div><div class=""><br class=""></div><div class="">rm -rf $(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang*</div><div class=""><br class=""></div><div class="">Jordan</div><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 30, 2017, at 13:54, David Zarzycki <<a href="mailto:zarzycki@icloud.com" class="">zarzycki@icloud.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Jordan,<div class=""><br class=""></div><div class="">Thanks for the quick response. Here you go:</div><div class=""><br class=""></div><div class=""><a href="https://bugs.swift.org/browse/SR-5805" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>https://bugs.swift.org/browse/SR-5805</a></div><div class=""><br class=""></div><div class="">How do I clear the cache again?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">Dave</div><div class=""><br class=""></div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Aug 30, 2017, at 16:35, Jordan Rose <<a href="mailto:jordan_rose@apple.com" class="">jordan_rose@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Crashes in clang::ASTReader usually mean "clear your module cache". That does mean there's a bug, though, that we're not putting the revision numbers into the module hash. Mind filing an SR to track that, since I thought we were?<br class=""><br class="">Jordan<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Aug 30, 2017, at 13:30, David Zarzycki via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:<br class=""><br class="">Anybody else seeing top-of-tree (af34e394e7) fail to build? I’m on macOS 17A358a with Xcode 9M214v (beta 6) and building like so:<br class=""><br class="">./utils/build-script --build-subdir="$(dirname $PWD)/t" --llvm-targets-to-build X86 --skip-ios --skip-tvos --skip-watchos -r<br class=""><br class="">The build crash is below. Any ideas?<br class=""><br class=""><br class="">swiftc -c -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -target x86_64-apple-macosx10.9 -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/../../../Developer/Library/Frameworks -O -no-link-objc-runtime -force-single-frontend-invocation -parse-as-library -module-name DriverUtils -emit-module -emit-module-path /Volumes/data/wt/master/t/swift-macosx-x86_64/benchmark/O-x86_64-apple-macosx10.9/DriverUtils.swiftmodule -o /Volumes/data/wt/master/t/swift-macosx-x86_64/benchmark/O-x86_64-apple-macosx10.9/DriverUtils.o /Volumes/data/wt/master/swift/benchmark/utils/DriverUtils.swift /Volumes/data/wt/master/swift/benchmark/utils/ArgParse.swift<br class="">Assertion failed: (idx < size()), function operator[], file /Volumes/data/wt/master/llvm/include/llvm/ADT/SmallVector.h, line 153.<br class="">0 swift 0x00000001102a0a38 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40<br class="">1 swift 0x000000011029f986 llvm::sys::RunSignalHandlers() + 86<br class="">2 swift 0x00000001102a0ffe SignalHandler(int) + 366<br class="">3 libsystem_platform.dylib 0x00007fff59b53f5a _sigtramp + 26<br class="">4 libsystem_platform.dylib 0x00000001140f9588 _sigtramp + 3126482504<br class="">5 libsystem_c.dylib 0x00007fff5997f32a abort + 127<br class="">6 libsystem_c.dylib 0x00007fff59947380 basename_r + 0<br class="">7 swift 0x000000010f7adb4a clang::ASTReader::ReadString(llvm::SmallVector<unsigned long long, 64u> const&, unsigned int&) + 682<br class="">8 swift 0x000000010f79fc0e clang::ASTReader::ParseLanguageOptions(llvm::SmallVector<unsigned long long, 64u> const&, bool, clang::ASTReaderListener&, bool) + 12110<br class="">9 swift 0x000000010f79cbda clang::ASTReader::ReadOptionsBlock(llvm::BitstreamCursor&, unsigned int, bool, clang::ASTReaderListener&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 250<br class="">10 swift 0x000000010f7a1628 clang::ASTReader::ReadControlBlock(clang::serialization::ModuleFile&, llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&, clang::serialization::ModuleFile const*, unsigned int) + 1048<br class="">11 swift 0x000000010f7a371d clang::ASTReader::ReadASTCore(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, clang::serialization::ModuleFile*, llvm::SmallVectorImpl<clang::ASTReader::ImportedModule>&, long long, long, clang::ASTFileSignature, unsigned int) + 2253<br class="">12 swift 0x000000010f7af1a8 clang::ASTReader::ReadAST(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int, llvm::SmallVectorImpl<clang::ASTReader::ImportedSubmodule>*) + 296<br class="">13 swift 0x000000010f51633e clang::CompilerInstance::loadModule(clang::SourceLocation, llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, clang::Module::NameVisibilityKind, bool) + 1886<br class="">14 swift 0x000000010e30d9a0 swift::ClangImporter::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >)::$_4::operator()(llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, bool) const + 640<br class="">15 swift 0x000000010e30d58e swift::ClangImporter::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 462<br class="">16 swift 0x000000010e3df8a3 swift::ASTContext::getModule(llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 115<br class="">17 swift 0x000000010e25b13a swift::ModuleFile::getModule(llvm::ArrayRef<swift::Identifier>) + 330<br class="">18 swift 0x000000010e28900b swift::ModuleFile::associateWithFileContext(swift::FileUnit*, swift::SourceLoc) + 1579<br class="">19 swift 0x000000010e2e0785 swift::SerializedModuleLoader::loadAST(swift::ModuleDecl&, llvm::Optional<swift::SourceLoc>, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >, std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_delete<llvm::MemoryBuffer> >, bool) + 629<br class="">20 swift 0x000000010e2e2e32 swift::SerializedModuleLoader::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 466<br class="">21 swift 0x000000010e3df8a3 swift::ASTContext::getModule(llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 115<br class="">22 swift 0x000000010e3df95f swift::ASTContext::getStdlibModule(bool) + 63<br class="">23 swift 0x000000010deef7e6 swift::CompilerInstance::performSema() + 454<br class="">24 swift 0x000000010d47014c performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 1740<br class="">25 swift 0x000000010d46eb70 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3408<br class="">26 swift 0x000000010d42fc30 main + 3184<br class="">27 libdyld.dylib 0x00007fff598d3145 start + 1<br class="">_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>