[swift-dev] Build standard library failed in debug
dongmeilianghy at sina.com
dongmeilianghy at sina.com
Sun Dec 24 20:56:26 CST 2017
Hi swift developers, I get a compile error when try to build standard library in debug with command:`$ swift/utils/build-script --release-debuginfo --debug-swift-stdlib --xcode -c`.The detail error as follow:```The following build commands failed: CompileC /Users/dongmeiliang/Documents/swift-source/build/Xcode-RelWithDebInfoAssert+stdlib-DebugAssert/llvm-macosx-x86_64/tools/clang/utils/TableGen/LLVM.build/RelWithDebInfo/clang-tblgen.build/Objects-normal/x86_64/ClangASTNodesEmitter.o tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler(1 failure)/Users/dongmeiliang/Documents/swift-source/llvm/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp:50:12: error: no viable conversion from returned value of type 'llvm::Twine' to function return type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') return R.getName() + BaseSuffix; ^~~~~~~~~~~~~~~~~~~~~~~~In file included from /Users/dongmeiliang/Documents/swift-source/llvm/tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp:14:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/TableGen/Record.h:18:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/ADT/ArrayRef.h:13:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/ADT/Hashing.h:49:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/Support/Host.h:17:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/ADT/StringMap.h:17:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/ADT/StringRef.h:13:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/ADT/STLExtras.h:36:In file included from /Users/dongmeiliang/Documents/swift-source/llvm/include/llvm/Support/ErrorHandling.h:19:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:763:5: note: candidate constructor not viable: no known conversion from 'llvm::Twine' to 'const std::__1::basic_string<char> &' for 1st argument basic_string(const basic_string& __str); ^/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:768:5: note: candidate constructor not viable: no known conversion from 'llvm::Twine' to 'std::__1::basic_string<char> &&' for 1st argument basic_string(basic_string&& __str) ^/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:778:31: note: candidate constructor not viable: no known conversion from 'llvm::Twine' to 'const value_type *' (aka 'const char *') for 1st argument _LIBCPP_INLINE_VISIBILITY basic_string(const value_type* __s); ^/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:810:5: note: candidate constructor not viable: no known conversion from 'llvm::Twine' to 'initializer_list<value_type>' (aka 'initializer_list<char>') for 1st argument basic_string(initializer_list<value_type> __il); ^1 error generated.```My software enviroments:```$ sw_versProductName: Mac OS XProductVersion: 10.13.2BuildVersion: 17C88$ xcodebuild -versionXcode 9.2Build version 9C40b```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20171225/0b3ec09e/attachment.html>
More information about the swift-dev
mailing list