Skip to content

[BUG] Fatal error: exception Failure("of_int_exn") when compiling JSOO in 32bit OCaml switch. #1697

@ejgallego

Description

@ejgallego

Likely due to #1693 , see log at coq-lsp CI for the build failure log, the CI there is pinned to JSOO master branch due to other fixes so this is how I came to detect this bug:

#=== ERROR while compiling js_of_ocaml-compiler.5.8.2 =========================#
# context     2.1.6 | linux/x86_64 | ocaml-option-32bit.1 ocaml-variants.4.14.2+options | pinned(git+https://github.com/ocsigen/js_of_ocaml.git#57126b5542fb6db8515fb33c121d1eaf56a1c780)
# path        ~/work/coq-lsp/coq-lsp/_opam/.opam-switch/build/js_of_ocaml-compiler.5.8.2
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p js_of_ocaml-compiler -j 4 @install
# exit-code   1
# env-file    ~/.opam/log/js_of_ocaml-compiler-16058-4655a0.env
# output-file ~/.opam/log/js_of_ocaml-compiler-16058-4655a0.out
### output ###
# File "compiler/lib-runtime-files/dune", lines 6-14, characters 0-140:
#  6 | (rule
#  7 |  (target files.ml)
#  8 |  (deps
#  9 |   gen/gen.exe
# 10 |   (glob_files ../../runtime/*.js))
# 11 |  (action
# 12 |   (with-stdout-to
# 13 |    %{target}
# 14 |    (run %{deps}))))
# (cd _build/default/compiler/lib-runtime-files && gen/gen.exe ../../runtime/array.js ../../runtime/backtrace.js ../../runtime/bigarray.js ../../runtime/bigstring.js ../../runtime/blake2.js ../../runtime/compare.js ../../runtime/domain.js ../../runtime/dynlink.js ../../runtime/effect.js ../../runtime/fail.js ../../runtime/format.js ../../runtime/fs.js ../../runtime/fs_fake.js ../../runtime/fs_node.js ../../runtime/gc.js ../../runtime/graphics.js ../../runtime/hash.js ../../runtime/ieee_754.js ../../runtime/int64.js ../../runtime/internalMod.js ../../runtime/ints.js ../../runtime/io.js ../../runtime/jslib.js ../../runtime/jslib_js_of_ocaml.js ../../runtime/lexing.js ../../runtime/marshal.js ../../runtime/md5.js ../../runtime/mlBytes.js ../../runtime/nat.js ../../runtime/obj.js ../../runtime/parsing.js ../../runtime/prng.js ../../runtime/runtime_events.js ../../runtime/stdlib.js ../../runtime/stdlib_modern.js ../../runtime/str.js ../../runtime/sync.js ../../runtime/sys.js ../../runtime/toplevel.js ../../runtime/unix.js ../../runtime/weak.js ../../runtime/zstd.js) > _build/default/compiler/lib-runtime-files/files.ml
# Fatal error: exception Failure("of_int_exn")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions