Organisationspatricoferrisocaml-hwloc3447dc (main)(lower-bound)

(lower-bound)

Link Copied
Code Copied

Logs

2024-05-14 12:40.00: New job: test patricoferris/ocaml-hwloc https://github.com/patricoferris/ocaml-hwloc.git#refs/heads/main (3447dc5c40f0d868529aafcc84b5d2d971062b30) (linux-x86_64:(lower-bound))
Base: ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/patricoferris/ocaml-hwloc.git" -b "main" && cd "ocaml-hwloc" && git reset --hard 3447dc5c
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
# 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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 hwloc.opam ./
RUN opam pin add -yn hwloc.dev './'
ENV DEPS="alcotest.0.1.0 base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 cmdliner.0.9.2 conf-autoconf.0.1 conf-automake.1 conf-libtool.1 conf-m4.1 conf-which.1 ctypes.0.1.1 dune.3.0.2 fileutils.0.4.4 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 re.1.0 type_conv.108.00.02"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y hwloc.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-05-14 12:40.00: Using cache hint "patricoferris/ocaml-hwloc-ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14-debian-12-4.02_opam-2.1-6e47f76b62ab8d49e7ca0d83c1875289"
2024-05-14 12:40.00: Using OBuilder spec:
((from ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14)
 (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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src hwloc.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn hwloc.dev './'"))
 (env DEPS "alcotest.0.1.0 base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 cmdliner.0.9.2 conf-autoconf.0.1 conf-automake.1 conf-libtool.1 conf-m4.1 conf-which.1 ctypes.0.1.1 dune.3.0.2 fileutils.0.4.4 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 re.1.0 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 hwloc.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-05-14 12:40.00: Waiting for resource in pool OCluster
2024-05-14 12:40.04: Waiting for worker…
2024-05-14 12:40.04: Got resource from pool OCluster
Building on x86-bm-c18.sw.ocaml.org
All commits already cached
Submodule path 'vendor/hwloc': checked out '093316a897a2eb4972a7a3a5888f40975d03f6bf'
HEAD is now at 3447dc5 Install shared objects
Synchronizing submodule url for 'vendor/hwloc'
Cleared directory 'vendor/hwloc'
Submodule 'vendor/hwloc' (https://github.com/open-mpi/hwloc) unregistered for path 'vendor/hwloc'
Submodule 'vendor/hwloc' (https://github.com/open-mpi/hwloc) registered for path 'vendor/hwloc'
Submodule path 'vendor/hwloc': checked out '093316a897a2eb4972a7a3a5888f40975d03f6bf'


(from ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14)
Unable to find image 'ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14' locally
docker.io/ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14: Pulling from ocaml/opam
5c0ba4786982: Pulling fs layer
5c0ba4786982: Verifying Checksum
5c0ba4786982: Download complete
5c0ba4786982: Pull complete
Digest: sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
Status: Downloaded newer image for ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
2024-05-14 12:41.54 ---> saved as "b6dffe1cb2dc211fda01c1cd73a3d5db708702d4c8b2db8c126627d44ab1e60d"


/: (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-05-14 12:41.54 ---> saved as "9a452941799c622b15528ee7d1d1e16357d59ae5f0b17315ce12b21df449d5d8"


/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-05-14 12:43.40 ---> saved as "717cf69f99a63acea8dbfcd7c3d9e8a9118482335247b96af9fab3d00fb86cd4"


/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-05-14 12:43.40 ---> saved as "3f061a224fe8929c5ae9851fa3906aa433cef92fbe5109c50f2e63ac47c34a15"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-05-14 12:43.40 ---> saved as "513f4c319d309af7cd8980cb72d82648d7695750a908b72412f455135790947a"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
2275b40053 @dra27 maintains ocaml-secondary-compiler


<><> 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-05-14 12:44.56 ---> saved as "b6425a60ee2ca7985fafb6f13ffb38f718548ab6bec76d6fe8b653f299212de5"


/src: (copy (src hwloc.opam) (dst ./))
2024-05-14 12:44.57 ---> saved as "4aff6bca89a50d4fa4e80ef24c90990429b6883bc6c789139c6f8ae55ebf6d4e"


/src: (run (network host)
           (shell "opam pin add -yn hwloc.dev './'"))
Package hwloc does not exist, create as a NEW package? [Y/n] y
[hwloc.dev] synchronised (file:///src)
hwloc is now pinned to file:///src (version dev)
2024-05-14 12:44.58 ---> saved as "4beed778b4eb83ee8412b5912e5f375502a92378d209c4faacefe8154d74c9a7"


/src: (env DEPS "alcotest.0.1.0 base-bigarray.base base-ocamlbuild.base base-threads.base base-unix.base camlp4.4.02+1 cmdliner.0.9.2 conf-autoconf.0.1 conf-automake.1 conf-libtool.1 conf-m4.1 conf-which.1 ctypes.0.1.1 dune.3.0.2 fileutils.0.4.4 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 re.1.0 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 hwloc.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]
- Fetched 103 kB in 0s (524 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[hwloc.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:
    autoconf automake libffi-dev libtool m4


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


2024-05-14 12:45.20 ---> saved as "a6ea07ff0964dd3fa6e8e417e2178f699010f638196f21b2075aa8aa4a697f61"


/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-libtool             1
  - install   conf-m4                  1
  - install   conf-which               1
  - downgrade ocaml-secondary-compiler 4.08.1-1 to 4.08.1
  - install   ocamlfind                1.8.1
  - install   conf-autoconf            0.1
  - install   re                       1.0
  - install   ocamlify                 0.0.1
  - install   ocamlfind-secondary      1.8.1
  - install   cmdliner                 0.9.2
  - install   camlp4                   4.02+1
  - install   conf-automake            1
  - install   dune                     3.0.2
  - install   type_conv                108.00.02
  - install   ounit                    1.1.2
  - install   ocaml-data-notation      0.0.9
  - install   fileutils                0.4.4
  - install   alcotest                 0.1.0
  - install   ocamlmod                 0.0.3
  - install   oasis                    0.3.0
  - install   ctypes                   0.1.1
===== 21 to install | 1 to downgrade =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.0.1.0  (cached)
-> retrieved camlp4.4.02+1  (cached)
-> installed conf-libtool.1
-> installed conf-m4.1
-> installed conf-which.1
-> installed conf-autoconf.0.1
-> retrieved ctypes.0.1.1  (https://github.com/yallop/ocaml-ctypes/archive/ocaml-ctypes-0.1.1.tar.gz)
-> retrieved cmdliner.0.9.2  (http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.2.tbz)
-> retrieved fileutils.0.4.4  (cached)
-> installed conf-automake.1
-> retrieved dune.3.0.2  (cached)
-> retrieved ocaml-data-notation.0.0.9  (https://download.ocamlcore.org/odn/ocaml-data-notation/0.0.9/ocaml-data-notation-0.0.9.tar.gz)
-> installed ocamlbuild.0
-> 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 re.1.0  (cached)
-> retrieved oasis.0.3.0  (https://download.ocamlcore.org/oasis/oasis/0.3.0/oasis-0.3.0.tar.gz)
-> retrieved ocaml-secondary-compiler.4.08.1  (cached)
-> retrieved type_conv.108.00.02  (https://ocaml.janestreet.com/ocaml-core/108.00.02/individual/type_conv-108.00.02.tar.gz)
-> installed ocamlfind.1.8.1
-> installed ocamlify.0.0.1
-> installed cmdliner.0.9.2
-> installed re.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 alcotest.0.1.0
-> 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.0.2


#=== 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-fb621b.env
# output-file ~/.opam/log/ctypes-1-fb621b.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: ........................ unavailable
# 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   alcotest                 0.1.0
| - install   camlp4                   4.02+1
| - install   cmdliner                 0.9.2
| - install   conf-autoconf            0.1
| - install   conf-automake            1
| - install   conf-libtool             1
| - install   conf-m4                  1
| - install   conf-which               1
| - install   dune                     3.0.2
| - install   fileutils                0.4.4
| - 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   re                       1.0
| - 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-20240514124521.export"
"/usr/bin/env" "bash" "-c" "opam install $DEPS" failed with exit status 31
2024-05-14 12:49.33: Job failed: Failed: Build failed