<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 --- - clang fails to compile rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp against libc++"
href="https://llvm.org/bugs/show_bug.cgi?id=23307">23307</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang fails to compile rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp against libc++
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>howarth.mailing.lists@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14237" name="attach_14237" title="preprocessed source file for rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp">attachment 14237</a> <a href="attachment.cgi?id=14237&action=edit" title="preprocessed source file for rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp">[details]</a></span>
preprocessed source file for
rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp
The rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp file fails
to compile with clang++ 3.6.0 against libc++ but compiles against libstdc++.
The cryptic error is...
# clang++ -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ENABLE_ASSERT_HANDLER
-DBOOST_SIGNALS_NO_DEPRECATION_WARNING -std=c++11 -stdlib=libc++ -O3 -DNDEBUG
-c SessionHTMLPreview.ii
In file included from
/sw/src/fink.build/rstudio-desktop-0.98.1103-5/rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp:17:
In file included from
/sw/src/fink.build/rstudio-desktop-0.98.1103-5/rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.hpp:25:
In file included from
/sw/src/fink.build/rstudio-desktop-0.98.1103-5/rstudio-0.98.1103/src/cpp/core/include/core/json/Json.hpp:19:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:439:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:1572:12:
error: no matching function for call to
'__search'
return std::__1::__search<typename
add_lvalue_reference<_BinaryPredicate>::type>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:1586:22:
note: in instantiation of function
template specialization
'std::__1::search<std::__1::istreambuf_iterator<char,
std::__1::char_traits<char> >, std::__1::__wrap_iter<char *>,
std::__1::__equal_to<char, char> >' requested here
return std::__1::search(__first1, __last1, __first2, __last2,
__equal_to<__v1, __v2>());
^
/sw/src/fink.build/rstudio-desktop-0.98.1103-5/rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp:555:23:
note: in instantiation of function template
specialization 'std::__1::search<std::__1::istreambuf_iterator<char,
std::__1::char_traits<char> >, std::__1::__wrap_iter<char *> >' requested here
if (eod == std::search(std::istreambuf_iterator<char>(*pStr),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:1456:1:
note: candidate function [with
_BinaryPredicate = std::__1::__equal_to<char, char> &,
_RandomAccessIterator1 = std::__1::istreambuf_iterator<char,
std::__1::char_traits<char> >,
_RandomAccessIterator2 = std::__1::__wrap_iter<char *>] not viable: no
known conversion from 'typename std::iterator_traits<istreambuf_iterator<char,
char_traits<char> > >::iterator_category' (aka
'std::__1::input_iterator_tag') to 'std::__1::random_access_iterator_tag' for
6th argument
__search(_RandomAccessIterator1 __first1, _RandomAccessIterator1 __last1,
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:1419:1:
note: candidate function [with
_BinaryPredicate = std::__1::__equal_to<char, char> &, _ForwardIterator1
= std::__1::istreambuf_iterator<char, std::__1::char_traits<char> >,
_ForwardIterator2 = std::__1::__wrap_iter<char *>] not viable: no known
conversion from 'typename std::iterator_traits<istreambuf_iterator<char,
char_traits<char> > >::iterator_category' (aka
'std::__1::input_iterator_tag') to 'std::__1::forward_iterator_tag' for 6th
argument
__search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
^
1 error generated.
Is this a valid error message? The preprocessed source to reproduce the error
is attached.
FYI, this is one of only two remaining issues preventing rstudio from being
entirely built against libc++ under clang...
<a href="https://support.rstudio.com/hc/communities/public/questions/203373368-Rstudio-0-98-1103-has-only-two-libc-build-issues-left">https://support.rstudio.com/hc/communities/public/questions/203373368-Rstudio-0-98-1103-has-only-two-libc-build-issues-left</a></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>