<div dir="ltr">I&#39;m using swiftenv (<a href="https://github.com/kylef/swiftenv">https://github.com/kylef/swiftenv</a>) at the command line. Kyle says he&#39;s just using a minimal wrapper around the normal command line Swift build process. Here&#39;s a quote from Kyle&#39;s response to an issue I posted at the swiftenv repo:<div><br></div><div>&quot;<span style="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">All </span><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.0470588);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)">swiftenv</code><span style="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"> is currently doing is a </span><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:11.899999618530273px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.0470588);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)">./utils/build-script -R -- --install-prefix=&quot;$destination&quot;</code><span style="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">after downloading the source code(s).</span>&quot;</div><div><br></div><div>If I get where you&#39;re going, though, Slava, does building Swift 2.2.1 require an older version of the Xcode Command Line Tools, then??? Is that why I might need an older Xcode?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 19, 2017 at 4:02 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">What version of Xcode are you using to _build_ Swift 2.2? You might need an older Xcode for that.<span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Slava</font></span><div><div class="h5"><br><div><br><blockquote type="cite"><div>On Nov 19, 2017, at 11:24 AM, leanne &lt;<a href="mailto:leanne63.dev@gmail.com" target="_blank">leanne63.dev@gmail.com</a>&gt; wrote:</div><br class="m_2106738435684267843Apple-interchange-newline"><div><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="m_2106738435684267843h5"><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_2106738435684267843m_-2137417395293518521Apple-interchange-newline"></div></div><div><div><div class="m_2106738435684267843h5"><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/swif<wbr>tenv</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/swiftSIL<wbr>Gen.dir/SILGenProfiling.cpp.o
FAILED: lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenProfiling.cpp.o 
/Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/bin/<wbr>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/tm<wbr>p/swiftenv-build-2.2.1/swift/<wbr>lib/SILGen -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/swift/<wbr>include -Iinclude -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/build/<wbr>Ninja-ReleaseAssert/llvm-<wbr>macosx-x86_64/include -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/llvm/in<wbr>clude -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/build/<wbr>Ninja-ReleaseAssert/llvm-<wbr>macosx-x86_64/tools/clang/<wbr>include -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/llvm/to<wbr>ols/clang/include -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/cmark/<wbr>src -I/Users/username/.swiftenv/tm<wbr>p/swiftenv-build-2.2.1/build/<wbr>Ninja-ReleaseAssert/cmark-<wbr>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/Conten<wbr>ts/Developer/Platforms/MacOSX.<wbr>platform/Developer/SDKs/<wbr>MacOSX10.13.sdk -arch x86_64 -F /Applications/Xcode.app/Conten<wbr>ts/Developer/Platforms/MacOSX.<wbr>platform/Developer/SDKs/<wbr>MacOSX10.13.sdk/../../../Devel<wbr>oper/Library/Frameworks -mmacosx-version-min=10.9 -O2 -momit-leaf-frame-pointer -g0 -UNDEBUG -MD -MT lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenProfiling.cpp.o -MF lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenProfiling.cpp.o.<wbr>d -o lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenProfiling.cpp.o -c /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/lib<wbr>/SILGen/SILGenProfiling.cpp
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/lib<wbr>/SILGen/SILGenProfiling.cpp:<wbr>13:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/swift/lib<wbr>/SILGen/SILGenProfiling.h:16:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/incl<wbr>ude/llvm/ADT/DenseMap.h:17:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/incl<wbr>ude/llvm/ADT/DenseMapInfo.h:<wbr>17:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/incl<wbr>ude/llvm/ADT/ArrayRef.h:13:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/llvm/incl<wbr>ude/llvm/ADT/Hashing.h:48:
In file included from /Users/username/.swiftenv/tmp/<wbr>swiftenv-build-2.2.1/build/Nin<wbr>ja-ReleaseAssert/llvm-macosx-<wbr>x86_64/include/llvm/Support/<wbr>DataTypes.h:35:
In file included from /Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/include<wbr>/c++/v1/cmath:305:
In file included from /Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/include<wbr>/c++/v1/math.h:309:
/Applications/Xcode.app/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/include<wbr>/c++/v1/type_traits: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/Conten<wbr>ts/Developer/Toolchains/XcodeD<wbr>efault.xctoolchain/usr/include<wbr>/c++/v1/type_traits: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/inc<wbr>lude/swift/Basic/NullablePtr.<wbr>h:40:22: note: in instantiation of template class &#39;std::__1::is_convertible&lt;swif<wbr>t::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/inc<wbr>lude/swift/Basic/NullablePtr.<wbr>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/inc<wbr>lude/swift/AST/ASTNode.h:24:9: note: forward declaration of &#39;swift::Expr&#39;
  class Expr;
        ^
1 error generated.
[137/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenExpr.cpp.o
[138/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenLValue.cpp.o
[139/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenPoly.cpp.o
[140/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenProlog.cpp.o
[141/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenStmt.cpp.o
[142/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenType.cpp.o
[143/665] Building CXX object lib/SILGen/CMakeFiles/swiftSIL<wbr>Gen.dir/SILGenPattern.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/swif<wbr>tenv/issues/103#issuecomment-<wbr>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/mailma<wbr>n/listinfo/swift-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>