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
[SR-5428] New compiler crash introduced in Xcode 9 beta 3 #3835
Comments
I'm seeing
on master, which still seems wrong. @xedin, does this look familiar? |
Compiles just fine now after PR apple/swift#10887 went in. CharlesS (JIRA User) Could you please try it out with the nightly build to verify? |
Unfortunately, the trunk is still failing to compile for me: [29/860] Building CXX object lib/Clang...tClangImporter.dir/ClangImporter.cpp.o
FAILED: lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/ClangImporter -I/Users/##redacted##/Development/swift/swift/lib/ClangImporter -Iinclude -I/Users/##redacted##/Development/swift/swift/include -I/Users/##redacted##/Development/swift/llvm/include -I/Users/##redacted##/Development/swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/include -I/Users/##redacted##/Development/swift/build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/##redacted##/Development/swift/llvm/tools/clang/include -I/Users/##redacted##/Development/swift/cmark/src -I/Users/##redacted##/Development/swift/build/Ninja-RelWithDebInfoAssert/cmark-macosx-x86_64/src -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O2 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -UNDEBUG -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -arch x86_64 -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O2 -g -UNDEBUG -MD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o -c /Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1335:39: error: no member named 'IndexStorePath' in 'clang::FrontendOptions'
if (!emitInstance.getFrontendOpts().IndexStorePath.empty()) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1337:7: error: no member named 'createIndexDataRecordingAction' in namespace 'clang::index'
createIndexDataRecordingAction(emitInstance.getFrontendOpts(),
^
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1430:22: error: no member named 'IndexStorePath' in 'clang::FrontendOptions'
if (!clangFEOpts.IndexStorePath.empty()) {
~~~~~~~~~~~ ^
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1434:53: error: no member named 'IndexStorePath' in 'clang::FrontendOptions'
preservedIndexStorePathOption = clangFEOpts.IndexStorePath;
~~~~~~~~~~~ ^
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1435:21: error: no member named 'IndexStorePath' in 'clang::FrontendOptions'
clangFEOpts.IndexStorePath.clear();
~~~~~~~~~~~ ^
/Users/##redacted##/Development/swift/swift/lib/ClangImporter/ClangImporter.cpp:1462:19: error: no member named 'IndexStorePath' in 'clang::FrontendOptions'
clangFEOpts.IndexStorePath = preservedIndexStorePathOption;
~~~~~~~~~~~ ^
6 errors generated.
[36/860] Building CXX object lib/Front...iftFrontendTool.dir/FrontendTool.cpp.o
ninja: build stopped: subcommand failed.
utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting |
That means you need to update your LLVM and Clang checkouts as well. |
Git pull on both isn't sufficient? |
It should be. Are you on the right branch? https://github.com/apple/swift-clang/blob/stable/include/clang/Frontend/FrontendOptions.h#L215 |
Environment
Xcode 9 beta 3
Can't verify against trunk, as it is currently failing to compile
Additional Detail from JIRA
md5: 2cd1d034823942311113b26acfef3307
Issue Description:
Passing a block to OperationQueue.addOperation() as an anonymous closure argument results in a compiler crash:
As this crash did not occur in Xcode 9 beta 2, it may be considered as a regression.
The text was updated successfully, but these errors were encountered: