package mccs

  1. Overview
  2. Docs
On This Page
  1. Error log

mccs 1.1+10

Error log

The package failed to build. The error log from opam follows.

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> installed opam-depext.1.2.3
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy mccs.1.1+10 extlib.1.7.9 dune.3.16.0 cudf.0.10 cppo.1.7.0 conf-c++.1.0" 

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
g++
[NOTE] Package dune is already installed (current version is 3.16.0).
The following actions will be performed:
  - install cppo     1.7.0
  - install conf-c++ 1.0
  - install extlib   1.7.9
  - install cudf     0.10
  - install mccs     1.1+10
===== 5 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/15:
Processing  3/15:
Processing  4/15:
Processing  5/15: [conf-c++: c++]
-> retrieved cppo.1.7.0  (cached)
Processing  6/15: [mccs.1.1+10: http] [conf-c++: c++]
Processing  7/15: [mccs.1.1+10: http] [conf-c++: c++] [cppo: dune build]
-> retrieved cudf.0.10  (cached)
-> retrieved extlib.1.7.9  (cached)
- c++ (Debian 12.2.0-14) 12.2.0
- Copyright (C) 2022 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions.  There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- 
-> compiled  conf-c++.1.0
Processing  7/15: [mccs.1.1+10: http] [cppo: dune build]
-> installed conf-c++.1.0
Processing  8/15: [mccs.1.1+10: http] [cppo: dune build]
Processing  8/15: [cppo: dune build]
-> retrieved mccs.1.1+10  (https://github.com/AltGr/ocaml-mccs/archive/1.1+10.tar.gz)
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "cppo" "-j" "39" "@install" (CWD=/home/opam/.opam/4.09/.opam-switch/build/cppo.1.7.0)
-> compiled  cppo.1.7.0
-> installed cppo.1.7.0
Processing 10/15: [extlib: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "extlib" "-j" "39" (CWD=/home/opam/.opam/4.09/.opam-switch/build/extlib.1.7.9)
-> compiled  extlib.1.7.9
-> installed extlib.1.7.9
Processing 12/15: [cudf: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "cudf" "-j" "39" (CWD=/home/opam/.opam/4.09/.opam-switch/build/cudf.0.10)
-> compiled  cudf.0.10
-> installed cudf.0.10
Processing 14/15: [mccs: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "mccs" "-j" "39" (CWD=/home/opam/.opam/4.09/.opam-switch/build/mccs.1.1+10)
- (cd _build/default/src/glpk && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -fPIC -Wno-parentheses -g -I /home/opam/.opam/4.09/lib/ocaml -o wclique1.o -c wclique1.c)
- src/glpk/misc/wclique1.c: In function '_glp_wclique1':
- src/glpk/misc/wclique1.c:121:7: warning: 'memset' specified bound between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
- src/glpk/misc/wclique1.c:123:7: warning: 'memset' specified bound between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
- File "src/dune", line 5, characters 63-73:
- 5 |    new_criteria notuptodate_criteria removed_criteria mccscudf mccs_stubs)
-                                                                    ^^^^^^^^^^
- (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -I . -DUSEGLPK -g -I /home/opam/.opam/4.09/lib/ocaml -I /home/opam/.opam/4.09/lib/cudf -I /home/opam/.opam/4.09/lib/extlib -I glpk -o mccs_stubs.o -c mccs_stubs.cpp)
- In file included from /usr/include/c++/12/map:60,
-                  from mccs_stubs.cpp:14:
- /usr/include/c++/12/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 = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; _Const_Link_type = const std::_Rb_tree_node<CUDFVersionedPackage*>*]':
- /usr/include/c++/12/bits/stl_tree.h:2117: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 = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; key_type = CUDFVersionedPackage*]'
- /usr/include/c++/12/bits/stl_tree.h:2170: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 = CUDFVersionedPackage* const&; _Key = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>]'
- /usr/include/c++/12/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 = CUDFVersionedPackage*; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<CUDFVersionedPackage*, CUDFVersionedPackage*, std::_Identity<CUDFVersionedPackage*>, CUDFPackage_comparator, std::allocator<CUDFVersionedPackage*> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<CUDFVersionedPackage*>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<CUDFVersionedPackage*>, CUDFVersionedPackage*>::rebind<CUDFVersionedPackage*>; typename _Allocator::value_type = CUDFVersionedPackage*; value_type = CUDFVersionedPackage*]'
- mccs_stubs.cpp:316:39:   required from here
- /usr/include/c++/12/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++/12/bits/stl_tree.h:770:15: note: 'std::is_invocable_v<const CUDFPackage_comparator&, CUDFVersionedPackage* const&, CUDFVersionedPackage* const&>' evaluates to false
[ERROR] The compilation of mccs.1.1+10 failed at "dune build -p mccs -j 39".

