package papi

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

papi 0.1.1

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.1-1

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

<><> opam-depext.1.2.1-1 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 papi.0.1.1 dune.3.13.0" <><><><><><><><><>

You are using opam 2.1+, where external dependency handling has been integrated: consider calling opam directly, the 'depext' plugin interface is provided for backwards compatibility only
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
libpapi-dev
[NOTE] Package dune is already installed (current version is 3.13.0).
The following actions will be performed:
  - install papi 0.1.1

The following system packages will first need to be installed:
    libpapi-dev

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libpapi-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpfm4:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18774 files and directories currently installed.)
- Preparing to unpack .../libpfm4_4.13.0-1_amd64.deb ...
- Unpacking libpfm4:amd64 (4.13.0-1) ...
- Selecting previously unselected package libpapi7.0:amd64.
- Preparing to unpack .../libpapi7.0_7.0.0-2_amd64.deb ...
- Unpacking libpapi7.0:amd64 (7.0.0-2) ...
- Selecting previously unselected package libsde1:amd64.
- Preparing to unpack .../libsde1_7.0.0-2_amd64.deb ...
- Unpacking libsde1:amd64 (7.0.0-2) ...
- Selecting previously unselected package libpapi-dev:amd64.
- Preparing to unpack .../libpapi-dev_7.0.0-2_amd64.deb ...
- Unpacking libpapi-dev:amd64 (7.0.0-2) ...
- Setting up libsde1:amd64 (7.0.0-2) ...
- Setting up libpfm4:amd64 (4.13.0-1) ...
- Setting up libpapi7.0:amd64 (7.0.0-2) ...
- Setting up libpapi-dev:amd64 (7.0.0-2) ...
- Processing triggers for libc-bin (2.36-9+deb12u3) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3:
-> retrieved papi.0.1.1  (cached)
Processing  2/3: [papi: dune build]
+ /home/opam/.opam/5.1/bin/dune "build" "-p" "papi" "-j" "255" (CWD=/home/opam/.opam/5.1/.opam-switch/build/papi.0.1.1)
- (cd _build/default && /home/opam/.opam/5.1/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.papi_top.objs/byte -I /home/opam/.opam/5.1/lib/ocaml/compiler-libs -I src/.papi.objs/byte -no-alias-deps -o src/.papi_top.objs/byte/papi_top.cmo -c -impl src/papi_top.ml)
- File "src/papi_top.ml", line 4, characters 50-68:
- 4 | let _ = Toploop.use_silently Format.err_formatter "papi_top_init.ml"
-                                                       ^^^^^^^^^^^^^^^^^^
- Error: This expression has type string but an expression was expected of type
-          Toploop.input
- (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -Wall -Wextra -O3 -Wno-implicit-fallthrough -g -I /home/opam/.opam/5.1/lib/ocaml -o stubs.o -c native/stubs.c)
- native/stubs.c: In function '__raise_papi':
- native/stubs.c:83:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-    83 |     exn = caml_named_value ("PAPI_EXCEPTION_CTOR");
-       |         ^
- In file included from native/stubs.c:8:
- /home/opam/.opam/5.1/lib/ocaml/caml/memory.h:275:29: warning: unused variable 'caml__frame' [-Wunused-variable]
-   275 |   struct caml__roots_block *caml__frame = *caml_local_roots_ptr
-       |                             ^~~~~~~~~~~
- native/stubs.c:79:3: note: in expansion of macro 'CAMLparam0'
-    79 |   CAMLparam0();
-       |   ^~~~~~~~~~
[ERROR] The compilation of papi.0.1.1 failed at "dune build -p papi -j 255".

#=== ERROR while compiling papi.0.1.1 =========================================#
# context              2.1.5 | linux/x86_64 | ocaml-base-compiler.5.1.1 | file:///src
# path                 ~/.opam/5.1/.opam-switch/build/papi.0.1.1
# command              ~/.opam/5.1/bin/dune build -p papi -j 255
# exit-code            1
# env-file             ~/.opam/log/papi-113-ffefd9.env
# output-file          ~/.opam/log/papi-113-ffefd9.out
### output ###
# (cd _build/default && /home/opam/.opam/5.1/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.papi_top.objs/byte -I /home/opam/.opam/5.1/lib/ocaml/compiler-libs -I src/.papi.objs/byte -no-alias-deps -o src/.papi_top.objs/byte/papi_top.cmo -c -impl src/papi_top.ml)
# File "src/papi_top.ml", line 4, characters 50-68:
# 4 | let _ = Toploop.use_silently Format.err_formatter "papi_top_init.ml"
#                                                       ^^^^^^^^^^^^^^^^^^
# Error: This expression has type string but an expression was expected of type
#          Toploop.input
# (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -Wall -Wextra -O3 -Wno-implicit-fallthrough -g -I /home/opam/.opam/5.1/lib/ocaml -o stubs.o -c native/stubs.c)
# native/stubs.c: In function '__raise_papi':
# native/stubs.c:83:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#    83 |     exn = caml_named_value ("PAPI_EXCEPTION_CTOR");
#       |         ^
# In file included from native/stubs.c:8:
# /home/opam/.opam/5.1/lib/ocaml/caml/memory.h:275:29: warning: unused variable 'caml__frame' [-Wunused-variable]
#   275 |   struct caml__roots_block *caml__frame = *caml_local_roots_ptr
#       |                             ^~~~~~~~~~~
# native/stubs.c:79:3: note: in expansion of macro 'CAMLparam0'
#    79 |   CAMLparam0();
#       |   ^~~~~~~~~~



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build papi 0.1.1
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam --cli=2.1 install papi.0.1.1 dune.3.13.0 --verbose --yes --confirm-level=unsafe-yes' failed.