ocaml-community / lambda-term

Terminal manipulation library for OCaml
Other
209 stars 43 forks source link

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

Open angrygoats opened 8 years ago

angrygoats commented 8 years ago

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.

ghost commented 8 years ago

Looks like a linking error due to lwt, can you link anything at all using let.unix?

On Thu, 9 Jun 2016, 19:29 Taylor Bockman, notifications@github.com wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/diml/lambda-term/issues/40, or mute the thread https://github.com/notifications/unsubscribe/ABMZANrj3fzBXxidKHotmnh9IxKlXYeQks5qKFuVgaJpZM4IyRM_ .