Organisationsygrekocaml-zstdc50809 ()(lower-bound)

(lower-bound)

Link Copied
Code Copied

Logs

2024-03-27 15:25.26: New job: test ygrek/ocaml-zstd https://github.com/ygrek/ocaml-zstd.git#refs/heads/master (c50809df5c0474454740948ad0e7a1c77461cce0) (linux-x86_64:(lower-bound))
Base: ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ygrek/ocaml-zstd.git" -b "master" && cd "ocaml-zstd" && git reset --hard c50809df
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
# debian-12-4.02_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 zstd.opam ./
RUN opam pin add -yn zstd.dev './'
ENV DEPS="base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 conf-m4.1 conf-pkg-config.1.0 conf-which.1 conf-zstd.0.1 ctypes.0.1.1 dune.3.7.0 extlib.1.5.3 fileutils.0.4.4 integers.0.1.0 oasis.0.3.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-data-notation.0.0.9 ocaml-secondary-compiler.4.08.1 ocamlbuild.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 ocamlify.0.0.1 ocamlmod.0.0.3 ounit.1.1.2 result.1.0 topkg.0.7.5 type_conv.108.00.02"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y zstd.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2024-03-27 15:25.26: Using cache hint "ygrek/ocaml-zstd-ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809-debian-12-4.02_opam-2.1-d98947d06e23d24da9d18e85fc7a416f"
2024-03-27 15:25.26: Using OBuilder spec:
((from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
 (comment debian-12-4.02_opam-2.1)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src zstd.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn zstd.dev './'"))
 (env DEPS "base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 conf-m4.1 conf-pkg-config.1.0 conf-which.1 conf-zstd.0.1 ctypes.0.1.1 dune.3.7.0 extlib.1.5.3 fileutils.0.4.4 integers.0.1.0 oasis.0.3.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-data-notation.0.0.9 ocaml-secondary-compiler.4.08.1 ocamlbuild.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 ocamlify.0.0.1 ocamlmod.0.0.3 ounit.1.1.2 result.1.0 topkg.0.7.5 type_conv.108.00.02")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y zstd.dev $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst /src))
 (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2024-03-27 15:25.26: Waiting for resource in pool OCluster
2024-03-27 16:49.16: Waiting for worker…
2024-03-27 17:02.42: Got resource from pool OCluster
Building on x86-bm-c4.sw.ocaml.org
All commits already cached
HEAD is now at c50809d Bump version


(from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
Unable to find image 'ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809' locally
docker.io/ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809: Pulling from ocaml/opam
e89ed752ee40: Pulling fs layer
e89ed752ee40: Verifying Checksum
e89ed752ee40: Download complete
e89ed752ee40: Pull complete
Digest: sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
Status: Downloaded newer image for ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
2024-03-27 17:04.40 ---> saved as "e4ba768d890dc0a9ff55e849fae0ca07f09b7f1c09b18efc19ffb4619f867357"


/: (comment debian-12-4.02_opam-2.1)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2024-03-27 17:04.40 ---> saved as "2fd78cc77d73ae1fe3d7f7fe066def479aea7c419e4d47bc988740028d734856"


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.


This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.


Continue? [Y/n] y
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-03-27 17:06.03 ---> saved as "f40b005e6e5783ae6048980ce179df5e5c472f689b630509ae80cce09f4f81af"


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.02.3
2.1.5
2024-03-27 17:06.03 ---> saved as "3b061f6683b59b43140f1af9b7008d0f19c695253f5919d604d7a2c7300bb5f8"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-03-27 17:06.03 ---> saved as "eb9b0c5dbf4fd18c2108839b962375454dbc47d5d6a07896b322809780c3a0de"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   a6ba98231d..fe00df86c9  master     -> origin/master
cbb8cd94c3 conf-pkg-config: rename nixos pkgconfig -> pkg-config


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository


Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2024-03-27 17:07.12 ---> saved as "47ac3bb10d10a348f10ad4b6d776181657938675e070b6dd459236b00d5a01ff"


/src: (copy (src zstd.opam) (dst ./))
2024-03-27 17:07.12 ---> saved as "591ba60a906afbb5693669c6e3d09e5778ba454ade132062055b3a3c0b9fefce"


/src: (run (network host)
           (shell "opam pin add -yn zstd.dev './'"))
[zstd.dev] synchronised (file:///src)
zstd is now pinned to file:///src (version dev)
2024-03-27 17:07.14 ---> saved as "be84805b583ef1de7a2294348e020d6c2c34f7a78d7fd0fad28779da2fb088f4"


/src: (env DEPS "base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 conf-m4.1 conf-pkg-config.1.0 conf-which.1 conf-zstd.0.1 ctypes.0.1.1 dune.3.7.0 extlib.1.5.3 fileutils.0.4.4 integers.0.1.0 oasis.0.3.0 ocaml.4.02.3 ocaml-base-compiler.4.02.3 ocaml-config.1 ocaml-data-notation.0.0.9 ocaml-secondary-compiler.4.08.1 ocamlbuild.0 ocamlfind.1.8.1 ocamlfind-secondary.1.8.1 ocamlify.0.0.1 ocamlmod.0.0.3 ounit.1.1.2 result.1.0 topkg.0.7.5 type_conv.108.00.02")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y zstd.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [147 kB]
- Fetched 251 kB in 0s (1042 kB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[zstd.dev] synchronised (no changes)


[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-ocamlbuild is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
    libffi-dev libzstd-dev m4 pkg-config


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libffi-dev" "libzstd-dev" "m4" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed


2024-03-27 17:07.29 ---> saved as "ecc7a5b5f8b2999f142ff918d9bd5ea3961e33e1c7ee2966090055cb4878fd69"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam install $DEPS"))
[NOTE] Package ocaml-config is already installed (current version is 1).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.02.3).
[NOTE] Package ocaml is already installed (current version is 4.02.3).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-ocamlbuild is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
  - install   ocamlbuild               0
  - install   conf-pkg-config          1.0
  - install   conf-m4                  1
  - install   result                   1.0
  - install   conf-which               1
  - downgrade ocaml-secondary-compiler 4.08.1-1 to 4.08.1
  - install   conf-zstd                0.1
  - install   ocamlfind                1.8.1
  - install   topkg                    0.7.5
  - install   ocamlify                 0.0.1
  - install   ocamlfind-secondary      1.8.1
  - install   camlp4                   4.02+1
  - install   integers                 0.1.0
  - install   dune                     3.7.0
  - install   type_conv                108.00.02
  - install   ounit                    1.1.2
  - install   extlib                   1.5.3
  - install   ocaml-data-notation      0.0.9
  - install   fileutils                0.4.4
  - install   ocamlmod                 0.0.3
  - install   oasis                    0.3.0
  - install   ctypes                   0.1.1
===== 21 to install | 1 to downgrade =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlp4.4.02+1  (cached)
-> retrieved ctypes.0.1.1  (cached)
-> retrieved dune.3.7.0  (cached)
-> installed conf-m4.1
-> installed conf-pkg-config.1.0
-> installed conf-which.1
-> retrieved extlib.1.5.3  (cached)
-> retrieved fileutils.0.4.4  (cached)
-> retrieved integers.0.1.0  (cached)
-> installed conf-zstd.0.1
-> retrieved oasis.0.3.0  (cached)
-> installed ocamlbuild.0
-> retrieved ocaml-data-notation.0.0.9  (cached)
-> retrieved ocamlfind.1.8.1  (cached)
-> retrieved ocamlfind-secondary.1.8.1  (cached)
-> retrieved ocamlify.0.0.1  (cached)
-> retrieved ocamlmod.0.0.3  (cached)
-> retrieved ounit.1.1.2  (cached)
-> retrieved result.1.0  (cached)
-> retrieved type_conv.108.00.02  (cached)
-> retrieved topkg.0.7.5  (cached)
-> retrieved ocaml-secondary-compiler.4.08.1  (cached)
-> installed result.1.0
-> installed ocamlfind.1.8.1
-> installed ocamlify.0.0.1
-> installed topkg.0.7.5
-> installed integers.0.1.0
-> installed camlp4.4.02+1
-> installed type_conv.108.00.02
-> installed ounit.1.1.2
-> installed ocaml-data-notation.0.0.9
-> installed extlib.1.5.3
-> installed fileutils.0.4.4
-> installed ocamlmod.0.0.3
-> installed oasis.0.3.0
[ERROR] The compilation of ctypes.0.1.1 failed at "make".
-> removed   ocaml-secondary-compiler.4.08.1-1
-> installed ocaml-secondary-compiler.4.08.1
-> installed ocamlfind-secondary.1.8.1
-> installed dune.3.7.0


#=== ERROR while compiling ctypes.0.1.1 =======================================#
# context     2.1.5 | linux/x86_64 | ocaml-base-compiler.4.02.3 | file:///home/opam/opam-repository
# path        ~/.opam/4.02/.opam-switch/build/ctypes.0.1.1
# command     /usr/bin/make
# exit-code   2
# env-file    ~/.opam/log/ctypes-1-23e84b.env
# output-file ~/.opam/log/ctypes-1-23e84b.out
### output ###
# oasis setup
# ocaml setup.ml -configure --enable-tests
# File "/home/opam/.opam/4.02/.opam-switch/build/oasis.0.3.0/src/oasis/OASISString.ml", line 118, characters 8-26:
# Warning 3: deprecated: String.set
# Use Bytes.set instead.
# File "/home/opam/.opam/4.02/.opam-switch/build/oasis.0.3.0/src/oasis/OASISLibrary.ml", line 402, characters 6-24:
# Warning 3: deprecated: Lazy.lazy_from_fun
# Use Lazy.from_fun instead.
# testing for brew: .............................. unavailable
# testing for pkg-config: ........................ available
# testing for libffi: ............................ available
# 
# Configuration: 
# ocamlfind: ........................................... /home/opam/.opam/4.02/bin/ocamlfind
# ocamlc: .............................................. /home/opam/.opam/4.02/bin/ocamlc.opt
# ocamlopt: ............................................ /home/opam/.opam/4.02/bin/ocamlopt.opt
# ocamlbuild: .......................................... /home/opam/.opam/4.02/bin/ocamlbuild
# Package name: ........................................ ctypes
# Package version: ..................................... 0.1
# os_type: ............................................. Unix
# system: .............................................. linux
# architecture: ........................................ amd64
# ccomp_type: .......................................... cc
# ocaml_version: ....................................... 4.02.3
# standard_library_default: ............................ /home/opam/.opam/4.02/lib/ocaml
# standard_library: .................................... /home/opam/.opam/4.02/lib/ocaml
# standard_runtime: .................................... /home/opam/.opam/4.02/bin/ocamlrun
# bytecomp_c_compiler: ................................. gcc -O -fcommon -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O -fPIC
# native_c_compiler: ................................... gcc -O -fcommon -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
# model: ............................................... default
# ext_obj: ............................................. .o
# ext_asm: ............................................. .s
# ext_lib: ............................................. .a
# ext_dll: ............................................. .so
# default_executable_name: ............................. a.out
# systhread_supported: ................................. true
# Install architecture-independent files dir: .......... /usr/local
# Install architecture-dependent files in dir: ......... $prefix
# User executables: .................................... $exec_prefix/bin
# System admin executables: ............................ $exec_prefix/sbin
# Program executables: ................................. $exec_prefix/libexec
# Read-only single-machine data: ....................... $prefix/etc
# Modifiable architecture-independent data: ............ $prefix/com
# Modifiable single-machine data: ...................... $prefix/var
# Object code libraries: ............................... $exec_prefix/lib
# Read-only arch-independent data root: ................ $prefix/share
# Read-only architecture-independent data: ............. $datarootdir
# Info documentation: .................................. $datarootdir/info
# Locale-dependent data: ............................... $datarootdir/locale
# Man documentation: ................................... $datarootdir/man
# Documentation root: .................................. $datarootdir/doc/$pkg_name
# HTML documentation: .................................. $docdir
# DVI documentation: ................................... $docdir
# PDF documentation: ................................... $docdir
# PS documentation: .................................... $docdir
# findlib_version: ..................................... 1.8.1
# is_native: ........................................... true
# suffix_program: ...................................... 
# Remove a file.: ...................................... rm -f
# Remove a directory.: ................................. rm -rf
# Turn ocaml debug flag on: ............................ true
# Turn ocaml profile flag on: .......................... false
# Compiler support generation of .cmxs.: ............... true
# OCamlbuild additional flags: ......................... 
# Create documentations: ............................... true
# Compile tests executable and library and run them: ... true
# pkg_unix: ............................................ /home/opam/.opam/4.02/lib/ocaml
# pkg_ounit: ........................................... /home/opam/.opam/4.02/lib/oUnit
# ocamldoc: ............................................ /home/opam/.opam/4.02/bin/ocamldoc
# 
# cc -fPIC -g -Wall   -c -o tests/clib/test_functions.o tests/clib/test_functions.c
# cd tests/clib && cc -g -shared -o test_functions.so test_functions.o
# ocaml setup.ml -build
# File "/home/opam/.opam/4.02/.opam-switch/build/oasis.0.3.0/src/oasis/OASISString.ml", line 118, characters 8-26:
# Warning 3: deprecated: String.set
# Use Bytes.set instead.
# File "/home/opam/.opam/4.02/.opam-switch/build/oasis.0.3.0/src/oasis/OASISLibrary.ml", line 402, characters 6-24:
# Warning 3: deprecated: Lazy.lazy_from_fun
# Use Lazy.from_fun instead.
# /home/opam/.opam/4.02/bin/ocamlopt.opt unix.cmxa -I /home/opam/.opam/4.02/lib/ocaml/ocamlbuild /home/opam/.opam/4.02/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /home/opam/.opam/4.02/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/unsigned_stubs.c
# mv unsigned_stubs.o src/unsigned_stubs.o
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/managed_buffer_stubs.c
# mv managed_buffer_stubs.o src/managed_buffer_stubs.o
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/type_info_stubs.c
# mv type_info_stubs.o src/type_info_stubs.o
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/ctypes_stubs.c
# mv ctypes_stubs.o src/ctypes_stubs.o
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/posix_types_stubs.c
# mv posix_types_stubs.o src/posix_types_stubs.o
# /home/opam/.opam/4.02/bin/ocamlmklib -o src/ctypes_stubs -lffi src/unsigned_stubs.o src/managed_buffer_stubs.o src/type_info_stubs.o src/ctypes_stubs.o src/posix_types_stubs.o
# ocamlfind ocamldep -package unix -modules src/unsigned.mli > src/unsigned.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/unsigned.cmi src/unsigned.mli
# ocamlfind ocamldep -package unix -modules src/unsigned.ml > src/unsigned.ml.depends
# ocamlfind ocamldep -package unix -modules src/signed.mli > src/signed.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/signed.cmi src/signed.mli
# ocamlfind ocamldep -package unix -modules src/signed.ml > src/signed.ml.depends
# ocamlfind ocamldep -package unix -modules src/ctypes.mli > src/ctypes.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes.cmi src/ctypes.mli
# ocamlfind ocamldep -package unix -modules src/ctypes.ml > src/ctypes.ml.depends
# ocamlfind ocamldep -package unix -modules src/ctypes_raw.ml > src/ctypes_raw.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes_raw.cmo src/ctypes_raw.ml
# ocamlfind ocamldep -package unix -modules src/posixTypes.mli > src/posixTypes.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/posixTypes.cmi src/posixTypes.mli
# ocamlfind ocamldep -package unix -modules src/posixTypes.ml > src/posixTypes.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/unsigned.cmo src/unsigned.ml
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/signed.cmo src/signed.ml
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes.cmo src/ctypes.ml
# + ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes.cmo src/ctypes.ml
# File "src/ctypes.ml", line 427, characters 21-1372:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 468, characters 61-291:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 478, characters 12-192:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 537, characters 12-25:
# Warning 3: deprecated: String.create
# Use Bytes.create instead.
# File "src/ctypes.ml", line 539, characters 6-30:
# Warning 3: deprecated: String.set
# Use Bytes.set instead.
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/posixTypes.cmo src/posixTypes.ml
# ocamlfind ocamlc -a -dllib -lctypes_stubs -cclib -lctypes_stubs -cclib -lffi src/unsigned.cmo src/signed.cmo src/ctypes_raw.cmo src/ctypes.cmo src/posixTypes.cmo -o src/ctypes.cma
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/unsigned.cmx src/unsigned.ml
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/signed.cmx src/signed.ml
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes_raw.cmx src/ctypes_raw.ml
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes.cmx src/ctypes.ml
# + ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/ctypes.cmx src/ctypes.ml
# File "src/ctypes.ml", line 427, characters 21-1372:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 468, characters 61-291:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 478, characters 12-192:
# Warning 8: this pattern-matching is not exhaustive.
# Here is an example of a value that is not matched:
# Primitive _
# File "src/ctypes.ml", line 537, characters 12-25:
# Warning 3: deprecated: String.create
# Use Bytes.create instead.
# File "src/ctypes.ml", line 539, characters 6-30:
# Warning 3: deprecated: String.set
# Use Bytes.set instead.
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/posixTypes.cmx src/posixTypes.ml
# ocamlfind ocamlopt -a -cclib -lctypes_stubs -cclib -lffi src/unsigned.cmx src/signed.cmx src/ctypes_raw.cmx src/ctypes.cmx src/posixTypes.cmx -o src/ctypes.cmxa
# ocamlfind ocamlopt -shared -I src/ -cclib -lffi src/ctypes.cmx -o src/ctypes.cmxs
# ocamlfind ocamlc -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -c src/dl_stubs.c
# mv dl_stubs.o src/dl_stubs.o
# /home/opam/.opam/4.02/bin/ocamlmklib -o src/ctypes-foreign_stubs -lffi src/dl_stubs.o
# ocamlfind ocamldep -package unix -modules src/dl.mli > src/dl.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/dl.cmi src/dl.mli
# ocamlfind ocamldep -package unix -modules src/dl.ml > src/dl.ml.depends
# ocamlfind ocamldep -package unix -modules src/foreign.mli > src/foreign.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/foreign.cmi src/foreign.mli
# ocamlfind ocamldep -package unix -modules src/foreign.ml > src/foreign.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/dl.cmo src/dl.ml
# ocamlfind ocamlc -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/foreign.cmo src/foreign.ml
# ocamlfind ocamlc -a -dllib -lctypes-foreign_stubs -cclib -lctypes-foreign_stubs -cclib -lffi src/dl.cmo src/foreign.cmo -o src/ctypes-foreign.cma
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/dl.cmx src/dl.ml
# ocamlfind ocamlopt -c -g -annot -I src -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -ccopt -fPIC -ccopt -Wall -ccopt -Wno-unused-variable -ccopt -g -package unix -I src -o src/foreign.cmx src/foreign.ml
# ocamlfind ocamlopt -a -cclib -lctypes-foreign_stubs -cclib -lffi src/dl.cmx src/foreign.cmx -o src/ctypes-foreign.cmxa
# ocamlfind ocamlopt -shared -linkall -I src/ -cclib -lffi src/ctypes-foreign.cmxa -o src/ctypes-foreign.cmxs
# ocamlfind ocamldep -package unix -modules examples/fts/fts.mli > examples/fts/fts.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -I examples/fts -package unix -I examples/fts -I src -o examples/fts/fts.cmi examples/fts/fts.mli
# ocamlfind ocamldep -package unix -modules examples/fts/fts.ml > examples/fts/fts.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -I examples/fts -package unix -I examples/fts -I src -o examples/fts/fts.cmo examples/fts/fts.ml
# ocamlfind ocamlc -a examples/fts/fts.cmo -o examples/fts/fts.cma
# ocamlfind ocamlopt -c -g -annot -I src -I src -I examples/fts -package unix -I examples/fts -I src -o examples/fts/fts.cmx examples/fts/fts.ml
# ocamlfind ocamlopt -a examples/fts/fts.cmx -o examples/fts/fts.cmxa
# ocamlfind ocamlopt -shared examples/fts/fts.cmx -o examples/fts/fts.cmxs
# ocamlfind ocamldep -package unix -modules examples/sigset/sigset.mli > examples/sigset/sigset.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -package unix -I examples/sigset -I src -o examples/sigset/sigset.cmi examples/sigset/sigset.mli
# ocamlfind ocamldep -package unix -modules examples/sigset/sigset.ml > examples/sigset/sigset.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -package unix -I examples/sigset -I src -o examples/sigset/sigset.cmo examples/sigset/sigset.ml
# ocamlfind ocamlc -a examples/sigset/sigset.cmo -o examples/sigset/sigset.cma
# ocamlfind ocamlopt -c -g -annot -I src -I src -package unix -I examples/sigset -I src -o examples/sigset/sigset.cmx examples/sigset/sigset.ml
# ocamlfind ocamlopt -a examples/sigset/sigset.cmx -o examples/sigset/sigset.cmxa
# ocamlfind ocamlopt -shared examples/sigset/sigset.cmx -o examples/sigset/sigset.cmxs
# ocamlfind ocamldep -package unix -modules examples/ncurses/ncurses.mli > examples/ncurses/ncurses.mli.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -I examples/ncurses -package unix -I examples/ncurses -I src -o examples/ncurses/ncurses.cmi examples/ncurses/ncurses.mli
# ocamlfind ocamldep -package unix -modules examples/ncurses/ncurses.ml > examples/ncurses/ncurses.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -I examples/ncurses -package unix -I examples/ncurses -I src -o examples/ncurses/ncurses.cmo examples/ncurses/ncurses.ml
# ocamlfind ocamlc -a -cclib -lncurses examples/ncurses/ncurses.cmo -o examples/ncurses/ncurses.cma
# ocamlfind ocamlopt -c -g -annot -I src -I src -I examples/ncurses -package unix -I examples/ncurses -I src -o examples/ncurses/ncurses.cmx examples/ncurses/ncurses.ml
# ocamlfind ocamlopt -a -cclib -lncurses examples/ncurses/ncurses.cmx -o examples/ncurses/ncurses.cmxa
# ocamlfind ocamlopt -shared examples/ncurses/ncurses.cmx -o examples/ncurses/ncurses.cmxs
# ocamlfind ocamldep -package unix -modules examples/ncurses/ncurses_cmd.ml > examples/ncurses/ncurses_cmd.ml.depends
# ocamlfind ocamlc -c -g -annot -I src -I src -I examples/ncurses -package unix -I examples/ncurses -I src -o examples/ncurses/ncurses_cmd.cmo examples/ncurses/ncurses_cmd.ml
# ocamlfind ocamlopt -c -g -annot -I src -I src -I examples/ncurses -package unix -I examples/ncurses -I src -o examples/ncurses/ncurses_cmd.cmx examples/ncurses/ncurses_cmd.ml
# ocamlfind ocamlopt -g -I src/ -I src/ -linkpkg -package unix src/ctypes.cmxa src/ctypes-foreign.cmxa examples/ncurses/ncurses.cmxa examples/ncurses/ncurses_cmd.cmx -o examples/ncurses/ncurses_cmd.native
# + ocamlfind ocamlopt -g -I src/ -I src/ -linkpkg -package unix src/ctypes.cmxa src/ctypes-foreign.cmxa examples/ncurses/ncurses.cmxa examples/ncurses/ncurses_cmd.cmx -o examples/ncurses/ncurses_cmd.native
# /usr/bin/ld: cannot find -lncurses: No such file or directory
# collect2: error: ld returned 1 exit status
# File "caml_startup", line 1:
# Error: Error during linking
# Command exited with code 2.
# E: Failure("Command ''/home/opam/.opam/4.02/bin/ocamlbuild' src/libctypes_stubs.a src/dllctypes_stubs.so src/ctypes.cma src/ctypes.cmxa src/ctypes.a src/ctypes.cmxs src/libctypes-foreign_stubs.a src/dllctypes-foreign_stubs.so src/ctypes-foreign.cma src/ctypes-foreign.cmxa src/ctypes-foreign.a src/ctypes-foreign.cmxs examples/fts/fts.cma examples/fts/fts.cmxa examples/fts/fts.a examples/fts/fts.cmxs examples/sigset/sigset.cma examples/sigset/sigset.cmxa examples/sigset/sigset.a examples/sigset/sigset.cmxs examples/ncurses/ncurses.cma examples/ncurses/ncurses.cmxa examples/ncurses/ncurses.a examples/ncurses/ncurses.cmxs examples/ncurses/ncurses_cmd.native examples/fts/fts_cmd.native tests/test_raw.native tests/test_pointers.native tests/test_higher_order.native tests/test_structs.native tests/test_cstdlib.native tests/test_sizeof.native tests/test_unions.native tests/test_custom_ops.native tests/test_array.native tests/test_errno.native tests/test_passable.native tests/test_alignment.native tests/test_views.native tests/test_foreign_values.native tests/test_oo_style.native examples/date/date.native -tag debug' terminated with error code 10")
# make: *** [Makefile:12: build] Error 1


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ctypes 0.1.1
+- 
+- The following changes have been performed
| - downgrade ocaml-secondary-compiler 4.08.1-1 to 4.08.1
| - install   camlp4                   4.02+1
| - install   conf-m4                  1
| - install   conf-pkg-config          1.0
| - install   conf-which               1
| - install   conf-zstd                0.1
| - install   dune                     3.7.0
| - install   extlib                   1.5.3
| - install   fileutils                0.4.4
| - install   integers                 0.1.0
| - install   oasis                    0.3.0
| - install   ocaml-data-notation      0.0.9
| - install   ocamlbuild               0
| - install   ocamlfind                1.8.1
| - install   ocamlfind-secondary      1.8.1
| - install   ocamlify                 0.0.1
| - install   ocamlmod                 0.0.3
| - install   ounit                    1.1.2
| - install   result                   1.0
| - install   topkg                    0.7.5
| - install   type_conv                108.00.02
+- 
# 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.02/.opam-switch/backup/state-20240327170730.export"
"/usr/bin/env" "bash" "-c" "opam install $DEPS" failed with exit status 31
2024-03-27 17:10.58: Job failed: Failed: Build failed