[LLVMbugs] [Bug 23307] New: clang fails to compile rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLPreview.cpp against libc++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 21 17:25:44 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23307
Bug ID: 23307
Summary: clang fails to compile
rstudio-0.98.1103/src/cpp/session/modules/SessionHTMLP
review.cpp against libc++
Product: clang
Version: 3.6
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: howarth.mailing.lists at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14237
--> https://llvm.org/bugs/attachment.cgi?id=14237&action=edit
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...
https://support.rstudio.com/hc/communities/public/questions/203373368-Rstudio-0-98-1103-has-only-two-libc-build-issues-left
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150422/aec4b6c7/attachment.html>
More information about the llvm-bugs
mailing list