[swift-dev] Centos 7.2 Building SwiftPM Error"error: invalid inferred toolchain"

SonWa pace at vip.qq.com
Wed Aug 24 19:37:04 CDT 2016


Hi,
Path available!


========================
 
[root at localhost ~]# whereis clang
 
clang: /usr/bin/clang /usr/lib/clang /usr/include/clang /usr/share/man/man1/clang.1

[root at localhost ~]# which clang

 

/usr/bin/clang

[root at localhost ~]# clang --version

clang version 3.8.0 (tags/RELEASE_381/final)

Target: x86_64-unknown-linux-gnu

Thread model: posix

 

InstalledDir: /usr/bin

===============================

Also set another path?



------------------ Original ------------------
From:  "Daniel Dunbar";<daniel_dunbar at apple.com>;
Date:  Wed, Aug 24, 2016 01:24 AM
To:  "SonWa"<pace at vip.qq.com>; 
Cc:  "swift-dev"<swift-dev at swift.org>; 
Subject:  Re: [swift-dev] Centos 7.2 Building SwiftPM Error"error: invalid	inferred toolchain"



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/20160825/a863ff59/attachment.html>


More information about the swift-dev mailing list