[Debian-med-packaging] Bug#777791: ball: ftbfs with GCC-5
Andreas Tille
tille at debian.org
Thu Jan 7 12:12:29 UTC 2016
Hi Dimitri,
On Sat, Jul 11, 2015 at 08:27:30PM +0100, Dimitri John Ledkov wrote:
> I believe remaining fixes can be cherrypicked from upstream.
> Specifically for clang / c++11 support the remaining bug of code is
> explicitly converted into bool:
>
> https://github.com/BALL-Project/ball/commit/6700400576521250cbe4f8d201391168eb80e0df.patch
Thanks for this tip. I tried the patch but other build issues occured.
So I decided to upgrade the packaging git[1] to upstream 1.4.3~beta1 but
now I get:
...
[ 4%] Building CXX object CMakeFiles/BALL.dir/source/CONCEPT/composite.o
In file included from /build/ball-1.4.3~beta1/include/BALL/DATATYPE/string.h:1898:0,
from /build/ball-1.4.3~beta1/include/BALL/DATATYPE/hashMap.h:13,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/persistenceManager.h:13,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/timeStamp.h:21,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/composite.h:41,
from /build/ball-1.4.3~beta1/source/CONCEPT/composite.C:7:
/build/ball-1.4.3~beta1/include/BALL/DATATYPE/string.iC: In member function 'BALL::String& BALL::String::insert(BALL::String::const_iterator, std::initializer_list<char>)':
/build/ball-1.4.3~beta1/include/BALL/DATATYPE/string.iC:1379:19: error: no matching function for call to 'std::__cxx11::basic_string<char>::insert(BALL::String::const_iterator&, std::initializer_list<char>&)'
str_.insert(p, li);
^
In file included from /usr/include/c++/5/string:52:0,
from /build/ball-1.4.3~beta1/include/BALL/COMMON/debug.h:18,
from /build/ball-1.4.3~beta1/include/BALL/common.h:16,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/composite.h:9,
from /build/ball-1.4.3~beta1/source/CONCEPT/composite.C:7:
/usr/include/c++/5/bits/basic_string.h:1230:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11:: basic_string<_CharT, _Traits, _Alloc>::const_iterator, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std:: allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx:: __alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::const_pointer = const char*; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(const_iterator __p, size_type __n, _CharT __c)
^
/usr/include/c++/5/bits/basic_string.h:1230:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/5/bits/basic_string.h:1274:9: note: candidate: template<class _InputIterator, class> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
insert(const_iterator __p, _InputIterator __beg, _InputIterator __end)
^
/usr/include/c++/5/bits/basic_string.h:1274:9: note: template argument deduction/substitution failed:
In file included from /build/ball-1.4.3~beta1/include/BALL/DATATYPE/string.h:1898:0,
from /build/ball-1.4.3~beta1/include/BALL/DATATYPE/hashMap.h:13,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/persistenceManager.h:13,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/timeStamp.h:21,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/composite.h:41,
from /build/ball-1.4.3~beta1/source/CONCEPT/composite.C:7:
/build/ball-1.4.3~beta1/include/BALL/DATATYPE/string.iC:1379:19: note: candidate expects 3 arguments, 2 provided
str_.insert(p, li);
^
In file included from /usr/include/c++/5/string:52:0,
from /build/ball-1.4.3~beta1/include/BALL/COMMON/debug.h:18,
from /build/ball-1.4.3~beta1/include/BALL/common.h:16,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/composite.h:9,
from /build/ball-1.4.3~beta1/source/CONCEPT/composite.C:7:
/usr/include/c++/5/bits/basic_string.h:1308:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator, std:: initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_CharT>::other>::pointer = char*]
insert(iterator __p, initializer_list<_CharT> __l)
^
/usr/include/c++/5/bits/basic_string.h:1308:7: note: no known conversion for argument 1 from 'BALL::String::const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >}' to 'std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}'
/usr/include/c++/5/bits/basic_string.h:1328:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(size_type __pos1, const basic_string& __str)
^
/usr/include/c++/5/bits/basic_string.h:1328:7: note: no known conversion for argument 1 from 'BALL::String::const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >}' to 'std::__cxx11::basic_string<char>::size_type {aka long unsigned int}'
/usr/include/c++/5/bits/basic_string.h:1351:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>:: size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(size_type __pos1, const basic_string& __str,
^
/usr/include/c++/5/bits/basic_string.h:1351:7: note: candidate expects 4 arguments, 2 provided
/usr/include/c++/5/bits/basic_string.h:1374:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11:: basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(size_type __pos, const _CharT* __s, size_type __n)
^
/usr/include/c++/5/bits/basic_string.h:1374:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/5/bits/basic_string.h:1393:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
/usr/include/c++/5/bits/basic_string.h:1393:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(size_type __pos, const _CharT* __s)
^
/usr/include/c++/5/bits/basic_string.h:1393:7: note: no known conversion for argument 1 from 'BALL::String::const_iterator {aka __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >}' to 'std::__cxx11::basic_string<char>::size_type {aka long unsigned int}'
/usr/include/c++/5/bits/basic_string.h:1417:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11:: basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]
insert(size_type __pos, size_type __n, _CharT __c)
^
/usr/include/c++/5/bits/basic_string.h:1417:7: note: candidate expects 3 arguments, 2 provided
/usr/include/c++/5/bits/basic_string.h:1435:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iterator std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11:: basic_string<_CharT, _Traits, _Alloc>::__const_iterator, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>:: iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<typename __gIn file included from /usr/include/c++/5/string:52:0,
from /build/ball-1.4.3~beta1/include/BALL/COMMON/debug.h:18,
from /build/ball-1.4.3~beta1/include/BALL/common.h:16,
from /build/ball-1.4.3~beta1/include/BALL/CONCEPT/composite.h:9,
from /build/ball-1.4.3~beta1/source/CONCEPT/composite.C:7:
/usr/include/c++/5/bits/basic_string.h:1308:7: note: candidate: void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::insert(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::iteCMakeFiles/BALL.dir/build. make:147: recipe for target 'CMakeFiles/BALL.dir/source/CONCEPT/composite.o' failed
make[5]: *** [CMakeFiles/BALL.dir/source/CONCEPT/composite.o] Error 1
Any help would be welcome.
Kind regards
Andreas.
[1] git://anonscm.debian.org/debian-med/ball.git
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list