Organisationsygrekocaml-snappy329a58 (master)macos-homebrew-5.1_arm64_opam-2.1

macos-homebrew-5.1_arm64_opam-2.1

Link Copied
Code Copied

Logs

2024-05-12 07:44.08: New job: test ygrek/ocaml-snappy https://github.com/ygrek/ocaml-snappy.git#refs/heads/master (329a58d03ad5b3d6fa131cafbb8de0eb83d22a81) (macos-arm64:macos-homebrew-5.1_arm64_opam-2.1)
Base: macos-homebrew-ocaml-5.1
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ygrek/ocaml-snappy.git" -b "master" && cd "ocaml-snappy" && git reset --hard 329a58d0
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.1
# macos-homebrew-5.1_arm64_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.1 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 snappy.opam ./src/./
RUN opam pin add -yn snappy.dev './src/./'
ENV DEPS="base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-config.3 ocaml-options-vanilla.1"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y snappy.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build


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


2024-05-12 07:44.08: Using cache hint "ygrek/ocaml-snappy-macos-macos-homebrew-ocaml-5.1-macos-homebrew-5.1_arm64_opam-2.1-45a6097c2ab62cce0fd508a0a3efba72"
2024-05-12 07:44.08: Using OBuilder spec:
((from macos-homebrew-ocaml-5.1)
 (comment macos-homebrew-5.1_arm64_opam-2.1)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (run (shell "ln -f ~/local/bin/opam-2.1 ~/local/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src snappy.opam) (dst ./src/./))
 (run (network host)
      (shell "opam pin add -yn snappy.dev './src/./'"))
 (env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-config.3 ocaml-options-vanilla.1")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y snappy.dev $DEPS"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst ./src))
 (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2024-05-12 07:44.08: Waiting for resource in pool OCluster
2024-05-12 07:44.08: Waiting for worker…
2024-05-12 07:44.08: Got resource from pool OCluster
Building on m1-worker-03
All commits already cached
HEAD is now at 329a58d release 0.1.2


(from macos-homebrew-ocaml-5.1)
2024-05-12 07:44.09 ---> using "b7b1005f775d216bee3ed8ddea7a5cf967981ce80479def84cf765e6fa9c281f" from cache


/: (comment macos-homebrew-5.1_arm64_opam-2.1)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f ~/local/bin/opam-2.1 ~/local/bin/opam"))
2024-05-12 07:44.09 ---> using "22cd16a64c632695859fdcedd94c70c4cc08c65c5ac152872708c4f22bdb6b91" from cache


/: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2024-05-12 07:44.09 ---> using "a88b721b113bbcb0b1d9c9d9953be1d371de01973789d03f702acf5d676e7e9e" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.1.0
The OCaml toplevel, version 5.1.1
2.1.5
2024-05-12 07:44.09 ---> using "b9cb7a7e67e401d6d05e669cb4a23e6bbd1c29e9a607e1e5d301dc2a9918b0c9" from cache


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell "cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   b530f3bbd2..20baedeee4  master     -> origin/master
307e33d08f @dra27 and @Octachron maintain the 4.08+ packages


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository


Constructing initial basis...
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).


The following packages are not being upgraded because the new versions conflict with other installed packages:
  - ocaml.5.3.0
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-12 07:44.09 ---> using "cabee6b61444bc33d210024577406e218f69742c8bcf128a36e96832a17bee72" from cache


/: (copy (src snappy.opam) (dst ./src/./))
2024-05-12 07:44.11 ---> saved as "d924c101756c7e681ebd8a7708573c18494b03f93199023acbe8e2f0586fcf55"


/: (run (network host)
        (shell "opam pin add -yn snappy.dev './src/./'"))
[snappy.dev] synchronised (file:///Users/mac1000/src)
snappy is now pinned to file:///Users/mac1000/src (version dev)
2024-05-12 07:44.26 ---> saved as "5098feb296735c4785c8dfe6e4d6d55253615727c3ff1d14c7504ed0c1ea819f"


/: (env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-config.3 ocaml-options-vanilla.1")


/: (env CI true)


/: (env OCAMLCI true)


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell "opam update --depexts && opam install --cli=2.1 --depext-only -y snappy.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.


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


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.1.1).
[NOTE] Package ocaml is already installed (current version is 5.1.1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
Constructing initial basis...
No 0-1 knapsack inequalities detected
Constructing conflict graph...
Conflict graph has 2 + 2 = 4 vertices


The following system packages will first need to be installed:
    snappy


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /opt/homebrew/bin/brew "install" "snappy"
- ==> Downloading https://ghcr.io/v2/homebrew/core/snappy/manifests/1.2.0
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/c34a2ae3372f6ff70136ccca7ef7d4fe3483cbbc2c425a7c6f0d4ae40a0bca95--snappy-1.2.0.bottle_manifest.json
- ==> Fetching snappy
- ==> Downloading https://ghcr.io/v2/homebrew/core/snappy/blobs/sha256:4a20c424a6cab88e165030ce17f347cfcbf27c32b3ef4f03c5622b054510b4a2
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/7138583162073c68c5b2aeda1900181369afe20689c8dc8df277fe886b803b5b--snappy--1.2.0.arm64_sonoma.bottle.tar.gz
- ==> Pouring snappy--1.2.0.arm64_sonoma.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/snappy/1.2.0: 18 files, 166.6KB
- ==> Running `brew cleanup snappy`...
- Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
- Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
2024-05-12 07:44.53 ---> saved as "1181a46ec916e97dbebcff1a05859775adb746e40862cdf7d375703a922219d8"


/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.1.1).
[NOTE] Package ocaml is already installed (current version is 5.1.1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
Constructing initial basis...
No 0-1 knapsack inequalities detected
Constructing conflict graph...
Conflict graph has 2 + 2 = 4 vertices
The following actions will be performed:
  - install dune        3.15.2
  - install conf-snappy 1
===== 2 to install =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.15.2  (cached)
-> installed conf-snappy.1
-> installed dune.3.15.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-12 07:45.32 ---> saved as "425fce985cd84f686fd416e6fe99da411451b8656473d17cadad6a8faa03fbb8"


/: (copy (src .) (dst ./src))
2024-05-12 07:45.34 ---> saved as "1bfaa9eabeaf9d8bd6e7b7f2339fe24a45294c017e2964d861ef08911b200b3e"


/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /Users/mac1000/.opam/5.1.1/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I .test.eobjs/byte -I src/.snappy.objs/byte -no-alias-deps -opaque -o .test.eobjs/byte/test.cmo -c -impl test.ml)
File "test.ml", line 7, characters 6-79:
7 |       for i = 0 to pred n do Buffer.add_char b (Char.chr (Random.int 256)) done;
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (warning 35 [unused-for-index]): unused for-loop index i.


File "test.ml", line 18, characters 2-60:
18 |   for n = 0 to 1024 do check (Random.int 16384 + 16384) done;
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error (warning 35 [unused-for-index]): unused for-loop index n.
File "src/dune", line 4, characters 11-23:
4 |   (c_names snappy_stubs)
               ^^^^^^^^^^^^
(cd _build/default/src && /usr/bin/cc -O2 -fno-strict-aliasing -fwrapv -pthread -D_FILE_OFFSET_BITS=64 -g -x c++ -g -I /Users/mac1000/.opam/5.1.1/lib/ocaml -o snappy_stubs.o -c snappy_stubs.c)
snappy_stubs.c:4:10: fatal error: 'snappy.h' file not found
#include <snappy.h>
         ^~~~~~~~~~
1 error generated.
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2024-05-12 07:45.39: Job failed: Failed: Build failed