dukluv icon indicating copy to clipboard operation
dukluv copied to clipboard

Build error on macOS

Open slanska opened this issue 9 years ago • 4 comments

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!

slanska avatar Jan 28 '17 18:01 slanska

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

mike-lischke avatar Jun 20 '17 08:06 mike-lischke

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.

creationix avatar Jun 21 '17 20:06 creationix

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)

orzFly avatar Sep 09 '17 10:09 orzFly

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

creationix avatar Sep 11 '17 17:09 creationix