[swift-dev] Centos 7.2 Building SwiftPM Error "error: invalid inferred toolchain"
Daniel Dunbar
daniel_dunbar at apple.com
Tue Aug 23 12:24:51 CDT 2016
Is `clang` available in your path?
If not, this may be:
https://bugs.swift.org/browse/SR-2271
- Daniel
> On Aug 22, 2016, at 8:54 PM, SonWa via swift-dev <swift-dev at swift.org> wrote:
>
> Hi,I in Centos 7.2 run "./swift/utils/build-script --preset=buildbot_linux installable_package=/tmp/swift.tar.gz install_destdir=/tmp/swift-install"
>
> gcc version:4.9.4
> clang version:3.8.1
>
> ==============================================
> + /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
>
> --- 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
>
> --- 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
>
> error: invalid inferred toolchain
>
> --- bootstrap: error: build failed with exit status 1
>
> ./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
>
> ./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
>
> ==============================================
>
>
>
> Source compiler this error, how to solve?
>
> Thank!
>
>
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160823/1a3da7ba/attachment.html>
More information about the swift-dev
mailing list