Skip to content

Unable to install Merlin merlin.4.7-413 on Ubuntu 25.04 #1993

@daimrod

Description

@daimrod

Hi,

I am unable to install merlin 4.7-413 on Ubuntu 25.04 with OCaml compiler 4.13.1.

I was following the setup instructions from Real World OCaml: https://dev.realworldocaml.org/install.html
The error is similar to the issue #1478.

$ opam install merlin
The following actions will be performed:
=== install 1 package
  ∗ merlin 4.7-413

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved merlin.4.7-413  (cached)
[ERROR] The compilation of merlin.4.7-413 failed at "dune build -p merlin -j 7".

#=== ERROR while compiling merlin.4.7-413 =====================================#
# context     2.4.1 | linux/x86_64 | ocaml-base-compiler.4.13.1 | https://opam.ocaml.org#21f97b2e6d7c617fc0a79cc8e59b2e10690960e1
# path        ~/.opam/4.13.1/.opam-switch/build/merlin.4.7-413
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p merlin -j 7
# exit-code   1
# env-file    ~/.opam/log/merlin-65231-dfbc0e.env
# output-file ~/.opam/log/merlin-65231-dfbc0e.out
### output ###
# [...]
# ocamlmerlin.c:377:41: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
#   377 |     snprintf(socket_path, PATHSZ, "%s/%s", path_socketdir(), socketname);
#       |                                         ^
# In function ‘snprintf’,
#     inlined from ‘start_server.constprop’ at ocamlmerlin.c:377:5:
# /usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 4098) into a destination of size 4097
#    68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#    69 |                                    __glibc_objsize (__s), __fmt,
#       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#    70 |                                    __va_arg_pack ());
#       |                                    ~~~~~~~~~~~~~~~~~

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build merlin 4.7-413
└─ 
╶─ No changes have been performed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions