GCC6:lla kääntäminen live ja rssreader pluginit

VDR ja DVB aiheista keskustelua

GCC6:lla kääntäminen live ja rssreader pluginit

ViestiKirjoittaja ppaalto » 07.06.2016 20:17

Koneen GCC päivittyi kutoseen, joka on aiheuttanut ongelmaa.

live-pluginin sain kääntymään tuolla:
https://projects.vdr-developer.org/issues/2296

Sitten rssreader. Jotain tähän bugiin viittaavaa
https://bugs.debian.org/cgi-bin/bugrepo ... bug=811994
* Added workaround for STL clash with GCC 6 and vdr/tools.h (Closes: #811994)
https://gcc.gnu.org/gcc-6/changes.html
Tuleeko tuo jostain vdr:n tools.h:sta asti?


g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/mnt/home/v dr/vdr-2.2.0/include -c -DPLUGIN_NAME_I18N='"rssreader"' -DTMPDIR='"/tmp"' -I/mn t/home/vdr/vdr-2.2.0/include -o parser.o parser.c
In file included from /usr/include/c++/6.1.1/deque:64:0,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/stl_deque.h: In instantiation of ”void std::_Deque_b ase<_Tp, _Alloc>::_Deque_impl::_M_swap_data(std::_Deque_base<_Tp, _Alloc>::_Dequ e_impl&) [with _Tp = XmlNode; _Alloc = std::allocator<XmlNode>]”:
/usr/include/c++/6.1.1/bits/stl_deque.h:514:4: required from ”std::_Deque_base <_Tp, _Alloc>::_Deque_base(std::_Deque_base<_Tp, _Alloc>&&, std::true_type) [wit h _Tp = XmlNode; _Alloc = std::allocator<XmlNode>; std::true_type = std::integra l_constant<bool, true>]”
/usr/include/c++/6.1.1/bits/stl_deque.h:518:78: required from ”std::_Deque_bas e<_Tp, _Alloc>::_Deque_base(std::_Deque_base<_Tp, _Alloc>&&) [with _Tp = XmlNode ; _Alloc = std::allocator<XmlNode>]”
/usr/include/c++/6.1.1/bits/stl_deque.h:959:29: required from ”std::deque<_Tp, _Alloc>::deque(std::deque<_Tp, _Alloc>&&) [with _Tp = XmlNode; _Alloc = std::al locator<XmlNode>]”
/usr/include/c++/6.1.1/bits/stl_stack.h:150:25: required from ”std::stack<_Tp, _Sequence>::stack(_Sequence&&) [with _Tp = XmlNode; _Sequence = std::deque<XmlN ode, std::allocator<XmlNode> >]”
parser.c:92:28: required from here
/usr/include/c++/6.1.1/bits/stl_deque.h:577:8: virhe: call of overloaded ”swap(s td::_Deque_base<XmlNode, std::allocator<XmlNode> >::iterator&, std::_Deque_base< XmlNode, std::allocator<XmlNode> >::iterator&)” is ambiguous
swap(this->_M_start, __x._M_start);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6.1.1/bits/stl_pair.h:59:0,
from /usr/include/c++/6.1.1/bits/stl_algobase.h:64,
from /usr/include/c++/6.1.1/deque:60,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/move.h:179:5: huom: candidate: typename std::enable_ if<std::__and_<std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >:: value>::type std::swap(_Tp&, _Tp&) [with _Tp = std::_Deque_iterator<XmlNode, Xml Node&, XmlNode*>; typename std::enable_if<std::__and_<std::is_move_constructible <_Tp>, std::is_move_assignable<_Tp> >::value>::type = void]
swap(_Tp& __a, _Tp& __b)
^~~~
In file included from /mnt/home/vdr/vdr-2.2.0/include/vdr/i18n.h:14:0,
from /mnt/home/vdr/vdr-2.2.0/include/vdr/config.h:19,
from parser.c:11:
/mnt/home/vdr/vdr-2.2.0/include/vdr/tools.h:57:31: huom: candidate: void swap(T& , T&) [with T = std::_Deque_iterator<XmlNode, XmlNode&, XmlNode*>]
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
^~~~
In file included from /usr/include/c++/6.1.1/deque:64:0,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/stl_deque.h:578:8: virhe: call of overloaded ”swap(s td::_Deque_base<XmlNode, std::allocator<XmlNode> >::iterator&, std::_Deque_base< XmlNode, std::allocator<XmlNode> >::iterator&)” is ambiguous
swap(this->_M_finish, __x._M_finish);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6.1.1/bits/stl_pair.h:59:0,
from /usr/include/c++/6.1.1/bits/stl_algobase.h:64,
from /usr/include/c++/6.1.1/deque:60,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/move.h:179:5: huom: candidate: typename std::enable_ if<std::__and_<std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >:: value>::type std::swap(_Tp&, _Tp&) [with _Tp = std::_Deque_iterator<XmlNode, Xml Node&, XmlNode*>; typename std::enable_if<std::__and_<std::is_move_constructible <_Tp>, std::is_move_assignable<_Tp> >::value>::type = void]
swap(_Tp& __a, _Tp& __b)
^~~~
In file included from /mnt/home/vdr/vdr-2.2.0/include/vdr/i18n.h:14:0,
from /mnt/home/vdr/vdr-2.2.0/include/vdr/config.h:19,
from parser.c:11:
/mnt/home/vdr/vdr-2.2.0/include/vdr/tools.h:57:31: huom: candidate: void swap(T& , T&) [with T = std::_Deque_iterator<XmlNode, XmlNode&, XmlNode*>]
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
^~~~
In file included from /usr/include/c++/6.1.1/deque:64:0,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/stl_deque.h:579:8: virhe: call of overloaded ”swap(X mlNode**&, XmlNode**&)” is ambiguous
swap(this->_M_map, __x._M_map);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6.1.1/bits/stl_pair.h:59:0,
from /usr/include/c++/6.1.1/bits/stl_algobase.h:64,
from /usr/include/c++/6.1.1/deque:60,
from /usr/include/c++/6.1.1/stack:60,
from parser.c:8:
/usr/include/c++/6.1.1/bits/move.h:179:5: huom: candidate: typename std::enable_ if<std::__and_<std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >:: value>::type std::swap(_Tp&, _Tp&) [with _Tp = XmlNode**; typename std::enable_i f<std::__and_<std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >::v alue>::type = void]
swap(_Tp& __a, _Tp& __b)
^~~~
In file included from /mnt/home/vdr/vdr-2.2.0/include/vdr/i18n.h:14:0,
from /mnt/home/vdr/vdr-2.2.0/include/vdr/config.h:19,
from parser.c:11:
/mnt/home/vdr/vdr-2.2.0/include/vdr/tools.h:57:31: huom: candidate: void swap(T& , T&) [with T = XmlNode**]
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
^~~~
Makefile:78: recipe for target 'parser.o' failed
make[1]: *** [parser.o] Error 1
ls: tiedostoa '/mnt/home/vdr/vdr-2.2.0/PLUGINS/src/rssreader/po/*.mo' ei voi käs itellä: Tiedostoa tai hakemistoa ei ole
ppaalto
Asiantuntija
 
Viestit: 141
Liittynyt: 02.12.2005 23:38

Re: GCC6:lla kääntäminen live ja rssreader pluginit

ViestiKirjoittaja Droopy » 08.10.2016 20:29

Eikö olisi helpompaa kääntää gcc 5 tai 4. Ainakin Gentoossa 5 ja 6 ovat unstable haarassa vielä.
Droopy
Säätäjä
 
Viestit: 219
Liittynyt: 10.03.2008 17:37

Re: GCC6:lla kääntäminen live ja rssreader pluginit

ViestiKirjoittaja rofafor » 09.10.2016 19:16

Koodi: Valitse kaikki
 DEFINES="-D__STL_CONFIG_H" make
Avatar
rofafor
Optikkoliikkeen kopiovastaava
 
Viestit: 1365
Liittynyt: 26.03.2004 3:00
Paikkakunta: Internet

Re: GCC6:lla kääntäminen live ja rssreader pluginit

ViestiKirjoittaja ppaalto » 05.11.2016 13:09

Toksia.
ppaalto
Asiantuntija
 
Viestit: 141
Liittynyt: 02.12.2005 23:38


Paluu VDR & DVB

Paikallaolijat

Käyttäjiä lukemassa tätä aluetta: hetas ja 2 vierailijaa