<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 22, 2016, at 11:37 AM, Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com" class="">mathieu.desnoyers@efficios.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class=""><span id="zwchr" data-marker="__DIVIDER__" class="">----- On Jun 14, 2016, at 12:31 PM, Luke K D'Alessandro <<a href="mailto:ldalessa@indiana.edu" class="">ldalessa@indiana.edu</a>> wrote:<br class=""></span></div><div data-marker="__QUOTED_TEXT__" class=""><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" class=""><span class="">I tried following the Darwin instructions on the website (basically `</span><span class="">./configure --build=x86_64-apple-darwin11` but the `clock_gettime` and `-lrt` dependencies don’t exist on Darwin).</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Just for fun I removed this dependency and added a custom version of `clock_gettime` (</span><a href="https://github.com/lorrden/darwin-posix-rt/blob/master/clock_gettime.c" class="" target="_blank">https://github.com/lorrden/darwin-posix-rt/blob/master/clock_gettime.c</a>) but the build still fails in `systcall-compat.h`.</div><span class=""><div class=""><span class=""><br class=""></span></div>```<br class=""></span><span class="">$ make V=1<br class="">/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive<br class="">Making all in .<br class="">/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./urcu -I./urcu -Wall -g -O2 -D_THREAD_SAFE -pthread -MT wfqueue.lo -MD -MP -MF .deps/wfqueue.Tpo -c -o wfqueue.lo wfqueue.c<br class="">libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./urcu -I./urcu -Wall -g -O2 -D_THREAD_SAFE -pthread -MT wfqueue.lo -MD -MP -MF .deps/wfqueue.Tpo -c wfqueue.c -fno-common -DPIC -o .libs/wfqueue.o<br class="">In file included from wfqueue.c:28:<br class="">In file included from ./urcu/static/wfqueue.h:33:<br class="">In file included from ./urcu/uatomic.h:24:<br class="">In file included from ./urcu/system.h:23:<br class="">In file included from ./urcu/arch.h:27:<br class="">./urcu/syscall-compat.h:39:2: error: "Add platform support to urcu/syscall-compat.h"<br class="">#error "Add platform support to urcu/syscall-compat.h"<br class=""> ^<br class="">1 error generated.<br class="">make[2]: *** [wfqueue.lo] Error 1<br class="">make[1]: *** [all-recursive] Error 1<br class="">make: *** [all] Error 2<br class=""></span><span class="">```</span><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Is Darwin still a supported platform for the library?</span></div></blockquote><div class=""><br class=""></div><div class="">It should, yes, but we don't test it in our CI yet.<br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class="">I just took care of the syscall-compat.h error (pushed into master</div><div class="">and stable-0.9). For clock_gettime, we would need to implement</div><div class="">a LGPLv2.1 wrapper within liburcu for MacOSX.<br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class="">Is this something you could look into ?<br data-mce-bogus="1" class=""></div></div></div></div></div></blockquote><div><br class=""></div><div>Hmm. This isn’t really something I know much about. </div><div><br class=""></div><div>The github link I sent seems to be either GPLv2 or LGPLv3… don’t really know what LGPLv2.1 means. Based on the actually code that I’m seeing, there is really not much going on here and thus it might be difficult to do anything differently. It might be easier to have urcu use some configuration time behavior to have its own arch-specific timing functionality if necessary.</div><div><br class=""></div><div>Luke</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div data-marker="__QUOTED_TEXT__" class=""><div class=""><br data-mce-bogus="1" class=""></div><div class="">Thanks,<br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class="">Mathieu<br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><div class=""><br data-mce-bogus="1" class=""></div><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt;" class=""><div class=""><span class=""><br class=""></span></div><div class=""><span class="">Thanks,</span></div><div class=""><span class="">Luke</span></div><br class="">_______________________________________________<br class="">lttng-dev mailing list<br class=""><a href="mailto:lttng-dev@lists.lttng.org" class="">lttng-dev@lists.lttng.org</a><br class="">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br class=""></blockquote></div><div class=""><br class=""></div><div data-marker="__SIG_POST__" class="">-- <br class=""></div><div class="">Mathieu Desnoyers<br class="">EfficiOS Inc.<br class=""><a href="http://www.efficios.com" class="">http://www.efficios.com</a></div></div></div></div></blockquote></div><br class=""></body></html>