<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - build clang on Ubuntu 15.10 fails with invalid conversion from ‘char’ to ‘const char*’ in PPDirectives.cpp"
href="https://llvm.org/bugs/show_bug.cgi?id=26728">26728</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>build clang on Ubuntu 15.10 fails with invalid conversion from ‘char’ to ‘const char*’ in PPDirectives.cpp
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>libclang
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bootch@nc.rr.com
</td>
</tr>
<tr>
<th>CC</th>
<td>klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Error message:
[ 51%] Building CXX object
tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PPLexerChange.cpp.o
/home/bootch/git/llvm/tools/clang/lib/Lex/PPDirectives.cpp: In member function
‘void clang::Preprocessor::HandleUserDiagnosticDirective(clang::Token&, bool)’:
/home/bootch/git/llvm/tools/clang/lib/Lex/PPDirectives.cpp:1229:47: error:
invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
StringRef Msg = StringRef(Message).ltrim(' ');
^
Environment:
Ubuntu 15.10 (installed today)
gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
Using git repository cloned today from github mirror
Using build instructions here <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a>
(except not using subversion, using git from mirror.)
My analysis is that ltrim(' ') should be " "
I guess that I should use -fpermissive somewhere.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>