<86>Jun 8 07:18:51 userdel[2380780]: delete user 'rooter' <86>Jun 8 07:18:51 userdel[2380780]: removed group 'rooter' owned by 'rooter' <86>Jun 8 07:18:51 userdel[2380780]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 8 07:18:51 groupadd[2380814]: group added to /etc/group: name=rooter, GID=1841 <86>Jun 8 07:18:51 groupadd[2380814]: group added to /etc/gshadow: name=rooter <86>Jun 8 07:18:51 groupadd[2380814]: new group: name=rooter, GID=1841 <86>Jun 8 07:18:51 useradd[2380840]: new user: name=rooter, UID=1841, GID=1841, home=/root, shell=/bin/bash, from=none <86>Jun 8 07:18:51 userdel[2380865]: delete user 'builder' <86>Jun 8 07:18:51 userdel[2380865]: removed group 'builder' owned by 'builder' <86>Jun 8 07:18:51 userdel[2380865]: removed shadow group 'builder' owned by 'builder' <86>Jun 8 07:18:51 groupadd[2380882]: group added to /etc/group: name=builder, GID=1842 <86>Jun 8 07:18:51 groupadd[2380882]: group added to /etc/gshadow: name=builder <86>Jun 8 07:18:51 groupadd[2380882]: new group: name=builder, GID=1842 <86>Jun 8 07:18:51 useradd[2380891]: new user: name=builder, UID=1842, GID=1842, home=/usr/src, shell=/bin/bash, from=none warning: Macro %dune_build not found warning: Macro %dune_install not found warning: Macro %dune_check not found <13>Jun 8 07:18:55 rpmi: ocaml-runtime-4.14.1-alt1 sisyphus+333652.177.29.2 1701355789 installed <13>Jun 8 07:18:55 rpmi: rpm-build-ocaml-1.6.2.1-alt1 sisyphus+349582.100.1.1 1716824125 installed <13>Jun 8 07:19:01 rpmi: ocaml-4.14.1-alt1 sisyphus+333652.177.29.2 1701355789 installed <13>Jun 8 07:19:01 rpmi: ocaml-astring-0.8.5-alt2 sisyphus+333652.2740.29.2 1701356821 installed <13>Jun 8 07:19:01 rpmi: ocaml-cmdliner-1.2.0-alt2 sisyphus+333652.1640.29.2 1701356474 installed <13>Jun 8 07:19:01 rpmi: ocaml-fmt-0.9.0-alt2 sisyphus+333652.3140.29.2 1701356877 installed <13>Jun 8 07:19:02 rpmi: ocaml-cmdliner-devel-1.2.0-alt2 sisyphus+333652.1640.29.2 1701356474 installed <13>Jun 8 07:19:02 rpmi: ocaml-fmt-devel-0.9.0-alt2 sisyphus+333652.3140.29.2 1701356877 installed <13>Jun 8 07:19:02 rpmi: ocaml-re-1.11.0-alt1 sisyphus+333652.1600.29.2 1701356446 installed <13>Jun 8 07:19:02 rpmi: ocaml-compiler-libs-0.12.4-alt2 sisyphus+333652.1300.29.2 1701356357 installed <13>Jun 8 07:19:02 rpmi: ocaml-sexplib0-0.16.0-alt1 sisyphus+333652.300.29.2 1701355847 installed <13>Jun 8 07:19:02 rpmi: ocaml-sexplib0-devel-0.16.0-alt1 sisyphus+333652.300.29.2 1701355847 installed <13>Jun 8 07:19:02 rpmi: ocaml-compiler-libs-devel-0.12.4-alt2 sisyphus+333652.1300.29.2 1701356357 installed <13>Jun 8 07:19:02 rpmi: ocaml-re-devel-1.11.0-alt1 sisyphus+333652.1600.29.2 1701356446 installed <13>Jun 8 07:19:02 rpmi: ocaml-astring-devel-0.8.5-alt2 sisyphus+333652.2740.29.2 1701356821 installed <13>Jun 8 07:19:02 rpmi: ocaml-uutf-1.0.3-alt2 sisyphus+333652.2640.29.2 1701356791 installed <13>Jun 8 07:19:02 rpmi: ocaml-camlp-streams-5.0.1-alt1 sisyphus+333652.11400.29.2 1701358596 installed <13>Jun 8 07:19:02 rpmi: ocaml-result-1.5-alt2 sisyphus+333652.600.29.2 1701356024 installed <13>Jun 8 07:19:02 rpmi: ocaml-result-devel-1.5-alt2 sisyphus+333652.600.29.2 1701356024 installed <13>Jun 8 07:19:02 rpmi: ocaml-uutf-devel-1.0.3-alt2 sisyphus+333652.2640.29.2 1701356791 installed <13>Jun 8 07:19:02 rpmi: ocaml-alcotest-1.7.0-alt2 sisyphus+333652.3240.29.2 1701356912 installed <13>Jun 8 07:19:02 rpmi: ocaml-tyxml-4.6.0-alt1 sisyphus+333652.15100.29.2 1701359651 installed <13>Jun 8 07:19:02 rpmi: ocaml-fpath-0.7.3-alt3 sisyphus+333652.6640.29.2 1701357868 installed <13>Jun 8 07:19:02 rpmi: ocaml-csexp-1.5.2-alt1 sisyphus+333652.400.29.2 1701355875 installed <13>Jun 8 07:19:02 rpmi: ocaml-findlib-1.9.6-alt2 sisyphus+333652.2174.29.2 1701356590 installed <13>Jun 8 07:19:02 rpmi: ocaml-ocplib-endian-1.2-alt2 sisyphus+333652.7340.29.2 1701358022 installed <13>Jun 8 07:19:02 rpmi: ocaml-ppx_derivers-1.2.1-alt2 sisyphus+333652.1200.29.2 1701356327 installed <13>Jun 8 07:19:02 rpmi: ocaml-ppxlib-0.31.0-alt1 sisyphus+333652.2340.29.2 1701356691 installed <13>Jun 8 07:19:02 rpmi: ocaml-react-1.2.2-alt2 sisyphus+333652.7160.29.2 1701357964 installed <13>Jun 8 07:19:02 rpmi: ocaml-version-3.6.2-alt1 sisyphus+333652.16300.29.2 1701360143 installed <13>Jun 8 07:19:02 rpmi: ocaml-ounit-2.2.7-alt1 sisyphus+333652.1500.29.2 1701356416 installed <13>Jun 8 07:19:02 rpmi: ocaml-ounit-devel-2.2.7-alt1 sisyphus+333652.1500.29.2 1701356416 installed <13>Jun 8 07:19:02 rpmi: ocaml-qcheck-0.21.2-alt1 sisyphus+333652.7000.29.2 1701357902 installed <13>Jun 8 07:19:02 rpmi: ocaml-version-devel-3.6.2-alt1 sisyphus+333652.16300.29.2 1701360143 installed <13>Jun 8 07:19:02 rpmi: ocaml-react-devel-1.2.2-alt2 sisyphus+333652.7160.29.2 1701357964 installed <13>Jun 8 07:19:02 rpmi: ocaml-ppx_derivers-devel-1.2.1-alt2 sisyphus+333652.1200.29.2 1701356327 installed <13>Jun 8 07:19:03 rpmi: ocaml-ppxlib-devel-0.31.0-alt1 sisyphus+333652.2340.29.2 1701356691 installed <13>Jun 8 07:19:03 rpmi: ocaml-ocplib-endian-devel-1.2-alt2 sisyphus+333652.7340.29.2 1701358022 installed <13>Jun 8 07:19:03 rpmi: ocaml-findlib-devel-1.9.6-alt2 sisyphus+333652.2174.29.2 1701356590 installed <13>Jun 8 07:19:03 rpmi: ocaml-csexp-devel-1.5.2-alt1 sisyphus+333652.400.29.2 1701355875 installed <13>Jun 8 07:19:03 rpmi: ocaml-alcotest-devel-1.7.0-alt2 sisyphus+333652.3240.29.2 1701356912 installed <13>Jun 8 07:19:03 rpmi: ocaml-camlp-streams-devel-5.0.1-alt1 sisyphus+333652.11400.29.2 1701358596 installed <13>Jun 8 07:19:03 rpmi: ocaml-qtest-2.11.2-alt2 sisyphus+333652.7100.29.2 1701357935 installed <13>Jun 8 07:19:03 rpmi: libev4-4.33-alt3 sisyphus+334335.340.4.1 1699912675 installed <13>Jun 8 07:19:03 rpmi: ocaml-lwt-5.7.0-alt3 sisyphus+333652.10260.29.2 1701358313 installed <13>Jun 8 07:19:03 rpmi: ocaml-logs-0.7.0-alt2 sisyphus+333652.10476.29.2 1701358377 installed <13>Jun 8 07:19:04 rpmi: ocaml-mdx-2.3.1-alt1 sisyphus+333652.16340.29.2 1701360182 installed <13>Jun 8 07:19:04 rpmi: ocaml-lwt-devel-5.7.0-alt3 sisyphus+333652.10260.29.2 1701358313 installed <13>Jun 8 07:19:04 rpmi: ocaml-logs-devel-0.7.0-alt2 sisyphus+333652.10476.29.2 1701358377 installed <13>Jun 8 07:19:04 rpmi: ocaml-mdx-devel-2.3.1-alt1 sisyphus+333652.16340.29.2 1701360182 installed <13>Jun 8 07:19:04 rpmi: ocaml-qtest-devel-2.11.2-alt2 sisyphus+333652.7100.29.2 1701357935 installed <13>Jun 8 07:19:04 rpmi: ocaml-qcheck-devel-0.21.2-alt1 sisyphus+333652.7000.29.2 1701357902 installed <13>Jun 8 07:19:04 rpmi: ocaml-fpath-devel-0.7.3-alt3 sisyphus+333652.6640.29.2 1701357868 installed <13>Jun 8 07:19:04 rpmi: ocaml-odoc-2.3.1-alt1 sisyphus+333652.15200.29.2 1701359712 installed <13>Jun 8 07:19:05 rpmi: ocaml-tyxml-devel-4.6.0-alt1 sisyphus+333652.15100.29.2 1701359651 installed <13>Jun 8 07:19:05 rpmi: dune-3.11.1-alt2 sisyphus+333652.440.29.2 1701355995 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/ocaml-iter-1.8-alt1.nosrc.rpm (w1.gzdio) Installing ocaml-iter-1.8-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.74523 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ocaml-iter-1.8 + echo 'Source #0 (ocaml-iter-1.8.tar):' Source #0 (ocaml-iter-1.8.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/ocaml-iter-1.8.tar + cd ocaml-iter-1.8 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.74523 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ocaml-iter-1.8 + /usr/bin/dune build --verbose --release @install Shared cache: disabled Workspace root: /usr/src/RPM/BUILD/ocaml-iter-1.8 Auto-detected concurrency: 16 Dune context: { name = "default" ; kind = "default" ; profile = Release ; merlin = true ; for_host = None ; fdo_target_exe = None ; build_dir = In_build_dir "default" ; ocaml_bin = External "/usr/bin" ; ocaml = Ok External "/usr/bin/ocaml" ; ocamlc = External "/usr/bin/ocamlc" ; ocamlopt = Error { context = "default" ; program = "ocamlopt" ; hint = Some "ocamlc found in /usr/bin, but /usr/bin/ocamlopt doesn't exist (context: default)" } ; ocamldep = Ok External "/usr/bin/ocamldep" ; ocamlmklib = Ok External "/usr/bin/ocamlmklib" ; installed_env = map { "INSIDE_DUNE" : "/usr/src/RPM/BUILD/ocaml-iter-1.8/_build/default" } ; findlib_paths = [ External "/usr/lib/ocaml" ] ; ocaml_config = { version = "4.14.1" ; standard_library_default = "/usr/lib/ocaml" ; standard_library = "/usr/lib/ocaml" ; standard_runtime = "the_standard_runtime_variable_was_deleted" ; ccomp_type = "cc" ; c_compiler = "gcc" ; ocamlc_cflags = [ "-O2" ; "-fno-strict-aliasing" ; "-fwrapv" ; "-pthread" ; "-fPIC" ; "-pipe" ; "-frecord-gcc-switches" ; "-g" ; "-O2" ; "-march=i586" ; "-mtune=generic" ; "-D_FILE_OFFSET_BITS=64" ] ; ocamlc_cppflags = [ "-D_FILE_OFFSET_BITS=64" ] ; ocamlopt_cflags = [ "-O2" ; "-fno-strict-aliasing" ; "-fwrapv" ; "-pthread" ; "-fPIC" ; "-pipe" ; "-frecord-gcc-switches" ; "-g" ; "-O2" ; "-march=i586" ; "-mtune=generic" ; "-D_FILE_OFFSET_BITS=64" ] ; ocamlopt_cppflags = [ "-D_FILE_OFFSET_BITS=64" ] ; bytecomp_c_compiler = [ "gcc" ; "-O2" ; "-fno-strict-aliasing" ; "-fwrapv" ; "-pthread" ; "-fPIC" ; "-pipe" ; "-frecord-gcc-switches" ; "-g" ; "-O2" ; "-march=i586" ; "-mtune=generic" ; "-D_FILE_OFFSET_BITS=64" ; "-D_FILE_OFFSET_BITS=64" ] ; bytecomp_c_libraries = [ "-lm"; "-lpthread" ] ; native_c_compiler = [ "gcc" ; "-O2" ; "-fno-strict-aliasing" ; "-fwrapv" ; "-pthread" ; "-fPIC" ; "-pipe" ; "-frecord-gcc-switches" ; "-g" ; "-O2" ; "-march=i586" ; "-mtune=generic" ; "-D_FILE_OFFSET_BITS=64" ; "-D_FILE_OFFSET_BITS=64" ] ; native_c_libraries = [ "-lm" ] ; native_pack_linker = [ "ld"; "-r"; "-o" ] ; cc_profile = [] ; architecture = "i386" ; model = "default" ; int_size = 31 ; word_size = 32 ; system = "linux_elf" ; asm = [ "as" ] ; asm_cfi_supported = false ; with_frame_pointers = false ; ext_exe = "" ; ext_obj = ".o" ; ext_asm = ".s" ; ext_lib = ".a" ; ext_dll = ".so" ; os_type = "Unix" ; default_executable_name = "a.out" ; systhread_supported = true ; host = "i686-pc-linux-gnu" ; target = "i686-pc-linux-gnu" ; profiling = false ; flambda = false ; spacetime = false ; safe_string = true ; exec_magic_number = "Caml1999X031" ; cmi_magic_number = "Caml1999I031" ; cmo_magic_number = "Caml1999O031" ; cma_magic_number = "Caml1999A031" ; cmx_magic_number = "Caml1999Y031" ; cmxa_magic_number = "Caml1999Z031" ; ast_impl_magic_number = "Caml1999M031" ; ast_intf_magic_number = "Caml1999N031" ; cmxs_magic_number = "Caml1999D031" ; cmt_magic_number = "Caml1999T031" ; natdynlink_supported = false ; supports_shared_libraries = true ; windows_unicode = false } ; instrument_with = [] } Actual targets: - recursive alias @install Running[1]: (cd _build/default && /usr/bin/ocamldep -modules -impl src/IterLabels.ml) > _build/default/src/.iter.objs/iterLabels.impl.d Running[2]: (cd _build/default && /usr/bin/ocamldep -modules -intf src/Iter.mli) > _build/default/src/.iter.objs/iter.intf.d Running[3]: (cd _build/default && /usr/bin/ocamldep -modules -impl src/Iter.ml) > _build/default/src/.iter.objs/iter.impl.d Running[4]: (cd _build/default && /usr/bin/ocamldep -modules -intf src/IterLabels.mli) > _build/default/src/.iter.objs/iterLabels.intf.d Running[5]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -w +a -warn-error -a+8 -nolabels -g -bin-annot -I src/.iter.objs/byte -no-alias-deps -o src/.iter.objs/byte/iter.cmi -c -intf src/Iter.mli) Running[6]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -w +a -warn-error -a+8 -nolabels -g -bin-annot -I src/.iter.objs/byte -no-alias-deps -o src/.iter.objs/byte/iterLabels.cmi -c -intf src/IterLabels.mli) Running[7]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -w +a -warn-error -a+8 -nolabels -g -bin-annot -I src/.iter.objs/byte -intf-suffix .ml -no-alias-deps -o src/.iter.objs/byte/iter.cmo -c -impl src/Iter.ml) Running[8]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -g -bin-annot -I src/bigarray/.iter_bigarray.objs/byte -I src/.iter.objs/byte -no-alias-deps -o src/bigarray/.iter_bigarray.objs/byte/iterBigarray.cmi -c -intf src/bigarray/IterBigarray.mli) Running[9]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -w +a -warn-error -a+8 -nolabels -g -bin-annot -I src/.iter.objs/byte -intf-suffix .ml -no-alias-deps -o src/.iter.objs/byte/iterLabels.cmo -c -impl src/IterLabels.ml) Running[10]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -g -bin-annot -I src/bigarray/.iter_bigarray.objs/byte -I src/.iter.objs/byte -intf-suffix .ml -no-alias-deps -o src/bigarray/.iter_bigarray.objs/byte/iterBigarray.cmo -c -impl src/bigarray/IterBigarray.ml) Running[11]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -g -a -o src/bigarray/iter_bigarray.cma src/bigarray/.iter_bigarray.objs/byte/iterBigarray.cmo) Running[12]: (cd _build/default && /usr/bin/ocamlc -w -40 -w +a -warn-error -a+8 -strict-sequence -w +a -warn-error -a+8 -nolabels -g -a -o src/iter.cma src/.iter.objs/byte/iter.cmo src/.iter.objs/byte/iterLabels.cmo) Promoting "_build/default/iter.install" to "iter.install" + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.60176 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/ocaml-iter-buildroot + : + /bin/rm -rf -- /usr/src/tmp/ocaml-iter-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd ocaml-iter-1.8 + __dune_install + /usr/bin/dune install --destdir=/usr/src/tmp/ocaml-iter-buildroot + __ocaml_find_files + find /usr/src/tmp/ocaml-iter-buildroot/usr/lib/ocaml/ -type f -regextype posix-extended '(' -regex '.*\.(cma|cmi|cmxs|so|js)$' -o -name META ')' -printf '/usr/lib/ocaml/%P\n' + find /usr/src/tmp/ocaml-iter-buildroot/usr/lib/ocaml/ -type d -printf '%%dir /usr/lib/ocaml/%P\n' + find /usr/src/tmp/ocaml-iter-buildroot/usr/lib/ocaml/ -type f -regextype posix-extended '(' -regex '.*\.(a|o|cmo|cmt|cmti|cmx|cmxa|ml|mli|exe)$' -o -name opam -o -name dune-package ')' -printf '/usr/lib/ocaml/%P\n' + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/ocaml-iter-buildroot (auto) Verifying and fixing files in /usr/src/tmp/ocaml-iter-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/ocaml-iter-buildroot/ (default) Compressing files in /usr/src/tmp/ocaml-iter-buildroot (auto) Adjusting library links in /usr/src/tmp/ocaml-iter-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/ocaml-iter-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=relaxed,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/ocaml-iter-buildroot Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.60176 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ocaml-iter-1.8 + /usr/bin/dune runtest File "README.md", line 1, characters 0-0: --- README.md 2024-06-08 07:19:06.776776452 +0000 +++ README.md.corrected 2024-06-08 07:19:07.968791837 +0000 @@ -7,7 +7,8 @@ # #require "iter";; # let p x = x mod 5 = 0 in Iter.(1 -- 5_000 |> filter p |> map (fun x -> x * x) |> fold (+) 0);; -- : int = 8345837500 +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` `Iter` is a simple abstraction over `iter` functions @@ -52,16 +53,20 @@ # let q : int Queue.t = Queue.create();; val q : int Queue.t = # Iter.( 1 -- 10 |> to_queue q);; -- : unit = () +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # Iter.of_queue q |> Iter.to_list ;; -- : int list = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10] +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let s : int Stack.t = Stack.create();; val s : int Stack.t = # Iter.(of_queue q |> to_stack s);; -- : unit = () +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # Iter.of_stack s |> Iter.to_list ;; -- : int list = [10; 9; 8; 7; 6; 5; 4; 3; 2; 1] +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` Note how the list of elements is reversed when we transfer them @@ -84,7 +89,8 @@ # (* now to get the values *) Iter.of_hashtbl h |> Iter.map snd |> Iter.to_list;; -- : string list = ["6"; "2"; "8"; "7"; "3"; "5"; "4"; "9"; "0"; "10"; "1"] +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` ### Replacing `for` loops @@ -95,7 +101,8 @@ ```ocaml # Iter.(1 -- 10_000_000 |> fold (+) 0);; -- : int = 50000005000000 +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let p x = x mod 5 = 0 in Iter.(1 -- 5_000 @@ -103,7 +110,8 @@ |> map (fun x -> x * x) |> fold (+) 0 );; -- : int = 8345837500 +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` **NOTE**: with _flambda_ under sufficiently strong @@ -131,20 +139,24 @@ | App (a,b) -> Iter.append (subterms a) (subterms b)) ;; -val subterms : term -> term Iter.t = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # (* Now we can define many other functions easily! *) let vars t = Iter.filter_map (function Var s -> Some s | _ -> None) (subterms t) ;; -val vars : term -> string Iter.t = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let size t = Iter.length (subterms t) ;; -val size : term -> int = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let vars_list l = Iter.(of_list l |> flat_map vars);; -val vars_list : term list -> string Iter.t = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` ### Permutations @@ -157,21 +169,26 @@ ```ocaml # open Iter.Infix;; +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let rec insert x l = match l with | [] -> Iter.return [x] | y :: tl -> Iter.append (insert x tl >|= fun tl' -> y :: tl') (Iter.return (x :: l)) ;; -val insert : 'a -> 'a list -> 'a list Iter.t = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # let rec permute l = match l with | [] -> Iter.return [] | x :: tl -> permute tl >>= insert x ;; -val permute : 'a list -> 'a list Iter.t = +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory # permute [1;2;3;4] |> Iter.take 2 |> Iter.to_list ;; -- : int list list = [[4; 3; 2; 1]; [4; 3; 1; 2]] +File "_none_", line 1: +Error: I/O error: /usr/src/RPM/BUILD/ocaml-iter-1.8/_build/install/default/lib/iter/iter.cmi: No such file or directory ``` ### Advanced example random seed: 271656447 ================================================================================ success (ran 4 tests) + : + exit 0 Processing files: ocaml-iter-1.8-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.49370 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ocaml-iter-1.8 + DOCDIR=/usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + export DOCDIR + rm -rf /usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + /bin/mkdir -p /usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + cp -prL README.md LICENSE CHANGELOG.md /usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + chmod -R go-w /usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + chmod -R a+rX /usr/src/tmp/ocaml-iter-buildroot/usr/share/doc/ocaml-iter-1.8 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.CdxchP find-provides: running scripts (debuginfo,lib,ocaml,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.3uEQBq find-requires: running scripts (cpp,debuginfo,files,lib,ocaml,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Provides: ocaml-sequence = 1.8-alt1, ocaml-cmi(Iter) = 4.14.1-D32238B7, ocaml-cmi(IterBigarray) = 4.14.1-C4065EC4, ocaml-cmi(IterLabels) = 4.14.1-690C8197 Requires: ocaml-cmi(CamlinternalFormatBasics) = 4.14.1-8F8F6345, ocaml-cmi(CamlinternalLazy) = 4.14.1-5365FEC4, ocaml-cmi(Stdlib) = 4.14.1-79B0E9D3, ocaml-cmi(Stdlib__Array) = 4.14.1-622D88FA, ocaml-cmi(Stdlib__Bigarray) = 4.14.1-994A14F1, ocaml-cmi(Stdlib__Buffer) = 4.14.1-4B09C9A6, ocaml-cmi(Stdlib__Bytes) = 4.14.1-3D02C333, ocaml-cmi(Stdlib__Complex) = 4.14.1-4555217C, ocaml-cmi(Stdlib__Either) = 4.14.1-26845DF2, ocaml-cmi(Stdlib__Format) = 4.14.1-B6EDB97B, ocaml-cmi(Stdlib__Hashtbl) = 4.14.1-34C0FDD5, ocaml-cmi(Stdlib__Int32) = 4.14.1-A71EA523, ocaml-cmi(Stdlib__Int64) = 4.14.1-0FA5587C, ocaml-cmi(Stdlib__Lazy) = 4.14.1-01430D34, ocaml-cmi(Stdlib__List) = 4.14.1-EE222542, ocaml-cmi(Stdlib__Map) = 4.14.1-978F8291, ocaml-cmi(Stdlib__Nativeint) = 4.14.1-989149BF, ocaml-cmi(Stdlib__Obj) = 4.14.1-25794D29, ocaml-cmi(Stdlib__Queue) = 4.14.1-B066724F, ocaml-cmi(Stdlib__Random) = 4.14.1-81E43BAB, ocaml-cmi(Stdlib__Result) = 4.14.1-F99939D3, ocaml-cmi(Stdlib__Seq) = 4.14.1-B6351103, ocaml-cmi(Stdlib__Set) = 4.14.1-871D2EE2, ocaml-cmi(Stdlib__Stack) = 4.14.1-30AE8C25, ocaml-cmi(Stdlib__String) = 4.14.1-4933E1D8, ocaml-cmi(Stdlib__Uchar) = 4.14.1-C0DDE02A, ocaml-cmi(Unix) = 4.14.1-D81AF773 Obsoletes: ocaml-sequence Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.BVlRPl Processing files: ocaml-iter-devel-1.8-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.q5TEjv find-provides: running scripts (debuginfo,lib,ocaml,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kehZFd find-requires: running scripts (cpp,debuginfo,files,lib,ocaml,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Provides: ocaml-sequence-devel = 1.8-alt1, ocaml-cmi(Iter) = 4.14.1-D32238B7, ocaml-cmi(IterBigarray) = 4.14.1-C4065EC4, ocaml-cmi(IterLabels) = 4.14.1-690C8197, ocaml-cmt(Iter) = 4.14.1-D32238B7, ocaml-cmt(IterBigarray) = 4.14.1-C4065EC4, ocaml-cmt(IterLabels) = 4.14.1-690C8197 Requires: ocaml-iter = 1.8-alt1, ocaml-cmi(CamlinternalFormatBasics) = 4.14.1-8F8F6345, ocaml-cmi(Stdlib) = 4.14.1-79B0E9D3, ocaml-cmi(Stdlib__Bigarray) = 4.14.1-994A14F1, ocaml-cmi(Stdlib__Buffer) = 4.14.1-4B09C9A6, ocaml-cmi(Stdlib__Bytes) = 4.14.1-3D02C333, ocaml-cmi(Stdlib__Complex) = 4.14.1-4555217C, ocaml-cmi(Stdlib__Either) = 4.14.1-26845DF2, ocaml-cmi(Stdlib__Format) = 4.14.1-B6EDB97B, ocaml-cmi(Stdlib__Hashtbl) = 4.14.1-34C0FDD5, ocaml-cmi(Stdlib__Map) = 4.14.1-978F8291, ocaml-cmi(Stdlib__Queue) = 4.14.1-B066724F, ocaml-cmi(Stdlib__Seq) = 4.14.1-B6351103, ocaml-cmi(Stdlib__Set) = 4.14.1-871D2EE2, ocaml-cmi(Stdlib__Stack) = 4.14.1-30AE8C25, ocaml-cmi(Stdlib__Uchar) = 4.14.1-C0DDE02A, ocaml-cmt(CamlinternalFormatBasics) = 4.14.1-8F8F6345, ocaml-cmt(CamlinternalLazy) = 4.14.1-5365FEC4, ocaml-cmt(Stdlib) = 4.14.1-79B0E9D3, ocaml-cmt(Stdlib__Array) = 4.14.1-622D88FA, ocaml-cmt(Stdlib__Bigarray) = 4.14.1-994A14F1, ocaml-cmt(Stdlib__Buffer) = 4.14.1-4B09C9A6, ocaml-cmt(Stdlib__Bytes) = 4.14.1-3D02C333, ocaml-cmt(Stdlib__Complex) = 4.14.1-4555217C, ocaml-cmt(Stdlib__Either) = 4.14.1-26845DF2, ocaml-cmt(Stdlib__Format) = 4.14.1-B6EDB97B, ocaml-cmt(Stdlib__Hashtbl) = 4.14.1-34C0FDD5, ocaml-cmt(Stdlib__Int32) = 4.14.1-A71EA523, ocaml-cmt(Stdlib__Int64) = 4.14.1-0FA5587C, ocaml-cmt(Stdlib__Lazy) = 4.14.1-01430D34, ocaml-cmt(Stdlib__List) = 4.14.1-EE222542, ocaml-cmt(Stdlib__Map) = 4.14.1-978F8291, ocaml-cmt(Stdlib__Nativeint) = 4.14.1-989149BF, ocaml-cmt(Stdlib__Obj) = 4.14.1-25794D29, ocaml-cmt(Stdlib__Queue) = 4.14.1-B066724F, ocaml-cmt(Stdlib__Random) = 4.14.1-81E43BAB, ocaml-cmt(Stdlib__Result) = 4.14.1-F99939D3, ocaml-cmt(Stdlib__Seq) = 4.14.1-B6351103, ocaml-cmt(Stdlib__Set) = 4.14.1-871D2EE2, ocaml-cmt(Stdlib__Stack) = 4.14.1-30AE8C25, ocaml-cmt(Stdlib__String) = 4.14.1-4933E1D8, ocaml-cmt(Stdlib__Uchar) = 4.14.1-C0DDE02A, ocaml-cmt(Unix) = 4.14.1-D81AF773 Obsoletes: ocaml-sequence-devel Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ufmnXD Adding to ocaml-iter-devel a strict dependency on ocaml-iter Removing 15 extra deps from ocaml-iter-devel due to repentancy on ocaml-iter warning: Installed (but unpackaged) file(s) found: /usr/share/doc/iter/CHANGELOG.md /usr/share/doc/iter/LICENSE /usr/share/doc/iter/README.md Wrote: /usr/src/RPM/RPMS/i586/ocaml-iter-1.8-alt1.i586.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/i586/ocaml-iter-devel-1.8-alt1.i586.rpm (w2.lzdio) 3.68user 1.51system 0:09.12elapsed 56%CPU (0avgtext+0avgdata 32800maxresident)k 0inputs+0outputs (0major+261740minor)pagefaults 0swaps 3.72user 3.10system 0:29.90elapsed 22%CPU (0avgtext+0avgdata 127952maxresident)k 41856inputs+0outputs (0major+230798minor)pagefaults 0swaps