#=== ERROR while compiling mccs.1.1+10 ========================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.4.09.1 | file:///src
# path                 ~/.opam/4.09/.opam-switch/build/mccs.1.1+10
# command              ~/.opam/4.09/bin/dune build -p mccs -j 39
# exit-code            1
# env-file             ~/.opam/log/mccs-115-116907.env
# output-file          ~/.opam/log/mccs-115-116907.out
### output ###
# (cd _build/default/src/glpk && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -fno-strict-aliasing -fwrapv -fPIC -Wno-parentheses -g -I /home/opam/.opam/4.09/lib/ocaml -o wclique1.o -c wclique1.c)
# src/glpk/misc/wclique1.c: In function '_glp_wclique1':
# src/glpk/misc/wclique1.c:121:7: warning: 'memset' specified bound between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
# src/glpk/misc/wclique1.c:123:7: warning: 'memset' specified bound between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
# File "src/dune", line 5, characters 63-73:
# 5 |    new_criteria notuptodate_criteria removed_criteria mccscudf mccs_stubs)
#                                                                    ^^^^^^^^^^
# (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -I . -DUSEGLPK -g -I /home/opam/.opam/4.09/lib/ocaml -I /home/opam/.opam/4.09/lib/cudf -I /home/opam/.opam/4.09/lib/extlib -I glpk -o mccs_stubs.o -c mccs_stubs.cpp)
# In file included from /usr/include/c++/12/map:60,
#                  from mccs_stubs.cpp:14:
# /usr/include/c++/12/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 = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; _Const_Link_type = const std::_Rb_tree_node<CUDFVersionedPackage*>*]':
# /usr/include/c++/12/bits/stl_tree.h:2117: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 = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; key_type = CUDFVersionedPackage*]'
# /usr/include/c++/12/bits/stl_tree.h:2170: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 = CUDFVersionedPackage* const&; _Key = CUDFVersionedPackage*; _Val = CUDFVersionedPackage*; _KeyOfValue = std::_Identity<CUDFVersionedPackage*>; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>]'
# /usr/include/c++/12/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 = CUDFVersionedPackage*; _Compare = CUDFPackage_comparator; _Alloc = std::allocator<CUDFVersionedPackage*>; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<CUDFVersionedPackage*, CUDFVersionedPackage*, std::_Identity<CUDFVersionedPackage*>, CUDFPackage_comparator, std::allocator<CUDFVersionedPackage*> >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<CUDFVersionedPackage*>; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key> = __gnu_cxx::__alloc_traits<std::allocator<CUDFVersionedPackage*>, CUDFVersionedPackage*>::rebind<CUDFVersionedPackage*>; typename _Allocator::value_type = CUDFVersionedPackage*; value_type = CUDFVersionedPackage*]'
# mccs_stubs.cpp:316:39:   required from here
# /usr/include/c++/12/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++/12/bits/stl_tree.h:770:15: note: 'std::is_invocable_v<const CUDFPackage_comparator&, CUDFVersionedPackage* const&, CUDFVersionedPackage* const&>' evaluates to false



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build mccs 1.1+10
+- 
+- The following changes have been performed
| - install conf-c++ 1.0
| - install cppo     1.7.0
| - install cudf     0.10
| - install extlib   1.7.9
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.09/.opam-switch/backup/state-20240912205824.export"
'opam --cli=2.1 install mccs.1.1+10 extlib.1.7.9 dune.3.16.0 cudf.0.10 cppo.1.7.0 conf-c++.1.0 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.