compilation error: stl_algobase.h:182:11: error: call of overloaded 'swap(cUpdate::ImageFile&, cUpdate::ImageFile&)' is ambiguous

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

when compiling vdr-osd2web [1] on f35, i get the following error message:

g++ -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -std=gnu++14 -D__STDC_FORMAT_MACROS -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wunused-but-set-variable -Wunused-but-set-parameter -D__STL_CONFIG_H -DOSD2WEB -DLOG_PREFIX='"osd2web: "' -DVDR_PLUGIN -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"osd2web"'
  -DGIT_REV='""'  -o dia.o dia.c
In file included from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/string:40,
                 from lib/common.h:19,
                 from lib/config.h:11,
                 from config.h:16,
                 from dia.c:19:
/usr/include/c++/11/bits/stl_algobase.h: In instantiation of 'void std::iter_swap(_ForwardIterator1, _ForwardIterator2) [with _ForwardIterator1 = __gnu_cxx::__normal_iterator<cUpdate::ImageFile*, std::vector<cUpdate::ImageFile> >; _ForwardIterator2 = __gnu_cxx::__normal_iterator<cUpdate::ImageFile*, std::vector<cUpdate::ImageFile> >]':
/usr/include/c++/11/bits/stl_algo.h:3767:18:   required from 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator<cUpdate::ImageFile*, std::vector<cUpdate::ImageFile> >; _UGenerator = std::linear_congruential_engine<long unsigned int, 16807, 0, 2147483647>&]'
dia.c:109:19:   required from here
/usr/include/c++/11/bits/stl_algobase.h:182:11: error: call of overloaded 'swap(cUpdate::ImageFile&, cUpdate::ImageFile&)' is ambiguous
  182 |       swap(*__a, *__b);
      |       ~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_pair.h:59,
                 from /usr/include/c++/11/bits/stl_algobase.h:64,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/string:40,
                 from lib/common.h:19,
                 from lib/config.h:11,
                 from config.h:16,
                 from dia.c:19:
/usr/include/c++/11/bits/move.h:196:5: note: candidate: 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = cUpdate::ImageFile; std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > = void]'
  196 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
In file included from lib/common.h:38,
                 from lib/config.h:11,
                 from config.h:16,
                 from dia.c:19:
/usr/include/vdr/tools.h:63:31: note: candidate: 'void swap(T&, T&) [with T = cUpdate::ImageFile]'
   63 | template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
      |                               ^~~~
make: *** [Makefile:91: dia.o] Error 1

[1] https://koji.fedoraproject.org/koji/buildinfo?buildID=1804801

How can I solve this ?

Regards
Martin
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux