[swift-dev] Build standard library failed in debug

Slava Pestov spestov at apple.com
Sun Dec 24 20:57:26 CST 2017


This is an error compiling Clang. Which branch/tag are you building?

Slava

> On Dec 24, 2017, at 6:56 PM, Meiliang Dong via swift-dev <swift-dev at swift.org> wrote:
> 
>  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_vers
> ProductName:	Mac OS X
> ProductVersion:	10.13.2
> BuildVersion:	17C88
> 
> $ xcodebuild -version
> Xcode 9.2
> Build version 9C40b
> ```_______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev



More information about the swift-dev mailing list