dukluv
dukluv copied to clipboard
Build error on macOS
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!
Got exactly the same build error. Is anyone looking into such issues actually?
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.
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)
FWIW, if we upgrade to latest libuv, this dependency goes away.