Hi!
I've tried building lilypond-2.17.28 with libc++, the new standard c++
library for use with llvm (http://libcxx.llvm.org/).
I have a build failure I don't really know how to fix, it is:
In file included from file-path.cc:21:
In file included from ./include/file-path.hh:23:
In file included from ./include/std-vector.hh:74:
/usr/include/c++/vector:1371:12: error: calling a private constructor of class
'std::__1::__wrap_iter<std::__1::basic_string<char> *>'
return iterator(__p);
^
/usr/include/c++/vector:1408:12: note: in instantiation of member function
'std::__1::__flower_vector<std::__1::basic_string<char>,
std::__1::allocator<std::__1::basic_string<char> > >::__make_iter'
requested here
return __make_iter(this->__end_);
^
./include/std-vector.hh:155:15: note: in instantiation of member function
'std::__1::__flower_vector<std::__1::basic_string<char>,
std::__1::allocator<std::__1::basic_string<char> > >::end' requested here
v.insert (v.end (), w.begin (), w.end ());
^
file-path.cc:52:3: note: in instantiation of function template specialization
'concat<std::__1::basic_string<char> >' requested here
concat (dirs_, string_split (p, PATHSEP));
^
/usr/include/c++/iterator:1200:31: note: declared private here
_LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT :
__i(__x) {}
^
same error in another file:
In file included from file-path.cc:21:
In file included from ./include/file-path.hh:23:
In file included from ./include/std-vector.hh:74:
/usr/include/c++/vector:1371:12: error: calling a private constructor of class
'std::__1::__wrap_iter<std::__1::basic_string<char> *>'
return iterator(__p);
^
/usr/include/c++/vector:1408:12: note: in instantiation of member function
'std::__1::__flower_vector<std::__1::basic_string<char>,
std::__1::allocator<std::__1::basic_string<char> > >::__make_iter'
requested here
return __make_iter(this->__end_);
^
./include/std-vector.hh:155:15: note: in instantiation of member function
'std::__1::__flower_vector<std::__1::basic_string<char>,
std::__1::allocator<std::__1::basic_string<char> > >::end' requested here
v.insert (v.end (), w.begin (), w.end ());
^
file-path.cc:52:3: note: in instantiation of function template specialization
'concat<std::__1::basic_string<char> >' requested here
concat (dirs_, string_split (p, PATHSEP));
^
/usr/include/c++/iterator:1200:31: note: declared private here
_LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT :
__i(__x) {}
^
I know that there are differences between GNU cc and clang wrt. the
inline keyword, see
http://clang.llvm.org/compatibility.html#inline
and I guess it might be related, but I don't see how to fix that.
Ideas?
Thanks,
Thomas
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond