Bug 1181868

Summary: GCC 11: exempi package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Liška <martin.liska>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: mgorse
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1181859    

Description Martin Liška 2021-02-06 11:06:18 UTC
The package fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/exempi/standard/x86_64

with:
[  133s] In file included from ../../../XMPFiles/source/FileHandlers/WEBP_Handler.hpp:8,
[  133s]                  from WEBP_Support.cpp:10:
[  133s] ../../../XMPFiles/source/FormatSupport/TIFF_Support.hpp:462:25: warning: 'sKnownTags' defined but not used [-Wunused-variable]
[  133s]   462 | static const XMP_Uns16* sKnownTags[kTIFF_KnownIFDCount] = { sKnownPrimaryIFDTags,
[  133s]       |                         ^~~~~~~~~~
[  133s] In file included from /usr/include/c++/11/map:60,
[  133s]                  from ../../../source/XMP_LibUtils.hpp:15,
[  133s]                  from ../../../XMPFiles/source/XMPFiles_Impl.hpp:16,
[  133s]                  from P2_Support.cpp:16:
[  133s] /usr/include/c++/11/bits/stl_tree.h: In instantiation of 'static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = P2_Clip*; _Val = P2_Clip*; _KeyOfValue = std::_Identity<P2_Clip*>; _Compare = P2SpannedClip_Order; _Alloc = std::allocator<P2_Clip*>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<P2_Clip*>*]':
[  133s] /usr/include/c++/11/bits/stl_tree.h:2115:44:   required from 'std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_equal_pos(const key_type&) [with _Key = P2_Clip*; _Val = P2_Clip*; _KeyOfValue = std::_Identity<P2_Clip*>; _Compare = P2SpannedClip_Order; _Alloc = std::allocator<P2_Clip*>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = P2_Clip*]'
[  133s] /usr/include/c++/11/bits/stl_tree.h:2164:4:   required from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_equal(_Arg&&) [with _Arg = P2_Clip* const&; _Key = P2_Clip*; _Val = P2_Clip*; _KeyOfValue = std::_Identity<P2_Clip*>; _Compare = P2SpannedClip_Order; _Alloc = std::allocator<P2_Clip*>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree<P2_Clip*, P2_Clip*, std::_Identity<P2_Clip*>, P2SpannedClip_Order, std::allocator<P2_Clip*> >::iterator]'
[  133s] /usr/include/c++/11/bits/stl_multiset.h:503:36:   required from 'std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = P2_Clip*; _Compare = P2SpannedClip_Order; _Alloc = std::allocator<P2_Clip*>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree<P2_Clip*, P2_Clip*, std::_Identity<P2_Clip*>, P2SpannedClip_Order, std::allocator<P2_Clip*> >::const_iterator; std::multiset<_Key, _Compare, _Alloc>::value_type = P2_Clip*]'
[  133s] P2_Support.cpp:286:29:   required from here
[  133s] /usr/include/c++/11/bits/stl_tree.h:785:15: error: static assertion failed: comparison object must be invocable as const
[  133s]   785 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
[  133s]       |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  133s] /usr/include/c++/11/bits/stl_tree.h:785:15: note: 'std::is_invocable_v<const P2SpannedClip_Order&, P2_Clip* const&, P2_Clip* const&>' evaluates to false
[  133s] make[3]: *** [Makefile:608: P2_Support.lo] Error 1
Comment 1 Michael Gorse 2021-02-12 17:18:38 UTC
The devel project has v2.5.2, which lists some c++17 fixes. So this is probably fixed there.
Comment 2 Martin Liška 2021-02-12 17:26:23 UTC
Cool, let's close it as fixed.
Comment 3 Martin Liška 2021-03-18 14:02:51 UTC
(In reply to Michael Gorse from comment #1)
> The devel project has v2.5.2, which lists some c++17 fixes. So this is
> probably fixed there.

Can you please make a submit request to openSUSE:Factory?
Comment 4 Michael Gorse 2021-03-19 15:36:44 UTC
Now I think I see why the update never entered factory; baselibs.conf is out of date in the devel package. sr#880139