Build errors


(George King) #1

Hello,

In an effort to isolate a different bug, I'm trying to build HEAD of master, and have encountered what looks to be a configuration error. Can somebody please point me in the right direction?

Here is the relevant build output - I can post a complete log if it would help. There are many "incomplete definition" errors; below is the first one.

Thanks! -george

swift/utils/build-script: using preset 'rel-dbg', which expands to swift/utils/build-script --release-debuginfo --
Building the standard library for: swift-stdlib-macosx-x86_64
Running Swift tests for: check-swift-macosx-x86_64

-- Build files have been written to: /Users/gwk/external/swift/_build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64
++ cmake_config_opt swift
++ product=swift
++ [[ Ninja == \X\c\o\d\e ]]
+ /usr/local/cmake/bin/cmake --build /Users/gwk/external/swift/_build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64 -- -j6 all swift-stdlib-macosx-x86_64
[6/646] Building CXX object lib/SILPasses/CMakeFiles/swiftSILPasses.dir/Scalar/ReleaseDevirtualizer.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 -Ilib/SILPasses -I/Users/gwk/external/swift/swift/lib/SILPasses -I/Users/gwk/external/swift/swift/include -Iinclude -I/Users/gwk/external/swift/_build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/include -I/Users/gwk/external/swift/llvm/include -I/Users/gwk/external/swift/_build/Ninja-RelWithDebInfoAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/gwk/external/swift/llvm/tools/clang/include -I/Users/gwk/external/swift/cmark/src -I/Users/gwk/external/swift/_build/Ninja-RelWithDebInfoAssert/cmark-macosx-x86_64/src -fno-stack-protector -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 -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O2 -g -UNDEBUG -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 -O2 -momit-leaf-frame-pointer -g -UNDEBUG -MMD -MT lib/SILPasses/CMakeFiles/swiftSILPasses.dir/Scalar/ReleaseDevirtualizer.cpp.o -MF lib/SILPasses/CMakeFiles/swiftSILPasses.dir/Scalar/ReleaseDevirtualizer.cpp.o.d -o lib/SILPasses/CMakeFiles/swiftSILPasses.dir/Scalar/ReleaseDevirtualizer.cpp.o -c /Users/gwk/external/swift/swift/lib/SILPasses/Scalar/ReleaseDevirtualizer.cpp
In file included from /Users/gwk/external/swift/swift/lib/SILPasses/Scalar/ReleaseDevirtualizer.cpp:14:
In file included from /Users/gwk/external/swift/swift/include/swift/SILPasses/Passes.h:20:
In file included from /Users/gwk/external/swift/swift/include/swift/SIL/SILModule.h:20:
In file included from /Users/gwk/external/swift/swift/include/swift/AST/ASTContext.h:21:
In file included from /Users/gwk/external/swift/swift/include/swift/AST/ArchetypeBuilder.h:22:
In file included from /Users/gwk/external/swift/swift/include/swift/AST/Identifier.h:21:
In file included from /Users/gwk/external/swift/llvm/include/llvm/ADT/ArrayRef.h:13:
In file included from /Users/gwk/external/swift/llvm/include/llvm/ADT/Hashing.h:49:
In file included from /Users/gwk/external/swift/llvm/include/llvm/Support/Host.h:17:
In file included from /Users/gwk/external/swift/llvm/include/llvm/ADT/StringMap.h:18:
In file included from /Users/gwk/external/swift/llvm/include/llvm/Support/Allocator.h:24:
In file included from /Users/gwk/external/swift/llvm/include/llvm/ADT/SmallVector.h:18:
/Users/gwk/external/swift/llvm/include/llvm/Support/AlignOf.h:39:5: error: field has incomplete type 'swift::ValueDecl'
  T t;
    ^


(Dmitri Gribenko) #2

Hi George,

Which branches are you using for llvm and clang? Should be 'stable'.

Dmitri

···

On Wed, Mar 23, 2016 at 9:11 AM, George King via swift-dev <swift-dev@swift.org> wrote:

Hello,

In an effort to isolate a different bug, I'm trying to build HEAD of master, and have encountered what looks to be a configuration error. Can somebody please point me in the right direction?

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(George King) #3

I am using stable for both, master for all of the others.
clang: 3e4d01d
llvm: 56e761d

···

On Mar 23, 2016, at 12:32 PM, Dmitri Gribenko via swift-dev <swift-dev@swift.org> wrote:

On Wed, Mar 23, 2016 at 9:11 AM, George King via swift-dev > <swift-dev@swift.org> wrote:

Hello,

In an effort to isolate a different bug, I'm trying to build HEAD of master, and have encountered what looks to be a configuration error. Can somebody please point me in the right direction?

Hi George,

Which branches are you using for llvm and clang? Should be 'stable'.

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev