[MacPorts] #68055: codeblocks fails to build with GCC: error: static assertion failed: comparison object must be invocable as const

MacPorts noreply at macports.org
Sun Aug 27 12:12:59 UTC 2023


#68055: codeblocks fails to build with GCC: error: static assertion failed:
comparison object must be invocable as const
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:                |       Port:  codeblocks
--------------------------+------------------------
 {{{
 :info:build make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_codeblocks/codeblocks/work/codeblocks-20.03/src/plugins/openfileslist'
 :info:build depbase=`echo openfileslistplugin.lo | sed
 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
 :info:build     /bin/sh ../../../libtool  --tag=CXX   --mode=compile
 /opt/local/bin/g++-mp-12 -DHAVE_CONFIG_H -I. -I../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/lib/wx/include/gtk3-unicode-3.0
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/include/wx-3.0
 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -I../../../src/include
 -I../../../src/sdk/wxscintilla/include -DCB_AUTOCONF
 -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -DCB_PRECOMP
 -DPIC   -pipe -I/opt/local/libexec/boost/1.76/include -Os
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -Winvalid-pch -fPIC -fexceptions -MT
 openfileslistplugin.lo -MD -MP -MF $depbase.Tpo -c -o
 openfileslistplugin.lo openfileslistplugin.cpp &&\
 :info:build     mv -f $depbase.Tpo $depbase.Plo
 :info:build PWD=`pwd` cd . && zip
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_codeblocks/codeblocks/work/codeblocks-20.03/src/plugins/openfileslist/openfileslist.zip
 manifest.xml > /dev/null
 :info:build libtool: compile:  /opt/local/bin/g++-mp-12 -DHAVE_CONFIG_H
 -I. -I../../../src/include
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/lib/wx/include/gtk3-unicode-3.0
 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/include/wx-3.0
 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -I../../../src/include
 -I../../../src/sdk/wxscintilla/include -DCB_AUTOCONF
 -I/opt/local/libexec/boost/1.76/include -I/opt/local/include -DCB_PRECOMP
 -DPIC -pipe -I/opt/local/libexec/boost/1.76/include -Os
 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -Winvalid-pch -fPIC -fexceptions -MT
 openfileslistplugin.lo -MD -MP -MF .deps/openfileslistplugin.Tpo -c
 openfileslistplugin.cpp  -fno-common -DPIC -o .libs/openfileslistplugin.o
 :info:build In file included from /opt/local/include/gcc12/c++/map:60,
 :info:build                  from ./manager.h:9,
 :info:build                  from ./cbplugin.h:17,
 :info:build                  from ./sdk_common.h:110,
 :info:build                  from ./sdk_precomp.h:13,
 :info:build                  from ./sdk.h:17:
 :info:build /opt/local/include/gcc12/c++/bits/stl_tree.h: In instantiation
 of 'static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
 _Alloc>::_S_key(_Const_Link_type) [with _Key = ProjectFile*; _Val =
 ProjectFile*; _KeyOfValue = std::_Identity<ProjectFile*>; _Compare =
 TargetFilesData::compareLess; _Alloc = std::allocator<ProjectFile*>;
 _Const_Link_type = const std::_Rb_tree_node<ProjectFile*>*]':
 :info:build /opt/local/include/gcc12/c++/bits/stl_tree.h:2119:47:
 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_unique_pos(const key_type&) [with _Key =
 ProjectFile*; _Val = ProjectFile*; _KeyOfValue =
 std::_Identity<ProjectFile*>; _Compare = TargetFilesData::compareLess;
 _Alloc = std::allocator<ProjectFile*>; key_type = ProjectFile*]'
 :info:build /opt/local/include/gcc12/c++/bits/stl_tree.h:2172:4:
 required from 'std::pair<std::_Rb_tree_iterator<_Val>, bool>
 std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare,
 _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = ProjectFile* const&; _Key =
 ProjectFile*; _Val = ProjectFile*; _KeyOfValue =
 std::_Identity<ProjectFile*>; _Compare = TargetFilesData::compareLess;
 _Alloc = std::allocator<ProjectFile*>]'
 :info:build /opt/local/include/gcc12/c++/bits/stl_set.h:512:25:   required
 from 'std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>,
 _Compare, typename
 __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator,
 bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with
 _Key = ProjectFile*; _Compare = TargetFilesData::compareLess; _Alloc =
 std::allocator<ProjectFile*>; typename std::_Rb_tree<_Key, _Key,
 std::_Identity<_Tp>, _Compare, typename
 __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator =
 std::_Rb_tree<ProjectFile*, ProjectFile*, std::_Identity<ProjectFile*>,
 TargetFilesData::compareLess, std::allocator<ProjectFile*>
 >::const_iterator; typename
 __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other =
 std::allocator<ProjectFile*>; typename
 __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key> =
 __gnu_cxx::__alloc_traits<std::allocator<ProjectFile*>,
 ProjectFile*>::rebind<ProjectFile*>; typename _Alloc::value_type =
 ProjectFile*; value_type = ProjectFile*]'
 :info:build openfileslistplugin.cpp:440:57:   required from here
 :info:build /opt/local/include/gcc12/c++/bits/stl_tree.h:772:15: error:
 static assertion failed: comparison object must be invocable as const
 :info:build   772 |               is_invocable_v<const _Compare&, const
 _Key&, const _Key&>,
 :info:build       |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build /opt/local/include/gcc12/c++/bits/stl_tree.h:772:15: note:
 'std::is_invocable_v<const TargetFilesData::compareLess&, ProjectFile*
 const&, ProjectFile* const&>' evaluates to false
 :info:build make[3]: *** [openfileslistplugin.lo] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68055>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list