[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1052234: FTBFS with OCaml 4.14.1



Source: ocaml-merlin
Version: 4.7-413-4
Severity: important
Tags: ftbfs
User: debian-ocaml-maint@lists.debian.org
Usertags: ocaml-4.14.1-transition

Dear Maintainer,

Your package FTBFS with OCaml 4.14.1 with the following error:
[...]
dune build @all
File "src/config/my_config.ml", line 7, characters 70-83:
7 |   | `OCaml_4_10_0 | `OCaml_4_11_0 | `OCaml_4_12_0 | `OCaml_4_13_0 ] = `OCaml_4_14_0
                                                                          ^^^^^^^^^^^^^
Error: This expression has type [> `OCaml_4_14_0 ]
       but an expression was expected of type
         [ `OCaml_4_02_0
         | `OCaml_4_02_1
         | `OCaml_4_02_2
         | `OCaml_4_02_3
         | `OCaml_4_03_0
         | `OCaml_4_04_0
         | `OCaml_4_05_0
         | `OCaml_4_06_0
         | `OCaml_4_07_0
         | `OCaml_4_07_1
         | `OCaml_4_08_0
         | `OCaml_4_09_0
         | `OCaml_4_10_0
         | `OCaml_4_11_0
         | `OCaml_4_12_0
         | `OCaml_4_13_0 ]
       The second variant type does not allow tag(s) `OCaml_4_14_0
File "src/ocaml/preprocess/parser_raw.mly", line 846, characters 29-36:
Warning: the token COMMENT is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 847, characters 30-39:
Warning: the token DOCSTRING is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 849, characters 7-10:
Warning: the token EOL is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 759, characters 7-22:
Warning: the token GREATERRBRACKET is unused.
ocamlmerlin.c: In function 'connect_socket.constprop':
ocamlmerlin.c:262:40: warning: '%s' directive output may be truncated writing up to 4096 bytes into a region of size 102 [-Wformat-truncation=]
  262 |     snprintf(address.sun_path, 104, "./%s", socketname);
      |                                        ^~
ocamlmerlin.c:262:5: note: 'snprintf' output between 3 and 4099 bytes into a destination of size 104
  262 |     snprintf(address.sun_path, 104, "./%s", socketname);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocamlmerlin.c: In function 'start_server.constprop':
ocamlmerlin.c:353:40: warning: '%s' directive output may be truncated writing up to 4096 bytes into a region of size 102 [-Wformat-truncation=]
  353 |     snprintf(address.sun_path, 104, "./%s", socketname);
      |                                        ^~
ocamlmerlin.c:353:5: note: 'snprintf' output between 3 and 4099 bytes into a destination of size 104
  353 |     snprintf(address.sun_path, 104, "./%s", socketname);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ocamlmerlin.c:377:41: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
  377 |     snprintf(socket_path, PATHSZ, "%s/%s", path_socketdir(), socketname);
      |                                         ^
ocamlmerlin.c:377:5: note: 'snprintf' output 2 or more bytes (assuming 4098) into a destination of size 4097
  377 |     snprintf(socket_path, PATHSZ, "%s/%s", path_socketdir(), socketname);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
make[1]: Leaving directory '/tmp/build/ocaml-merlin-4.7-413'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Packages rebuilt with OCaml 4.14.1 are available at:

  http://ocaml.debian.net/transitions/ocaml-4.14.1/


Cheers,

--
Stéphane


Reply to: