<div>Hi,</div><div>Path available!</div><div><div><br></div><div>========================</div><div>
<p class="p1"><span class="s1">[root@localhost ~]# whereis clang</span></p>
<p class="p1"><span class="s1">clang: /usr/bin/clang /usr/lib/clang /usr/include/clang /usr/share/man/man1/clang.1</span></p><p class="p1"><span class="s1">[root@localhost ~]# which clang</span></p><p class="p1"><span class="s1">
</span></p><p class="p1"><span class="s1">/usr/bin/clang</span></p><p class="p1"><span class="s1">[root@localhost ~]# clang --version</span></p><p class="p1"><span class="s1">clang version 3.8.0 (tags/RELEASE_381/final)</span></p><p class="p1"><span class="s1">Target: x86_64-unknown-linux-gnu</span></p><p class="p1"><span class="s1">Thread model: posix</span></p><p class="p1"><span class="s1">
</span></p><p class="p1"><span class="s1">InstalledDir: /usr/bin</span></p><p class="p1"><span class="s1">===============================</span></p><p class="p1"><span class="s1">Also set another path?</span></p></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Daniel Dunbar";<daniel_dunbar@apple.com>;</div><div><b>Date: </b> Wed, Aug 24, 2016 01:24 AM</div><div><b>To: </b> "SonWa"<pace@vip.qq.com>; <wbr></div><div><b>Cc: </b> "swift-dev"<swift-dev@swift.org>; <wbr></div><div><b>Subject: </b> Re: [swift-dev] Centos 7.2 Building SwiftPM Error"error: invalid        inferred toolchain"</div></div><div><br></div>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></div>