<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">What version of Xcode are you using to _build_ Swift 2.2? You might need an older Xcode for that.<div class=""><br class=""></div><div class="">Slava<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 19, 2017, at 11:24 AM, leanne <<a href="mailto:leanne63.dev@gmail.com" class="">leanne63.dev@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Yes, I could, Slava. I was hoping not to, though. That's the point of using swiftenv.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Nov 18, 2017 at 6:24 PM, Slava Pestov <span dir="ltr" class=""><<a href="mailto:spestov@apple.com" target="_blank" class="">spestov@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Instead of building Swift yourself, can you download and run Xcode 7 instead?<div class=""><br class=""></div><div class="">Slava<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Nov 18, 2017, at 7:19 PM, leanne via swift-dev <<a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a>> wrote:</div><br class="m_-2137417395293518521Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-top:0px" class="">I'm using swiftenv (<a href="https://github.com/kylef/swiftenv" target="_blank" class="">https://github.com/kylef/<wbr class="">swiftenv</a>) to install Swift versions 2 and 3, so I can work with some older projects.</p><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;margin-top:0px" class="">Swift 3.1.1 installed perfectly first try. Been through a few iterations, though, trying to install 2.2.1.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px" class="">Installed CMake 3.9.4, Ninja 1.8.2, then Python 3.6.3. Seemed to almost make it through - then failed again, and I'm not sure what's happening with this one.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px" class="">I'd appreciate any help you can offer! Here is the end of my log, starting with the failure:</p><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:11.899999618530273px;margin-top:0px;word-wrap:normal;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(36,41,46);margin-bottom:0px" class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class="">[136/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/<wbr class="">SILGenProfiling.cpp.o
FAILED: lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/<wbr class="">SILGenProfiling.cpp.o
/Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/SILGen -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">swift/lib/SILGen -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">swift/include -Iinclude -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">build/Ninja-ReleaseAssert/<wbr class="">llvm-macosx-x86_64/include -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/llvm/<wbr class="">include -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">build/Ninja-ReleaseAssert/<wbr class="">llvm-macosx-x86_64/tools/<wbr class="">clang/include -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/llvm/<wbr class="">tools/clang/include -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">cmark/src -I/Users/username/.swiftenv/<wbr class="">tmp/swiftenv-build-2.2.1/<wbr class="">build/Ninja-ReleaseAssert/<wbr class="">cmark-macosx-x86_64/src -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 -Werror=date-time -std=c++11 -fcolor-diagnostics -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -O3 -UNDEBUG -fno-exceptions -fno-rtti -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode.app/<wbr class="">Contents/Developer/Platforms/<wbr class="">MacOSX.platform/Developer/<wbr class="">SDKs/MacOSX10.13.sdk -arch x86_64 -F /Applications/Xcode.app/<wbr class="">Contents/Developer/Platforms/<wbr class="">MacOSX.platform/Developer/<wbr class="">SDKs/MacOSX10.13.sdk/../../../<wbr class="">Developer/Library/Frameworks -mmacosx-version-min=10.9 -O2 -momit-leaf-frame-pointer -g0 -UNDEBUG -MD -MT lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/<wbr class="">SILGenProfiling.cpp.o -MF lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/<wbr class="">SILGenProfiling.cpp.o.d -o lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/<wbr class="">SILGenProfiling.cpp.o -c /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">lib/SILGen/SILGenProfiling.cpp
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">lib/SILGen/SILGenProfiling.<wbr class="">cpp:13:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">lib/SILGen/SILGenProfiling.h:<wbr class="">16:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/llvm/<wbr class="">include/llvm/ADT/DenseMap.h:<wbr class="">17:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/llvm/<wbr class="">include/llvm/ADT/DenseMapInfo.<wbr class="">h:17:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/llvm/<wbr class="">include/llvm/ADT/ArrayRef.h:<wbr class="">13:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/llvm/<wbr class="">include/llvm/ADT/Hashing.h:48:
In file included from /Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/build/<wbr class="">Ninja-ReleaseAssert/llvm-<wbr class="">macosx-x86_64/include/llvm/<wbr class="">Support/DataTypes.h:35:
In file included from /Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">include/c++/v1/cmath:305:
In file included from /Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">include/c++/v1/math.h:309:
/Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">include/c++/v1/type_traits:<wbr class="">1301:38: error: incomplete type 'swift::Expr' used in type trait expression
: public integral_constant<bool, __is_abstract(_Tp)> {};
^
/Applications/Xcode.app/<wbr class="">Contents/Developer/Toolchains/<wbr class="">XcodeDefault.xctoolchain/usr/<wbr class="">include/c++/v1/type_traits:<wbr class="">1374:39: note: in instantiation of template class 'std::__1::is_abstract<swift::<wbr class="">Expr>' requested here
!is_abstract<_T2>::value> {};
^
/Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">include/swift/Basic/<wbr class="">NullablePtr.h:40:22: note: in instantiation of template class 'std::__1::is_convertible<<wbr class="">swift::Expr, swift::Expr>' requested here
std::is_convertible<OtherT, T>::value,
^
/Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">include/swift/Basic/<wbr class="">NullablePtr.h:30:7: note: while substituting deduced template arguments into function template 'NullablePtr' [with OtherT = swift::Expr]
class NullablePtr {
^
/Users/username/.swiftenv/tmp/<wbr class="">swiftenv-build-2.2.1/swift/<wbr class="">include/swift/AST/ASTNode.h:<wbr class="">24:9: note: forward declaration of 'swift::Expr'
class Expr;
^
1 error generated.
[137/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenExpr.<wbr class="">cpp.o
[138/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenLValue.<wbr class="">cpp.o
[139/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenPoly.<wbr class="">cpp.o
[140/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenProlog.<wbr class="">cpp.o
[141/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenStmt.<wbr class="">cpp.o
[142/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenType.<wbr class="">cpp.o
[143/665] Building CXX object lib/SILGen/CMakeFiles/<wbr class="">swiftSILGen.dir/SILGenPattern.<wbr class="">cpp.o
ninja: build stopped: subcommand failed.
./utils/build-script: command terminated with a non-zero exit status 1, aborting
</code></pre><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class=""><br class=""></code></div><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class="">Kyle says he's able to reproduce this, and since swiftenv is a minimal wrapper around the Swift build process, he believes it to be a Swift/High Sierra issue (<a href="https://github.com/kylef/swiftenv/issues/103#issuecomment-345432864" target="_blank" class="">https://github.com/kylef/<wbr class="">swiftenv/issues/103#<wbr class="">issuecomment-345432864</a>).</code></div><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class=""><br class=""></code></div><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class="">Any thoughts on what we might do to fix this so I can build Swift 2.2.1 on High Sierra?</code></div><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class=""><br class=""></code></div><div class=""><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px;margin:0px;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class="">- leanne</code></div></div></div></div>
______________________________<wbr class="">_________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" target="_blank" class="">swift-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>