<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Is `clang` available in your path?<div class=""><br class=""></div><div class="">If not, this may be:</div><div class=""> <a href="https://bugs.swift.org/browse/SR-2271" class="">https://bugs.swift.org/browse/SR-2271</a></div><div class=""><br class=""></div><div class=""> - Daniel</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 22, 2016, at 8:54 PM, SonWa via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,I in Centos 7.2 run "<span style="line-height: 1.5;" class="">./swift/utils/build-script --preset=buildbot_linux installable_package=/tmp/swift.tar.gz install_destdir=/tmp/swift-install</span><span style="line-height: 1.5;" class="">"</span></div><div class=""><span style="line-height: 1.5;" class=""><br class=""></span></div><div class=""><span style="line-height: 1.5;" class="">gcc version:4.9.4</span></div><div class=""><span style="line-height: 1.5;" class="">clang version:3.8.1</span></div><div class=""><span style="line-height: 1.5;" class=""><br class=""></span></div><div class=""><span style="line-height: 1.5;" class="">==============================================</span></div><div class=""><p class="p1"><span class="s1">+ /usr/local/src/swiftpm/Utilities/bootstrap --swiftc=/usr/local/src/build/buildbot_linux/swift-linux-x86_64/bin/swiftc --sbt=/usr/local/src/build/buildbot_linux/llbuild-linux-x86_64/bin/swift-build-tool --build=/usr/local/src/build/buildbot_linux/swiftpm-linux-x86_64 --foundation=/usr/local/src/build/buildbot_linux/foundation-linux-x86_64/Foundation --libdispatch-source-dir=/usr/local/src/swift-corelibs-libdispatch --libdispatch-build-dir=/usr/local/src/build/buildbot_linux/libdispatch-linux-x86_64 --xctest=/usr/local/src/build/buildbot_linux/xctest-linux-x86_64</span></p><p class="p1"><span class="s1">--- bootstrap: note: building stage1: /usr/local/src/build/buildbot_linux/llbuild-linux-x86_64/bin/swift-build-tool -f /usr/local/src/build/buildbot_linux/swiftpm-linux-x86_64/.bootstrap/build.swift-build</span></p><p class="p1"><span class="s1">--- bootstrap: note: building self-hosted 'swift-build': env SWIFT_EXEC=/usr/local/src/build/buildbot_linux/swiftpm-linux-x86_64/debug/swiftc SWIFT_BUILD_PATH=/usr/local/src/build/buildbot_linux/swiftpm-linux-x86_64 /usr/local/src/build/buildbot_linux/swiftpm-linux-x86_64/debug/swift-build-stage1 -Xlinker -rpath -Xlinker $ORIGIN/../lib/swift/linux -Xlinker -L -Xlinker /usr/local/src/build/buildbot_linux/foundation-linux-x86_64/Foundation -Xlinker -rpath -Xlinker /usr/local/src/build/buildbot_linux/foundation-linux-x86_64/Foundation -Xswiftc -I/usr/local/src/build/buildbot_linux/foundation-linux-x86_64/Foundation -Xswiftc -I/usr/local/src/build/buildbot_linux/foundation-linux-x86_64/Foundation/usr/lib/swift -Xlinker -L -Xlinker /usr/local/src/build/buildbot_linux/xctest-linux-x86_64 -Xlinker -rpath -Xlinker /usr/local/src/build/buildbot_linux/xctest-linux-x86_64 -Xswiftc -I/usr/local/src/build/buildbot_linux/xctest-linux-x86_64 -Xswiftc -I/usr/local/src/build/buildbot_linux/libdispatch-linux-x86_64/src -Xswiftc -I/usr/local/src/swift-corelibs-libdispatch -Xcc -fblocks --build-tests</span></p><p class="p1"><span class="s2">error:</span><span class="s1"> invalid inferred toolchain</span></p><p class="p1"><span class="s1">--- bootstrap: error: build failed with exit status 1</span></p><p class="p1"><span class="s1">./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</span></p><p class="p1"><span class="s1">./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting</span></p><p class="p1"><span class="s1">==============================================</span></p><p class="p1"><span class="s1"><br class=""></span></p><p class="p1"><span class="s1">Source compiler this error, how to solve?</span></p><p class="p1"><span class="s1">Thank!</span></p><p class="p1"><span class="s1"><br class=""></span></p></div>_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></div></body></html>