<div dir="ltr">Yes, I could, Slava. I was hoping not to, though. That&#39;s the point of using swiftenv.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 18, 2017 at 6:24 PM, Slava Pestov <span dir="ltr">&lt;<a href="mailto:spestov@apple.com" target="_blank">spestov@apple.com</a>&gt;</span> wrote:<br><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">Instead of building Swift yourself, can you download and run Xcode 7 instead?<div><br></div><div>Slava<br><div><br><blockquote type="cite"><div><div class="h5"><div>On Nov 18, 2017, at 7:19 PM, leanne via swift-dev &lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt; wrote:</div><br class="m_-2137417395293518521Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr"><p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px;margin-top:0px">I&#39;m using swiftenv (<a href="https://github.com/kylef/swiftenv" target="_blank">https://github.com/kylef/<wbr>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,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px;margin-top:0px">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,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px">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&#39;m not sure what&#39;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,&quot;Segoe UI&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;;font-size:14px">I&#39;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,&quot;Liberation Mono&quot;,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"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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">[136/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/<wbr>SILGenProfiling.cpp.o
FAILED: lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/<wbr>SILGenProfiling.cpp.o 
/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>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>tmp/swiftenv-build-2.2.1/<wbr>swift/lib/SILGen -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/<wbr>swift/include -Iinclude -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/<wbr>build/Ninja-ReleaseAssert/<wbr>llvm-macosx-x86_64/include -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/llvm/<wbr>include -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/<wbr>build/Ninja-ReleaseAssert/<wbr>llvm-macosx-x86_64/tools/<wbr>clang/include -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/llvm/<wbr>tools/clang/include -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/<wbr>cmark/src -I/Users/username/.swiftenv/<wbr>tmp/swiftenv-build-2.2.1/<wbr>build/Ninja-ReleaseAssert/<wbr>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>Contents/Developer/Platforms/<wbr>MacOSX.platform/Developer/<wbr>SDKs/MacOSX10.13.sdk -arch x86_64 -F /Applications/Xcode.app/<wbr>Contents/Developer/Platforms/<wbr>MacOSX.platform/Developer/<wbr>SDKs/MacOSX10.13.sdk/../../../<wbr>Developer/Library/Frameworks -mmacosx-version-min=10.9 -O2 -momit-leaf-frame-pointer -g0 -UNDEBUG -MD -MT lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/<wbr>SILGenProfiling.cpp.o -MF lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/<wbr>SILGenProfiling.cpp.o.d -o lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/<wbr>SILGenProfiling.cpp.o -c /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>lib/SILGen/SILGenProfiling.cpp
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>lib/SILGen/SILGenProfiling.<wbr>cpp:13:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>lib/SILGen/SILGenProfiling.h:<wbr>16:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/<wbr>include/llvm/ADT/DenseMap.h:<wbr>17:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/<wbr>include/llvm/ADT/DenseMapInfo.<wbr>h:17:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/<wbr>include/llvm/ADT/ArrayRef.h:<wbr>13:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/<wbr>include/llvm/ADT/Hashing.h:48:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/build/<wbr>Ninja-ReleaseAssert/llvm-<wbr>macosx-x86_64/include/llvm/<wbr>Support/DataTypes.h:35:
In file included from /Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>include/c++/v1/cmath:305:
In file included from /Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>include/c++/v1/math.h:309:
/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>include/c++/v1/type_traits:<wbr>1301:38: error: incomplete type &#39;swift::Expr&#39; used in type trait expression
    : public integral_constant&lt;bool, __is_abstract(_Tp)&gt; {};
                                     ^
/Applications/Xcode.app/<wbr>Contents/Developer/Toolchains/<wbr>XcodeDefault.xctoolchain/usr/<wbr>include/c++/v1/type_traits:<wbr>1374:39: note: in instantiation of template class &#39;std::__1::is_abstract&lt;swift::<wbr>Expr&gt;&#39; requested here
                                     !is_abstract&lt;_T2&gt;::value&gt; {};
                                      ^
/Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>include/swift/Basic/<wbr>NullablePtr.h:40:22: note: in instantiation of template class &#39;std::__1::is_convertible&lt;<wbr>swift::Expr, swift::Expr&gt;&#39; requested here
                std::is_convertible&lt;OtherT, T&gt;::value,
                     ^
/Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>include/swift/Basic/<wbr>NullablePtr.h:30:7: note: while substituting deduced template arguments into function template &#39;NullablePtr&#39; [with OtherT = swift::Expr]
class NullablePtr {
      ^
/Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/<wbr>include/swift/AST/ASTNode.h:<wbr>24:9: note: forward declaration of &#39;swift::Expr&#39;
  class Expr;
        ^
1 error generated.
[137/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenExpr.<wbr>cpp.o
[138/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenLValue.<wbr>cpp.o
[139/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenPoly.<wbr>cpp.o
[140/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenProlog.<wbr>cpp.o
[141/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenStmt.<wbr>cpp.o
[142/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenType.<wbr>cpp.o
[143/665] Building CXX object lib/SILGen/CMakeFiles/<wbr>swiftSILGen.dir/SILGenPattern.<wbr>cpp.o
ninja: build stopped: subcommand failed.
./utils/build-script: command terminated with a non-zero exit status 1, aborting
</code></pre><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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"><br></code></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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">Kyle says he&#39;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">https://github.com/kylef/<wbr>swiftenv/issues/103#<wbr>issuecomment-345432864</a>).</code></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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"><br></code></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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">Any thoughts on what we might do to fix this so I can build Swift 2.2.1 on High Sierra?</code></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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"><br></code></div><div><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,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">- leanne</code></div></div></div></div>
______________________________<wbr>_________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>