lambda-term icon indicating copy to clipboard operation
lambda-term copied to clipboard

Breaking on build with Opam 1.2.2 and OCaml 4.02.3.

Open angrygoats opened this issue 10 years ago • 1 comments

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.

angrygoats avatar Jun 09 '16 18:06 angrygoats

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, [email protected] 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_ .

ghost avatar Jun 10 '16 05:06 ghost