Skip to content
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-241] Swift build fails with clang errors #42863

Closed
swift-ci opened this issue Dec 15, 2015 · 8 comments
Closed

[SR-241] Swift build fails with clang errors #42863

swift-ci opened this issue Dec 15, 2015 · 8 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-241
Radar None
Original Reporter tmandry (JIRA User)
Type Bug
Status Closed
Resolution Invalid

Attachment: Download

Environment

OS X 10.11.1
swift commit 226a825

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 27706c50b28babc989641352345a0e03

Issue Description:

Swift builds (including clean builds) are failing for me right now. Here are the errors:

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/tyler/code/swift/build/Ninja-DebugAssert/swift-macosx-x86_64
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangDiagnosticConsumer.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangDiagnosticConsumer.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangDiagnosticConsumer.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangDiagnosticConsumer.cpp.o -c /Users/tyler/code/swift/swift/lib/ClangImporter/ClangDiagnosticConsumer.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ClangDiagnosticConsumer.cpp:14:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:238:62: error: non-virtual member function marked 'override' hides virtual member function
                              llvm::BitstreamWriter &stream) override;
                                                             ^
/Users/tyler/code/swift/llvm/tools/clang/include/clang/Serialization/ModuleFileExtension.h:123:16: note: hidden overloaded virtual function 'clang::ModuleFileExtensionWriter::writeExtensionContents' declared here: different number of parameters (1 vs 2)
  virtual void writeExtensionContents(llvm::BitstreamWriter &Stream) = 0;
               ^
