Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636738 - net-im/kadu-4.3-r1 fails to build with GCC 7
Summary: net-im/kadu-4.3-r1 fails to build with GCC 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-7
  Show dependency tree
 
Reported: 2017-11-06 20:15 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2018-03-22 12:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
kadu-4.3-gcc-7.patch (kadu-4.3-gcc-7.patch,264 bytes, patch)
2017-11-07 05:33 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2017-11-06 20:15:36 UTC
[ 34%] Building CXX object kadu-core/CMakeFiles/libkadu.dir/plugin/dependency-graph/plugin-dependency-graph-builder.cpp.o
cd /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build/kadu-core && /usr/bin/x86_64-pc-linux-gnu-g++ -DKADU_EXPORT_TESTS -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -Dlibkadu_EXPORTS -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build/kadu-core -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build/kadu-core/libkadu_autogen/include -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3 -I/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build/kadu-core/network -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQuickWidgets -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtX11Extras   -DQT_NO_DEBUG -DNDEBUG -Woverloaded-virtual -Wnon-virtual-dtor -march=native -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -fvisibility-inlines-hidden -fPIC    -Wall -Wextra -Wundef -Wunused -Wuninitialized -Wcast-align -Wpointer-arith -fno-common -fvisibility=hidden -fPIC -std=gnu++14  -Woverloaded-virtual -Wnon-virtual-dtor  -fvisibility-inlines-hidden -o CMakeFiles/libkadu.dir/plugin/dependency-graph/plugin-dependency-graph-builder.cpp.o -c /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp
In file included from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:0:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:60:28: error: ‘function’ in namespace ‘std’ does not name a template type
  using PluginFilter = std::function<QSet<QString>(PluginDependencyGraph &)>;
                            ^~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:99: error: ‘PluginFilter’ was not declared in this scope
  PluginDependencyGraph applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const;
                                                                                                   ^~~~~~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:99: note: suggested alternative: ‘eventFilter’
  PluginDependencyGraph applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const;
                                                                                                   ^~~~~~~~~~~~
                                                                                                   eventFilter
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:111: error: template argument 1 is invalid
  PluginDependencyGraph applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const;
                                                                                                               ^
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:111: error: template argument 2 is invalid
In file included from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:0:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:68:104: error: ‘PluginFilter’ does not name a type
  std::map<QString, PluginMetadata> applyFilter(const std::map<QString, PluginMetadata> &plugins, const PluginFilter &filter) const;
                                                                                                        ^~~~~~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: In member function ‘PluginDependencyGraph PluginDependencyGraphBuilder::buildValidGraph(const std::map<QString, PluginMetadata>&) const’:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:96:84: error: no matching function for call to ‘PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata>&, <brace-enclosed initializer list>) const’
  return applyFilters(plugins, {findCycles, findInvalidPlugins, findInvalidProvides});
                                                                                    ^
