Skip to content

error installing LWT 4.0.1 on Ubuntu 18.04 with musl enabled ocaml compiler via opam #599

@gruenewa

Description

@gruenewa

I am using opam with compiler switch 4.06.1+musl+gcc+static+flambda on Ubuntu 18.04. (The compiler switch is based on the 4.06.1+musl+static+flambda compiler switch by replacing musl-clang with musl-gcc since musl-clang is not available for Ubuntu)

When installing lwt I get the following error:

$ opam install lwt
The following actions will be performed:
  ∗  install lwt 4.0.1
       For the PPX, please install package lwt_ppx
       For Lwt_log and Lwt_daemon, please install package lwt_log

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[lwt] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of lwt failed at "jbuilder build -p lwt -j 4".

#=== ERROR while installing lwt.4.0.1 =========================================#
# opam-version 1.2.2
# os           linux
# command      jbuilder build -p lwt -j 4
# path         /home/xyz/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1
# compiler     4.06.1+musl+gcc+static+flambda
# exit-code    1
# env-file     /home/xyz/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1/lwt-10693-d2c37b.env
# stdout-file  /home/xyz/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1/lwt-10693-d2c37b.out
# stderr-file  /home/xyz/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1/lwt-10693-d2c37b.err
### stderr ###
# [...]
# testing for credentials getting (OpenBSD): ..... unavailable
# testing for credentials getting (FreeBSD): ..... unavailable
# testing for credentials getting (getpeereid): .. unavailable
# testing for fdatasync: ......................... unavailable
# testing for netdb_reentrant: ................... unavailable
# testing for reentrant gethost*: ................ available
# testing for nanosecond stat support: ........... *tim.tv_nsec
# testing for BSD mincore: ....................... unavailable
# Error: Rule failed to generate the following targets:
# - src/unix/dlllwt_unix_stubs.so



=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install lwt 4.0.1
No changes have been performed

=-=- lwt.4.0.1 troubleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> Lwt 4.0.0 has made some breaking changes. See
     https://github.com/ocsigen/lwt/issues/453

Running jbuid for LWT gives ...

/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1$ DEBUG=y jbuilder build -p lwt
Error: Rule failed to generate the following targets:
- src/unix/dlllwt_unix_stubs.so

Looking further I see that there is a statically linked library liblwt_unix_stubs.a which probably should
have been used instead:

/.opam/4.06.1+musl+gcc+static+flambda/build/lwt.4.0.1$  find -name "*lwt_unix_stubs*"
./_build/default/src/unix/liblwt_unix_stubs.a
./_build/default/src/unix/lwt_unix_stubs.o
./_build/default/src/unix/lwt_unix_stubs.c
./src/unix/lwt_unix_stubs.c

Any, ideas? Thank you!

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