1 error generated.
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/SwiftLookupTable.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/SwiftLookupTable.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/SwiftLookupTable.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/SwiftLookupTable.cpp.o -c /Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.cpp:17:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:35: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                  ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:22: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                     ^~~~~~~~~~~
                     fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.cpp:17:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:37: error: 'SwiftLookupTable' does not refer to a value
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:55: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:37: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:24: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                       ^~~~~~~~~~~
                       fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.cpp:17:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:39: error: 'SwiftLookupTable' does not refer to a value
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:57: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                                        ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:237:38: error: no type named 'Sema' in namespace 'clang'
  void writeExtensionContents(clang::Sema &sema,
                              ~~~~~~~^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:225:7: warning: 'swift::SwiftLookupTableWriter' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
class SwiftLookupTableWriter : public clang::ModuleFileExtensionWriter {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.cpp:445:30: error: out-of-line definition of 'writeExtensionContents' does not match any declaration in 'swift::SwiftLookupTableWriter'
void SwiftLookupTableWriter::writeExtensionContents(
                             ^~~~~~~~~~~~~~~~~~~~~~
1 warning and 10 errors generated.
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportMacro.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportMacro.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportMacro.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportMacro.cpp.o -c /Users/tyler/code/swift/swift/lib/ClangImporter/ImportMacro.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportMacro.cpp:18:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:35: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                  ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:22: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                     ^~~~~~~~~~~
                     fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportMacro.cpp:18:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:37: error: 'SwiftLookupTable' does not refer to a value
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:55: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:37: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:24: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                       ^~~~~~~~~~~
                       fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportMacro.cpp:18:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:39: error: 'SwiftLookupTable' does not refer to a value
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:57: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                                        ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:237:38: error: no type named 'Sema' in namespace 'clang'
  void writeExtensionContents(clang::Sema &sema,
                              ~~~~~~~^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:225:7: warning: 'swift::SwiftLookupTableWriter' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
class SwiftLookupTableWriter : public clang::ModuleFileExtensionWriter {
      ^
1 warning and 9 errors generated.
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportType.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportType.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportType.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportType.cpp.o -c /Users/tyler/code/swift/swift/lib/ClangImporter/ImportType.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportType.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:35: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                  ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:22: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                     ^~~~~~~~~~~
                     fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportType.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:37: error: 'SwiftLookupTable' does not refer to a value
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:55: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:37: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:24: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                       ^~~~~~~~~~~
                       fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportType.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:39: error: 'SwiftLookupTable' does not refer to a value
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:57: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                                        ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:237:38: error: no type named 'Sema' in namespace 'clang'
  void writeExtensionContents(clang::Sema &sema,
                              ~~~~~~~^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:225:7: warning: 'swift::SwiftLookupTableWriter' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
class SwiftLookupTableWriter : public clang::ModuleFileExtensionWriter {
      ^
1 warning and 9 errors generated.
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportDecl.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -MT lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportDecl.cpp.o -MF lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportDecl.cpp.o.d -o lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ImportDecl.cpp.o -c /Users/tyler/code/swift/swift/lib/ClangImporter/ImportDecl.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportDecl.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:35: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                  ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:22: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                     ^~~~~~~~~~~
                     fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportDecl.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:37: error: 'SwiftLookupTable' does not refer to a value
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:227:55: error: expected expression
  std::function<void(clang::Sema &, SwiftLookupTable &)> PopulateTable;
                                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:37: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                    ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:24: error: no member named 'Sema' in namespace 'clang'; did you mean 'fma'?
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                       ^~~~~~~~~~~
                       fma
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:554:15: note: 'fma' declared here
extern double fma(double, double, double);
              ^
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImportDecl.cpp:17:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:39: error: 'SwiftLookupTable' does not refer to a value
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:64:7: note: declared here
class SwiftLookupTable {
      ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:232:57: error: expected expression
    std::function<void(clang::Sema &, SwiftLookupTable &)> populateTable,
                                                        ^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:237:38: error: no type named 'Sema' in namespace 'clang'
  void writeExtensionContents(clang::Sema &sema,
                              ~~~~~~~^
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:225:7: warning: 'swift::SwiftLookupTableWriter' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
class SwiftLookupTableWriter : public clang::ModuleFileExtensionWriter {
      ^
1 warning and 9 errors generated.
[54/593] Building CXX object lib/ClangImporter/CMakeFiles/swiftClangImporter.dir/ClangImporter.cpp.o
FAILED: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++   -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -g -Ilib/ClangImporter -I/Users/tyler/code/swift/swift/lib/ClangImporter -I/Users/tyler/code/swift/swift/include -Iinclude -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/include -I/Users/tyler/code/swift/llvm/include -I/Users/tyler/code/swift/build/Ninja-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/tyler/code/swift/llvm/tools/clang/include -I/Users/tyler/code/swift/cmark/src -I/Users/tyler/code/swift/build/Ninja-DebugAssert/cmark-macosx-x86_64/src     -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -arch x86_64 -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -O0 -g -UNDEBUG -MMD -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/tyler/code/swift/swift/lib/ClangImporter/ClangImporter.cpp
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ClangImporter.cpp:18:
In file included from /Users/tyler/code/swift/swift/lib/ClangImporter/ImporterImpl.h:20:
/Users/tyler/code/swift/swift/lib/ClangImporter/SwiftLookupTable.h:238:62: error: non-virtual member function marked 'override' hides virtual member function
                              llvm::BitstreamWriter &stream) override;
                                                             ^
/Users/tyler/code/swift/llvm/tools/clang/include/clang/Serialization/ModuleFileExtension.h:123:16: note: hidden overloaded virtual function 'clang::ModuleFileExtensionWriter::writeExtensionContents' declared here: different number of parameters (1 vs 2)
  virtual void writeExtensionContents(llvm::BitstreamWriter &Stream) = 0;
               ^
/Users/tyler/code/swift/swift/lib/ClangImporter/ClangImporter.cpp:4428:16: error: allocating an object of abstract class type 'swift::SwiftLookupTableWriter'
           new SwiftLookupTableWriter(this, populateTable, writer));
               ^
/Users/tyler/code/swift/llvm/tools/clang/include/clang/Serialization/ModuleFileExtension.h:123:16: note: unimplemented pure virtual method 'writeExtensionContents' in 'SwiftLookupTableWriter'
  virtual void writeExtensionContents(llvm::BitstreamWriter &Stream) = 0;
               ^
2 errors generated.
[54/593] Building CXX object lib/Driver/CMakeFiles/swiftDriver.dir/Driver.cpp.o
ninja: build stopped: subcommand failed.
utils/build-script: command terminated with a non-zero exit status 1, aborting

Full output in the attached file.

@swift-ci
Copy link
Collaborator Author

Comment by Tyler Mandry (JIRA)

Also found this build log online... https://gist.github.com/harlanhaskins/fa2ddd24e1f1d9745034

@belkadan
Copy link
Contributor

@DougGregor, is this related to your recent changes?

@DougGregor
Copy link
Member

You need to update your swift-clang repo. There were synchronized changes.

@DougGregor
Copy link
Member

As noted above, please update your swift-clang repository to pick up synchronized changes there.

@swift-ci
Copy link
Collaborator Author

Comment by Tyler Mandry (JIRA)

Okay done, thanks. I used the utils/update-checkout script to update all the other repos, is there a reason it doesn't update clang as well?

@swift-ci
Copy link
Collaborator Author

Comment by Tyler Mandry (JIRA)

Hm, from the code it looks like it is supposed to. I'll try to look into why it didn't..

@DougGregor
Copy link
Member

... it should have updated Clang. This is the commit I'm referring to:

commit 53d04af5ce14310813e7f4a5db9a949e70829f72
Author: Douglas Gregor <dgregor@apple.com>
Date: Tue Dec 8 22:43:32 2015 +0000

Module file extensions: pass a Sema through to the extension writer.

Module file extensions are likely to need access to
Sema/Preprocessor/ASTContext, and cannot get it through other
sources.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255065 91177308-0d34-0410-b5e6-96231b3b80d8

@swift-ci
Copy link
Collaborator Author

Comment by Tyler Mandry (JIRA)

Actually it looks like you have to use the --all flag for update-checkout to update clang.

Not sure why, I guess because it could mean you have to do a clean build.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants