c-cube/ocaml-containers

containers 3.0 fails to build on 32-bit systems

dmbaturin opened this issue · 1 comments

#=== ERROR while compiling containers.3.0 =====================================#
# context     2.0.7 | win32/x86_32 | ocaml-variants.4.10.0+mingw32c | git+https://github.com/fdopen/opam-repository-mingw.git#opam2
# path        ~/.opam/4.10.0+mingw32c/.opam-switch/build/containers.3.0
# command     C:\OCaml32\home\dmbaturin\.opam\4.10.0+mingw32c\bin\dune.exe build -p containers -j 1
# exit-code   1
# env-file    ~/.opam/log/containers-4116-58c514.env
# output-file ~/.opam/log/containers-4116-58c514.out
### output ###
# [...]
#       ocamlc src/core/.containers.objs/byte/cCInt.{cmo,cmt} (exit 2)
# (cd _build/default && C:\OCaml32\home\dmbaturin\.opam\4.10.0+mingw32c\bin\ocamlc.opt.exe -w -40 -warn-error -3 -w -40 -warn-error -3 -warn-error -a+8 -w -32-67 -safe-string -nolabels -open CCMonomorphic -g -bin-annot -I src/core/.containers.objs/byte -I C:\OCaml32\home\dmbaturin\.opam\4.10.0+mingw32c\lib\seq -I src/monomorphic/.containers_monomorphic.objs/byte -I src/monomorphic/.containers_m[...]
# File "src/core/CCInt.ml", line 343, characters 30-48:
# 343 |   let b = b - ((b lsr 1) land 0x5555555555555555) in
#                                     ^^^^^^^^^^^^^^^^^^
# Error: Integer literal exceeds the range of representable integers of type int
#     ocamlopt src/core/.containers.objs/native/cCInt.{cmx,o} (exit 2)
# (cd _build/default && C:\OCaml32\home\dmbaturin\.opam\4.10.0+mingw32c\bin\ocamlopt.opt.exe -w -40 -warn-error -3 -w -40 -warn-error -3 -warn-error -a+8 -w -32-67 -safe-string -nolabels -open CCMonomorphic -O3 -unbox-closures -unbox-closures-factor 20 -color always -I src/core/.containers.objs/byte -I src/core/.containers.objs/native -I C:\OCaml32\home\dmbaturin\.opam\4.10.0+mingw32c\lib\seq -[...]
# File "src/core/CCInt.ml", line 343, characters 30-48:
# 343 |   let b = b - ((b lsr 1) land 0x5555555555555555) in
#                                     ^^^^^^^^^^^^^^^^^^
# Error: Integer literal exceeds the range of representable integers of type int

This should already be fix in the master branch. See #327