Skip to content

Breaking on build with Opam 1.2.2 and OCaml 4.02.3. #40

Open
@angrygoats

Description

I am running OCaml 4.02.3 with Opam 1.2.2 on NixOS. I have successfully built lwt 2.5.2 via opam install lwt.

Now when I try to build lamda-term I end up with this error:

### stdout ###
# [...]
# /home/me/.opam/4.02.3/build/lwt.2.5.2/_build/src/unix/lwt_unix_stubs.c:575: undefined reference to `pthread_sigmask'
# /home/me/.opam/4.02.3/lib/lwt/liblwt-unix_stubs.a(lwt_unix_stubs.o): In function `worker_loop':
# /home/me/.opam/4.02.3/build/lwt.2.5.2/_build/src/unix/lwt_unix_stubs.c:1195: undefined reference to `pthread_sigmask'
# /home/me/.opam/4.02.3/lib/lwt/liblwt-unix_stubs.a(lwt_unix_stubs.o): In function `lwt_unix_recv_notifications':
# /home/me/.opam/4.02.3/build/lwt.2.5.2/_build/src/unix/lwt_unix_stubs.c:594: undefined reference to `pthread_sigmask'
# /home/me/.opam/4.02.3/lib/lwt/liblwt-unix_stubs.a(lwt_unix_stubs.o):/home/me/.opam/4.02.3/build/lwt.2.5.2/_build/src/unix/lwt_unix_stubs.c:612: more undefined references to `pthread_sigmask' follow
# collect2: error: ld returned 1 exit status
# File "caml_startup", line 1:
# Error: Error during linking
# Command exited with code 2.

Do you know what could be causing this? Its the only thing keeping me from building utop successfully with opam.

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