In file included from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:0:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:24: note: candidate: PluginDependencyGraph PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata>&, int) const
  PluginDependencyGraph applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const;
                        ^~~~~~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:67:24: note:   no known conversion for argument 2 from ‘<brace-enclosed initializer list>’ to ‘int’
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: At global scope:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:107:128: error: ‘PluginFilter’ was not declared in this scope
 PluginDependencyGraph PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const
                                                                                                                                ^~~~~~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:107:128: note: suggested alternative: ‘applyFilter’
 PluginDependencyGraph PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const
                                                                                                                                ^~~~~~~~~~~~
                                                                                                                                applyFilter
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:107:140: error: template argument 1 is invalid
 PluginDependencyGraph PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata> &plugins, std::vector<PluginFilter> filters) const
                                                                                                                                            ^
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:107:140: error: template argument 2 is invalid
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: In member function ‘PluginDependencyGraph PluginDependencyGraphBuilder::applyFilters(const std::map<QString, PluginMetadata>&, int) const’:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:110:21: error: ‘begin’ was not declared in this scope
  for (auto filter : filters)
                     ^~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:110:21: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/string:51:0,
                 from /usr/include/qt5/QtCore/qbytearray.h:52,
                 from /usr/include/qt5/QtCore/qstring.h:49,
                 from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtCore/QObject:1,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:22,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/bits/range_access.h:105:37: note:   ‘std::begin’
   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
                                     ^~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:110:21: error: ‘end’ was not declared in this scope
  for (auto filter : filters)
                     ^~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:110:21: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/string:51:0,
                 from /usr/include/qt5/QtCore/qbytearray.h:52,
                 from /usr/include/qt5/QtCore/qstring.h:49,
                 from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtCore/QObject:1,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:22,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/bits/range_access.h:107:37: note:   ‘std::end’
   template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
                                     ^~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: At global scope:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:115:133: error: ‘PluginFilter’ does not name a type
 std::map<QString, PluginMetadata> PluginDependencyGraphBuilder::applyFilter(const std::map<QString, PluginMetadata> &plugins, const PluginFilter &filter) const
                                                                                                                                     ^~~~~~~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: In member function ‘std::map<QString, PluginMetadata> PluginDependencyGraphBuilder::applyFilter(const std::map<QString, PluginMetadata>&, const int&) const’:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:118:29: error: expression cannot be used as a function
  auto invalid = filter(graph);
                             ^
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp: In lambda function:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:122:88: error: ‘invalid’ is not captured
   [&invalid](const std::map<QString, PluginMetadata>::value_type &v){ return !contains(invalid, v.first); });
                                                                                        ^~~~~~~
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:122:12: note: the lambda has no capture-default
   [&invalid](const std::map<QString, PluginMetadata>::value_type &v){ return !contains(invalid, v.first); });
            ^
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:118:7: note: ‘<typeprefixerror>invalid’ declared here
  auto invalid = filter(graph);
       ^~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/algorithm:62:0,
                 from /usr/include/qt5/QtCore/qglobal.h:109,
                 from /usr/include/qt5/QtCore/qnamespace.h:43,
                 from /usr/include/qt5/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt5/QtCore/qobject.h:46,
                 from /usr/include/qt5/QtCore/QObject:1,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.h:22,
                 from /var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:20:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/bits/stl_algo.h: In instantiation of ‘_OIter std::copy_if(_IIter, _IIter, _OIter, _Predicate) [with _IIter = std::_Rb_tree_const_iterator<std::pair<const QString, PluginMetadata> >; _OIter = std::insert_iterator<std::map<QString, PluginMetadata> >; _Predicate = PluginDependencyGraphBuilder::applyFilter(const std::map<QString, PluginMetadata>&, const int&) const::<lambda(const value_type&)>]’:
/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3/kadu-core/plugin/dependency-graph/plugin-dependency-graph-builder.cpp:122:108:   required from here
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7/bits/stl_algo.h:749:12: error: could not convert ‘__pred.PluginDependencyGraphBuilder::applyFilter(const std::map<QString, PluginMetadata>&, const int&) const::<lambda(const value_type&)>((* & __first.std::_Rb_tree_const_iterator<std::pair<const QString, PluginMetadata> >::operator*()))’ from ‘void’ to ‘bool’
  if (__pred(*__first))
      ~~~~~~^~~~~~~~~~
make[2]: *** [kadu-core/CMakeFiles/libkadu.dir/build.make:11871: kadu-core/CMakeFiles/libkadu.dir/plugin/dependency-graph/plugin-dependency-graph-builder.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build'
make[1]: *** [CMakeFiles/Makefile2:273: kadu-core/CMakeFiles/libkadu.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-im/kadu-4.3-r1/work/kadu-4.3_build'
make: *** [Makefile:141: all] Error 2
 * ERROR: net-im/kadu-4.3-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-11-07 05:33:50 UTC
Created attachment 502900 [details, diff]
kadu-4.3-gcc-7.patch
Comment 2 Larry the Git Cow gentoo-dev 2018-03-22 12:22:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f39950b3a43193931dcbae213fa65321e0aac8

commit 44f39950b3a43193931dcbae213fa65321e0aac8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-03-22 11:10:38 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-03-22 12:16:05 +0000

    net-im/kadu: Fix build with GCC-7
    
    Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
    Closes: https://bugs.gentoo.org/636738
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-im/kadu/files/kadu-4.3-gcc7.patch | 10 ++++++++++
 net-im/kadu/kadu-4.3-r1.ebuild        |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)