Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
angrygoats opened this issue Jun 9, 2016 · 1 comment
Open

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

angrygoats opened this issue Jun 9, 2016 · 1 comment

Comments

@angrygoats
Copy link

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 angrygoats changed the title Breaking on build Breaking on build with Opam 1.2.2 and OCaml 4.02.3. Jun 9, 2016
@ghost
Copy link

ghost commented Jun 10, 2016

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
#40, or mute the thread
https://github.com/notifications/unsubscribe/ABMZANrj3fzBXxidKHotmnh9IxKlXYeQks5qKFuVgaJpZM4IyRM_
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant