[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60884] [octave forge] (geometry) Compile with
From: |
Rafael Laboissiere |
Subject: |
[Octave-bug-tracker] [bug #60884] [octave forge] (geometry) Compile with g++ v11 |
Date: |
Tue, 6 Jul 2021 04:38:45 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?60884>
Summary: [octave forge] (geometry) Compile with g++ v11
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Tue 06 Jul 2021 08:38:43 AM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: other
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
Compilation of the geometry package against g++ 11 fails with the following
error messages:
mkoctfile -c martinez.cpp -o martinez.o
In file included from /usr/include/c++/11/set:60,
from martinez.h:19,
from martinez.cpp:9:
/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 = Martinez::SweepEvent*; _Val =
Martinez::SweepEvent*; _KeyOfValue = std::_Identity<Martinez::SweepEvent*>;
_Compare = Martinez::SegmentComp; _Alloc =
std::allocator<Martinez::SweepEvent*>; std::_Rb_tree<_Key, _Val, _KeyOfValue,
_Compare, _Alloc>::_Const_Link_type = const
std::_Rb_tree_node<Martinez::SweepEvent*>*]’:
/usr/include/c++/11/bits/stl_tree.h:2069: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 =
Martinez::SweepEvent*; _Val = Martinez::SweepEvent*; _KeyOfValue =
std::_Identity<Martinez::SweepEvent*>; _Compare = Martinez::SegmentComp;
_Alloc = std::allocator<Martinez::SweepEvent*>; std::_Rb_tree<_Key, _Val,
_KeyOfValue, _Compare, _Alloc>::key_type = Martinez::SweepEvent*]’
/usr/include/c++/11/bits/stl_tree.h:2122: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 =
Martinez::SweepEvent* const&; _Key = Martinez::SweepEvent*; _Val =
Martinez::SweepEvent*; _KeyOfValue = std::_Identity<Martinez::SweepEvent*>;
_Compare = Martinez::SegmentComp; _Alloc =
std::allocator<Martinez::SweepEvent*>]’
/usr/include/c++/11/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<_Allocator>::rebind<_Key>::other>::const_iterator,
bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key =
Martinez::SweepEvent*; _Compare = Martinez::SegmentComp; _Alloc =
std::allocator<Martinez::SweepEvent*>; typename std::_Rb_tree<_Key, _Key,
std::_Identity<_Tp>, _Compare, typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator =
std::_Rb_tree<Martinez::SweepEvent*, Martinez::SweepEvent*,
std::_Identity<Martinez::SweepEvent*>, Martinez::SegmentComp,
std::allocator<Martinez::SweepEvent*> >::const_iterator; typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other =
std::allocator<Martinez::SweepEvent*>; typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> =
__gnu_cxx::__alloc_traits<std::allocator<Martinez::SweepEvent*>,
Martinez::SweepEvent*>::rebind<Martinez::SweepEvent*>; typename
_Allocator::value_type = Martinez::SweepEvent*; std::set<_Key, _Compare,
_Alloc>::value_type = Martinez::SweepEvent*]’
martinez.cpp:137:27: required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed:
comparison object must be invocable as const
770 | is_invocable_v<const _Compare&, const _Key&, const
_Key&>,
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const
Martinez::SegmentComp&, Martinez::SweepEvent* const&, Martinez::SweepEvent*
const&>’ evaluates to false
make: *** [Makefile:15: martinez.o] Error 1
mkoctfile -c polygon.cpp -o polygon.o
In file included from /usr/include/c++/11/set:60,
from polygon.cpp:12:
/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 = {anonymous}::SweepEvent*; _Val =
{anonymous}::SweepEvent*; _KeyOfValue =
std::_Identity<{anonymous}::SweepEvent*>; _Compare = {anonymous}::SegmentComp;
_Alloc = std::allocator<{anonymous}::SweepEvent*>; std::_Rb_tree<_Key, _Val,
_KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const
std::_Rb_tree_node<{anonymous}::SweepEvent*>*]’:
/usr/include/c++/11/bits/stl_tree.h:2069: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 =
{anonymous}::SweepEvent*; _Val = {anonymous}::SweepEvent*; _KeyOfValue =
std::_Identity<{anonymous}::SweepEvent*>; _Compare = {anonymous}::SegmentComp;
_Alloc = std::allocator<{anonymous}::SweepEvent*>; std::_Rb_tree<_Key, _Val,
_KeyOfValue, _Compare, _Alloc>::key_type = {anonymous}::SweepEvent*]’
/usr/include/c++/11/bits/stl_tree.h:2122: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 =
{anonymous}::SweepEvent* const&; _Key = {anonymous}::SweepEvent*; _Val =
{anonymous}::SweepEvent*; _KeyOfValue =
std::_Identity<{anonymous}::SweepEvent*>; _Compare = {anonymous}::SegmentComp;
_Alloc = std::allocator<{anonymous}::SweepEvent*>]’
/usr/include/c++/11/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<_Allocator>::rebind<_Key>::other>::const_iterator,
bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key =
{anonymous}::SweepEvent*; _Compare = {anonymous}::SegmentComp; _Alloc =
std::allocator<{anonymous}::SweepEvent*>; typename std::_Rb_tree<_Key, _Key,
std::_Identity<_Tp>, _Compare, typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator =
std::_Rb_tree<{anonymous}::SweepEvent*, {anonymous}::SweepEvent*,
std::_Identity<{anonymous}::SweepEvent*>, {anonymous}::SegmentComp,
std::allocator<{anonymous}::SweepEvent*> >::const_iterator; typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other =
std::allocator<{anonymous}::SweepEvent*>; typename
__gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> =
__gnu_cxx::__alloc_traits<std::allocator<{anonymous}::SweepEvent*>,
{anonymous}::SweepEvent*>::rebind<{anonymous}::SweepEvent*>; typename
_Allocator::value_type = {anonymous}::SweepEvent*; std::set<_Key, _Compare,
_Alloc>::value_type = {anonymous}::SweepEvent*]’
polygon.cpp:208:22: required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed:
comparison object must be invocable as const
770 | is_invocable_v<const _Compare&, const _Key&, const
_Key&>,
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const
{anonymous}::SegmentComp&, {anonymous}::SweepEvent* const&,
{anonymous}::SweepEvent* const&>’ evaluates to false
make: *** [Makefile:15: polygon.o] Error 1
The patch attached to this bug report fixes the issues.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 06 Jul 2021 08:38:43 AM UTC Name: compile-with-g++-v11.patch Size:
3KiB By: rlaboiss
<http://savannah.gnu.org/bugs/download.php?file_id=51651>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60884>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60884] [octave forge] (geometry) Compile with g++ v11,
Rafael Laboissiere <=