You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest version of coin-lemon library, 1.3.1, produces a few compilation warnings and errors when built with C++23 (some of them due to C++17 deprecations, and some others from C++20 errors).
Warnings (when creating the coin-library package and when building another project using this library):
In file included from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/build/647d242d497da836490a4de0e700615d1d33a7d5/src/lemon/color.h:24,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/build/647d242d497da836490a4de0e700615d1d33a7d5/src/lemon/color.cc:22:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/build/647d242d497da836490a4de0e700615d1d33a7d5/src/lemon/maps.h:1973:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
1973 | : public std::iterator<std::forward_iterator_tag, Value> {
| ^~~~~~~~
In file included from /usr/include/c++/12.2.0/bits/stl_algobase.h:65,
from /usr/include/c++/12.2.0/vector:60,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/build/647d242d497da836490a4de0e700615d1d33a7d5/src/lemon/color.h:22:
/usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/build/647d242d497da836490a4de0e700615d1d33a7d5/src/lemon/maps.h:3135:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
3135 | : public std::iterator<std::forward_iterator_tag, Value> {
| ^~~~~~~~
/usr/include/c++/12.2.0/bits/stl_iterator_base_types.h:127:34: note: declared here
127 | struct _GLIBCXX17_DEPRECATED iterator
| ^~~~~~~~
Errors (when building another project using this library):
In file included from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:23,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/graph_extender.h:25,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/list_graph.h:28:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h: In instantiation of ‘void lemon::ArrayMap<_Graph, _Item, _Value>::clear() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:163:9: required from ‘lemon::ArrayMap<_Graph, _Item, _Value>::~ArrayMap() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:154:9: required from ‘lemon::DigraphExtender<Base>::NodeMap<_Value>::NodeMap(const lemon::DigraphExtender<Base>::Digraph&) [with _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>; Base = lemon::ListDigraphBase; lemon::DigraphExtender<Base>::Digraph = lemon::DigraphExtender<lemon::ListDigraphBase>]’
/home/rturrado/projects/OpenQL/src/ql/pass/sch/schedule/detail/scheduler.cc:147:5: required from here
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:320:21: error: ‘lemon::ArrayMap<lemon::DigraphExtender<lemon::ListDigraphBase>, lemon::ListDigraphBase::Node, ql::utils::tree::base::One<ql::ir::compat::Gate> >::Allocator’ {aka ‘class std::allocator<ql::utils::tree::base::One<ql::ir::compat::Gate> >’} has no member named ‘destroy’
320 | allocator.destroy(&(values[id]));
| ~~~~~~~~~~^~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/ql.dir/build.make:1288: CMakeFiles/ql.dir/src/ql/pass/sch/schedule/detail/scheduler.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:23,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/graph_extender.h:25,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/list_graph.h:28,
from /home/rturrado/projects/OpenQL/src/ql/pass/sch/schedule/detail/scheduler.h:10:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h: In instantiation of ‘void lemon::ArrayMap<_Graph, _Item, _Value>::clear() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:163:9: required from ‘lemon::ArrayMap<_Graph, _Item, _Value>::~ArrayMap() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:154:9: required from here
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:320:21: error: ‘lemon::ArrayMap<lemon::DigraphExtender<lemon::ListDigraphBase>, lemon::ListDigraphBase::Node, ql::utils::tree::base::One<ql::ir::compat::Gate> >::Allocator’ {aka ‘class std::allocator<ql::utils::tree::base::One<ql::ir::compat::Gate> >’} has no member named ‘destroy’
320 | allocator.destroy(&(values[id]));
| ~~~~~~~~~~^~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/ql.dir/build.make:1302: CMakeFiles/ql.dir/src/ql/pass/sch/schedule/schedule.cc.o] Error 1
In file included from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:23,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/graph_extender.h:25,
from /home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/list_graph.h:28,
from /home/rturrado/projects/OpenQL/src/ql/pass/sch/schedule/detail/scheduler.h:10:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h: In instantiation of ‘void lemon::ArrayMap<_Graph, _Item, _Value>::clear() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’:
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:163:9: required from ‘lemon::ArrayMap<_Graph, _Item, _Value>::~ArrayMap() [with _Graph = lemon::DigraphExtender<lemon::ListDigraphBase>; _Item = lemon::ListDigraphBase::Node; _Value = ql::utils::tree::base::One<ql::ir::compat::Gate>]’
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/default_map.h:154:9: required from ‘constexpr void std::destroy_at(_Tp*) [with _Tp = ql::pass::sch::schedule::detail::Scheduler]’
/usr/include/c++/12.2.0/bits/stl_construct.h:149:22: required from ‘constexpr void std::_Destroy(_Tp*) [with _Tp = ql::pass::sch::schedule::detail::Scheduler]’
/usr/include/c++/12.2.0/bits/alloc_traits.h:648:17: required from ‘static constexpr void std::allocator_traits<std::allocator<void> >::destroy(allocator_type&, _Up*) [with _Up = ql::pass::sch::schedule::detail::Scheduler; allocator_type = std::allocator<void>]’
/usr/include/c++/12.2.0/bits/shared_ptr_base.h:613:35: required from ‘void std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_dispose() [with _Tp = ql::pass::sch::schedule::detail::Scheduler; _Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
/usr/include/c++/12.2.0/bits/shared_ptr_base.h:611:7: required from here
/home/rturrado/.conan/data/coin-lemon/1.3.1/_/_/package/647d242d497da836490a4de0e700615d1d33a7d5/include/lemon/bits/array_map.h:320:21: error: ‘lemon::ArrayMap<lemon::DigraphExtender<lemon::ListDigraphBase>, lemon::ListDigraphBase::Node, ql::utils::tree::base::One<ql::ir::compat::Gate> >::Allocator’ {aka ‘class std::allocator<ql::utils::tree::base::One<ql::ir::compat::Gate> >’} has no member named ‘destroy’
320 | allocator.destroy(&(values[id]));
| ~~~~~~~~~~^~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/ql.dir/build.make:1428: CMakeFiles/ql.dir/src/ql/pass/map/qubits/map/detail/mapper.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:294: CMakeFiles/ql.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
Description
Latest version of
coin-lemon
library, 1.3.1, produces a few compilation warnings and errors when built with C++23 (some of them due to C++17 deprecations, and some others from C++20 errors).Warnings (when creating the
coin-library
package and when building another project using this library):Errors (when building another project using this library):
Package and Environment Details
Conan profile
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=12
compiler.libcxx=libstdc++11
compiler.cppstd=23
build_type=Debug
[options]
[conf]
[build_requires]
[env]
AOC_2022_BUILD_TESTS=True
CMAKE_CXX_COMPILER=g++
CMAKE_C_COMPILER=gcc
RANGE_V3_DOCS=false
RANGE_V3_EXAMPLES=false
RANGE_V3_TESTS=false
Steps to reproduce
From
conan-center-index/recipes/coin-lemon/all
:Where
~/projects/OpenQL/conan/profiles/unixlike-gcc-debug-tests
is the profile shown above.Logs
Click to expand log
The text was updated successfully, but these errors were encountered: