Organisationsygrekocaml-snappy329a58 (master)macos-homebrew-4.14_opam-2.1

macos-homebrew-4.14_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-x86_64:macos-homebrew-4.14_opam-2.1)
Base: macos-homebrew-ocaml-4.14
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-4.14
# macos-homebrew-4.14_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-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 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-4.14-macos-homebrew-4.14_opam-2.1-ad391f04b31c465890a5963b21953154"
2024-05-12 07:44.08: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
 (comment macos-homebrew-4.14_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-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 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 08:00.02: Got resource from pool OCluster
Building on i7-worker-01
All commits already cached
HEAD is now at 329a58d release 0.1.2


(from macos-homebrew-ocaml-4.14)
2024-05-12 08:00.03 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache


/: (comment macos-homebrew-4.14_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 08:00.03 ---> using "25b9bb92388ede51fae89d4de3a3dbc7bf0716456eef41b1ea8636995a3eeab7" 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 08:00.03 ---> using "0525a69f67d7dcc5812c572fe55aa709891b6884e539fc956e1641dd42758a4d" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.1.0
The OCaml toplevel, version 4.14.2
2.1.5
2024-05-12 08:00.04 ---> using "f4908fd0e5799798bb14c138897a7b0cd12737558237c57b6cfe71feb61d52ba" 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
   3505e93828..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
  - ocaml-config.3
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 08:00.04 ---> using "b24024a94c88960a6d52d30e3215e2b1a36b271af80c110265910615be43062b" from cache


/: (copy (src snappy.opam) (dst ./src/./))
2024-05-12 08:00.13 ---> saved as "b30aca9ff30721012f0c113dd93f48158ca232fd620e5f1dc15d48e6ad4286f8"


/: (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 08:00.30 ---> saved as "25653df008f71589c6b5bcb6d96a4417947fc02787fb1447930fc5b2211895d2"


/: (env DEPS "base-bigarray.base base-threads.base base-unix.base conf-snappy.1 dune.3.15.2 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-bigarray is already installed (current version is base).
Constructing initial basis...
Number of 0-1 knapsack inequalities = 13
Constructing conflict graph...
Conflict graph has 9 + 5 = 14 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 08:01.09 ---> saved as "5acc9b30ad056c8e35bd63fe30715b711c5de64f95ae5eb7e1802e36ecb30610"


/: (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 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-bigarray is already installed (current version is base).
Constructing initial basis...
Number of 0-1 knapsack inequalities = 13
Constructing conflict graph...
Conflict graph has 9 + 5 = 14 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 08:03.18 ---> saved as "b751cb4cf4aa54558f4042215160e42fb3bf4083c748be18803e8b37eaa717d0"


/: (copy (src .) (dst ./src))
2024-05-12 08:03.21 ---> saved as "7275f4c60f49d5e35d0ccba9b442186ae0eb709318d3dd8a9c2baf68a02cd926"


/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && /Users/mac1000/.opam/4.14.2/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/4.14.2/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 08:03.29: Job failed: Failed: Build failed