Building on x86-bm-11.ocamllabs.io (from ocaml/opam:debian-unstable@sha256:1f047b38773f5019b428a91bd54b182640ea3851a30b2bde75e0749da4491607) Unable to find image 'ocaml/opam:debian-unstable@sha256:1f047b38773f5019b428a91bd54b182640ea3851a30b2bde75e0749da4491607' locally docker.io/ocaml/opam@sha256:1f047b38773f5019b428a91bd54b182640ea3851a30b2bde75e0749da4491607: Pulling from ocaml/opam 2db5444d1f5b: Pulling fs layer 955a4d4491b2: Pulling fs layer f7fc0b2e0259: Pulling fs layer 2db5444d1f5b: Verifying Checksum 2db5444d1f5b: Download complete f7fc0b2e0259: Verifying Checksum f7fc0b2e0259: Download complete 955a4d4491b2: Verifying Checksum 955a4d4491b2: Download complete 2db5444d1f5b: Pull complete 955a4d4491b2: Pull complete f7fc0b2e0259: Pull complete Digest: sha256:1f047b38773f5019b428a91bd54b182640ea3851a30b2bde75e0749da4491607 Status: Downloaded newer image for ocaml/opam@sha256:1f047b38773f5019b428a91bd54b182640ea3851a30b2bde75e0749da4491607 2022-02-04 16:08.00 ---> using "046c03104b31caca4776d0f4b3c05e8c36edfcce47e502c904753c15f5c7c145" from cache /: (user (uid 1000) (gid 1000)) /: (env OPAMPRECISETRACKING 1) /: (env OPAMUTF8 never) /: (env OPAMEXTERNALSOLVER builtin-0install) /: (env OPAMCRITERIA +removed) /: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam")) 2022-02-04 16:08.00 ---> using "174def638ec7d2637b0dbcf8d157f3db3ea5f765b545d79ffe1aaf2604b82a96" from cache /: (run (network host) (shell "rm -rf ~/opam-repository && git clone -q 'https://github.com/ocaml/opam-repository' ~/opam-repository && git -C ~/opam-repository checkout -q 1741c7614a3f64debaeee6573205d847859e8de4")) 2022-02-04 16:08.00 ---> using "7cf36d2e512b30870bc55678abf5e1cb55cb4319ee557daf9c5c759dde9da99a" from cache /: (run (shell "rm -rf ~/.opam && opam init -ya --bare --config ~/.opamrc-sandbox ~/opam-repository")) Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally 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. <><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><> [default] Initialised User configuration: ~/.profile is already up-to-date. [NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc. 2022-02-04 16:08.00 ---> using "3aa3263ea6afcd677a2f49f1557e7725598e35cb434eb2886483b43b368246e0" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam switch create --repositories=default '5.00' '5.00.0+trunk'")) <><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><> Switch invariant: ["ocaml-variants" {= "5.00.0+trunk"}] <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> installed base-bigarray.base -> installed base-threads.base -> installed base-unix.base -> retrieved ocaml-variants.5.00.0+trunk (https://github.com/ocaml/ocaml/archive/trunk.tar.gz) -> installed ocaml-variants.5.00.0+trunk -> installed ocaml-config.2 -> installed ocaml.5.00.0 -> installed base-domains.base -> installed base-nnp.base Done. # Run eval $(opam env --switch=5.00) to update the current shell environment 2022-02-04 16:08.00 ---> using "6db236cc1f1725221e20e3d2b802753e98b385fa5d7a8fd438bcf87d21688267" from cache /: (run (network host) (shell "opam update --depexts")) + /usr/bin/sudo "apt-get" "update" - Get:1 http://deb.debian.org/debian unstable InRelease [165 kB] - Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB] - Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2022-02-03-1405.17-F-2022-01-30-0201.48.pdiff [276 kB] - Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2022-02-03-1405.17-F-2022-01-30-0201.48.pdiff [276 kB] - Fetched 505 kB in 3s (145 kB/s) - Reading package lists... - 2022-02-04 16:08.00 ---> using "621f94e14925313e036e9e8edb72ef7cc5414527dd9f207f32f6eb37decb7348" from cache /: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "\ \nopam remove -y \"offheap.0.1.1\"\ \nopam install -vy \"offheap.0.1.1\"\ \nres=$?\ \nif [ $res = 31 ]; then\ \n if opam show -f x-ci-accept-failures: \"offheap.0.1.1\" | grep -q '\"debian-unstable\"'; then\ \n echo \"This package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\"\ \n exit 69\ \n fi\ \nfi\ \n\ \n\ \nexit $res\ \n")) [NOTE] offheap.0.1.1 is not installed. Nothing to do. The following actions will be performed: - install dune 2.9.3 [required by offheap] - install offheap 0.1.1 ===== 2 to install ===== <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> Processing 1/6: Processing 2/6: -> retrieved offheap.0.1.1 (cached) -> retrieved dune.2.9.3 (cached) Processing 3/6: [dune: ocaml bootstrap.ml] + /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "ocaml" "bootstrap.ml" "-j" "31" (CWD=/home/opam/.opam/5.00/.opam-switch/build/dune.2.9.3) - File "./bootstrap.ml", line 46, characters 17-27: - 46 | && String.sub fn 0 (String.length duneboot) = duneboot - ^^^^^^^^^^ - Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function. - File "./bootstrap.ml", line 103, characters 28-37: - 103 | let args = Array.to_list (Array.sub Sys.argv 1 (Array.length Sys.argv - 1)) in - ^^^^^^^^^ - Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function. - ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml - ./.duneboot.exe -j 31 - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads build_path_prefix_map.ml - File "vendor/build_path_prefix_map/src/build_path_prefix_map.ml", line 5, characters 17-31: - Alert deprecated: Stdlib.Printf.kprintf - Use Printf.ksprintf instead. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads cmdliner_base.ml - File "vendor/cmdliner/src/cmdliner_base.ml", line 158, characters 14-27: - Warning 6 [labels-omitted]: labels kind, ambs were omitted in the application of this function. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads opamLexer.ml - File "vendor/opam-file-format/src/opamLexer.mll", line 21, characters 2-16: - Alert deprecated: Stdlib.Printf.kprintf - Use Printf.ksprintf instead. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads cmdliner_docgen.ml - File "vendor/cmdliner/src/cmdliner_docgen.ml", line 278, characters 23-39: - Warning 6 [labels-omitted]: label sec was omitted in the application of this function. - File "vendor/cmdliner/src/cmdliner_docgen.ml", line 293, characters 22-56: - Warning 6 [labels-omitted]: label sec was omitted in the application of this function. - File "vendor/cmdliner/src/cmdliner_docgen.ml", line 294, characters 35-51: - Warning 6 [labels-omitted]: label sec was omitted in the application of this function. - File "vendor/cmdliner/src/cmdliner_docgen.ml", line 295, characters 36-52: - Warning 6 [labels-omitted]: label sec was omitted in the application of this function. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads cmdliner_cline.ml - File "vendor/cmdliner/src/cmdliner_cline.ml", line 128, characters 20-47: - Warning 6 [labels-omitted]: labels kind, ambs were omitted in the application of this function. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads cmdliner_arg.ml - File "vendor/cmdliner/src/cmdliner_arg.ml", line 193, characters 24-50: - Warning 6 [labels-omitted]: label err was omitted in the application of this function. - File "vendor/cmdliner/src/cmdliner_arg.ml", line 243, characters 24-50: - Warning 6 [labels-omitted]: label err was omitted in the application of this function. - File "vendor/cmdliner/src/cmdliner_arg.ml", line 260, characters 10-36: - Warning 6 [labels-omitted]: label pos was omitted in the application of this function. - cd _boot && /home/opam/.opam/5.00/bin/ocamlopt.opt -c -g -no-alias-deps -w -49 -I +threads cmdliner.ml - File "vendor/cmdliner/src/cmdliner.ml", line 195, characters 25-47: - Warning 6 [labels-omitted]: label errs was omitted in the application of this function. - Processing 3/6: [dune: ./dune.exe build] + /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "./dune.exe" "build" "-p" "dune" "--profile" "dune-bootstrap" "-j" "31" (CWD=/home/opam/.opam/5.00/.opam-switch/build/dune.2.9.3) -> compiled dune.2.9.3 -> installed dune.2.9.3 Processing 5/6: [offheap: dune build] + /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "offheap" "-j" "31" (CWD=/home/opam/.opam/5.00/.opam-switch/build/offheap.0.1.1) - gcc src/offheap.o (exit 1) - (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -I /home/opam/.opam/5.00/lib/ocaml -o offheap.o -c offheap.c) - In file included from offheap.c:12: - offheap.c: In function 'offheap_copy': - offheap.c:182:42: error: 'Caml_blue' undeclared (first use in this function) - 182 | Hd_val(v) = Make_header(0, Tag_val(v), Caml_blue); - | ^~~~~~~~~ - /home/opam/.opam/5.00/lib/ocaml/caml/gc.h:26:24: note: in definition of macro 'Make_header' - 26 | + (color) \ - | ^~~~~ - offheap.c:182:42: note: each undeclared identifier is reported only once for each function it appears in - 182 | Hd_val(v) = Make_header(0, Tag_val(v), Caml_blue); - | ^~~~~~~~~ - /home/opam/.opam/5.00/lib/ocaml/caml/gc.h:26:24: note: in definition of macro 'Make_header' - 26 | + (color) \ - | ^~~~~ - offheap.c:225:13: warning: implicit declaration of function 'Color_hd' [-Wimplicit-function-declaration] - 225 | if (Color_hd(fh) == Caml_blue) { - | ^~~~~~~~ - offheap.c:234:25: warning: implicit declaration of function 'Bluehd_hd' [-Wimplicit-function-declaration] - 234 | Hd_val(field) = Bluehd_hd(fh); - | ^~~~~~~~~ - offheap.c:234:23: error: lvalue required as left operand of assignment - 234 | Hd_val(field) = Bluehd_hd(fh); - | ^ - offheap.c:257:19: error: lvalue required as left operand of assignment - 257 | Hd_val(dst) = hd; - | ^ - In file included from offheap.c:4: - offheap.c:275:20: warning: implicit declaration of function 'Is_blue_hd' [-Wimplicit-function-declaration] - 275 | assert(Is_blue_hd(fd)); - | ^~~~~~~~~~ - offheap.c:296:24: error: lvalue required as left operand of assignment - 296 | Hd_val(item.value) = item.header; - | ^ [ERROR] The compilation of offheap.0.1.1 failed at "dune build -p offheap -j 31". #=== ERROR while compiling offheap.0.1.1 ======================================# # context 2.2.0~alpha~dev | linux/x86_64 | ocaml-variants.5.00.0+trunk | file:///home/opam/opam-repository # path ~/.opam/5.00/.opam-switch/build/offheap.0.1.1 # command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p offheap -j 31 # exit-code 1 # env-file ~/.opam/log/offheap-12-0ba94a.env # output-file ~/.opam/log/offheap-12-0ba94a.out ### output ### # gcc src/offheap.o (exit 1) # (cd _build/default/src && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -I /home/opam/.opam/5.00/lib/ocaml -o offheap.o -c offheap.c) # In file included from offheap.c:12: # offheap.c: In function 'offheap_copy': # offheap.c:182:42: error: 'Caml_blue' undeclared (first use in this function) # 182 | Hd_val(v) = Make_header(0, Tag_val(v), Caml_blue); # | ^~~~~~~~~ # /home/opam/.opam/5.00/lib/ocaml/caml/gc.h:26:24: note: in definition of macro 'Make_header' # 26 | + (color) \ # | ^~~~~ # offheap.c:182:42: note: each undeclared identifier is reported only once for each function it appears in # 182 | Hd_val(v) = Make_header(0, Tag_val(v), Caml_blue); # | ^~~~~~~~~ # /home/opam/.opam/5.00/lib/ocaml/caml/gc.h:26:24: note: in definition of macro 'Make_header' # 26 | + (color) \ # | ^~~~~ # offheap.c:225:13: warning: implicit declaration of function 'Color_hd' [-Wimplicit-function-declaration] # 225 | if (Color_hd(fh) == Caml_blue) { # | ^~~~~~~~ # offheap.c:234:25: warning: implicit declaration of function 'Bluehd_hd' [-Wimplicit-function-declaration] # 234 | Hd_val(field) = Bluehd_hd(fh); # | ^~~~~~~~~ # offheap.c:234:23: error: lvalue required as left operand of assignment # 234 | Hd_val(field) = Bluehd_hd(fh); # | ^ # offheap.c:257:19: error: lvalue required as left operand of assignment # 257 | Hd_val(dst) = hd; # | ^ # In file included from offheap.c:4: # offheap.c:275:20: warning: implicit declaration of function 'Is_blue_hd' [-Wimplicit-function-declaration] # 275 | assert(Is_blue_hd(fd)); # | ^~~~~~~~~~ # offheap.c:296:24: error: lvalue required as left operand of assignment # 296 | Hd_val(item.value) = item.header; # | ^ <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> +- The following actions failed | - build offheap 0.1.1 +- +- The following changes have been performed | - install dune 2.9.3 +- # 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/5.00/.opam-switch/backup/state-20220204160804.export" 'opam install -vy offheap.0.1.1' failed. "/bin/bash" "-c" " opam remove -y "offheap.0.1.1" opam install -vy "offheap.0.1.1" res=$? if [ $res = 31 ]; then if opam show -f x-ci-accept-failures: "offheap.0.1.1" | grep -q '"debian-unstable"'; then echo "This package failed and has been disabled for CI using the 'x-ci-accept-failures' field." exit 69 fi fi exit $res " failed with exit status 31 Failed: Build failed