2024-05-12 07:44.08: New job: test ygrek/ocaml-snappy https://github.com/ygrek/ocaml-snappy.git#refs/heads/master (329a58d03ad5b3d6fa131cafbb8de0eb83d22a81) (macos-x86_64:macos-homebrew-5.1_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_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_opam-2.1-45a6097c2ab62cce0fd508a0a3efba72"
2024-05-12 07:44.08: Using OBuilder spec:
((from macos-homebrew-ocaml-5.1)
(comment macos-homebrew-5.1_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:46.40: Got resource from pool OCluster
Building on i7-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:46.41 ---> using "b7b1005f775d216bee3ed8ddea7a5cf967981ce80479def84cf765e6fa9c281f" from cache
/: (comment macos-homebrew-5.1_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:46.42 ---> 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:46.43 ---> using "a88b721b113bbcb0b1d9c9d9953be1d371de01973789d03f702acf5d676e7e9e" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 22.5.0
The OCaml toplevel, version 5.1.1
2.1.5
2024-05-12 07:46.43 ---> 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:46.44 ---> using "cabee6b61444bc33d210024577406e218f69742c8bcf128a36e96832a17bee72" from cache
/: (copy (src snappy.opam) (dst ./src/./))
2024-05-12 07:46.47 ---> 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:46.56 ---> 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"))
+ /usr/local/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...
Number of 0-1 knapsack inequalities = 5
Constructing conflict graph...
Conflict graph has 6 + 5 = 11 vertices
The following system packages will first need to be installed:
snappy
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/local/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:d5541a4d0489d0fb44cd2777c15b3dc0a9e8645cad4756e48dafcf076ce03f84
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/421be06839fda5f9e144aa1b31b14f4b15b9d5db9fc01a07cd5db5810cef28a8--snappy--1.2.0.sonoma.bottle.tar.gz
- ==> Pouring snappy--1.2.0.sonoma.bottle.tar.gz
- 🍺 /usr/local/Cellar/snappy/1.2.0: 18 files, 135.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:47.45 ---> 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...
Number of 0-1 knapsack inequalities = 5
Constructing conflict graph...
Conflict graph has 6 + 5 = 11 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:49.06 ---> saved as "425fce985cd84f686fd416e6fe99da411451b8656473d17cadad6a8faa03fbb8"
/: (copy (src .) (dst ./src))
2024-05-12 07:49.08 ---> 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)
In file included from snappy_stubs.c:4:
/usr/local/include/snappy.h:65:15: warning: default member initializer for non-static data member is a C++11 extension [-Wc++11-extensions]
int level = DefaultCompressionLevel();
^
/usr/local/include/snappy.h:67:5: error: unknown type name 'constexpr'
constexpr CompressionOptions() = default;
^
/usr/local/include/snappy.h:67:15: error: constructor cannot have a return type
constexpr CompressionOptions() = default;
^~~~~~~~~~~~~~~~~~
/usr/local/include/snappy.h:68:5: error: unknown type name 'constexpr'
constexpr CompressionOptions(int compression_level)
^
/usr/local/include/snappy.h:68:15: error: constructor cannot have a return type
constexpr CompressionOptions(int compression_level)
^~~~~~~~~~~~~~~~~~
/usr/local/include/snappy.h:70:12: error: unknown type name 'constexpr'
static constexpr int MinCompressionLevel() { return 1; }
^
/usr/local/include/snappy.h:71:12: error: unknown type name 'constexpr'
static constexpr int MaxCompressionLevel() { return 2; }
^
/usr/local/include/snappy.h:72:12: error: unknown type name 'constexpr'
static constexpr int DefaultCompressionLevel() { return 1; }
^
/usr/local/include/snappy.h:82:48: error: expected expression
CompressionOptions options = {});
^
/usr/local/include/snappy.h:102:73: error: expected expression
std::string* compressed, CompressionOptions options = {});
^
/usr/local/include/snappy.h:110:57: error: expected expression
CompressionOptions options = {});
^
/usr/local/include/snappy.h:154:76: error: expected expression
size_t* compressed_length, CompressionOptions options = {});
^
/usr/local/include/snappy.h:161:58: error: expected expression
CompressionOptions options = {});
^
/usr/local/include/snappy.h:235:10: error: unknown type name 'constexpr'
static constexpr int kBlockLog = 16;
^
/usr/local/include/snappy.h:236:10: error: unknown type name 'constexpr'
static constexpr size_t kBlockSize = 1 << kBlockLog;
^
/usr/local/include/snappy.h:236:26: error: expected ';' after top level declarator
static constexpr size_t kBlockSize = 1 << kBlockLog;
^
;
/usr/local/include/snappy.h:238:10: error: unknown type name 'constexpr'
static constexpr int kMinHashTableBits = 8;
^
/usr/local/include/snappy.h:239:10: error: unknown type name 'constexpr'
static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits;
^
/usr/local/include/snappy.h:239:26: error: expected ';' after top level declarator
static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits;
^
;
/usr/local/include/snappy.h:241:10: error: unknown type name 'constexpr'
static constexpr int kMaxHashTableBits = 15;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors 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:49.15: Job failed: Failed: Build failed