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

Build error on macOS #31

Open
slanska opened this issue Jan 28, 2017 · 4 comments
Open

Build error on macOS #31

slanska opened this issue Jan 28, 2017 · 4 comments

Comments

@slanska
Copy link

slanska commented Jan 28, 2017

I followed your instructions to build and got the following:

Undefined symbols for architecture x86_64:
  "_pthread_barrier_destroy", referenced from:
      _uv_barrier_destroy in libuv.a(thread.c.o)
  "_pthread_barrier_init", referenced from:
      _uv_barrier_init in libuv.a(thread.c.o)
  "_pthread_barrier_wait", referenced from:
      _uv_barrier_wait in libuv.a(thread.c.o)

Am I missing something?
Thanks!

@mike-lischke
Copy link

mike-lischke commented Jun 20, 2017

Got exactly the same build error. Is anyone looking into such issues actually?

@creationix
Copy link
Owner

I'm sorry I don't have time to look into it right now. I no longer even own a macbook and running OSX inside a virtual machine has proven problematic.

@orzFly
Copy link

orzFly commented Sep 9, 2017

diff --git a/uv.cmake b/uv.cmake
index d186a07..c638aeb 100644
--- a/uv.cmake
+++ b/uv.cmake
@@ -121,6 +121,7 @@ else()
     ${LIBUVDIR}/src/unix/timer.c
     ${LIBUVDIR}/src/unix/tty.c
     ${LIBUVDIR}/src/unix/udp.c
+    ${LIBUVDIR}/src/unix/pthread-barrier.c
   )
 endif()

(ref: https://stackoverflow.com/a/40911928/2724079)

@creationix
Copy link
Owner

FWIW, if we upgrade to latest libuv, this dependency goes away.

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

4 participants