<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><span id="zwchr" data-marker="__DIVIDER__">----- On Jun 22, 2016, at 11:56 AM, Luke K D'Alessandro <ldalessa@indiana.edu> wrote:<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br class=""><div><blockquote class=""><div class="">On Jun 22, 2016, at 11:37 AM, Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com" class="" target="_blank">mathieu.desnoyers@efficios.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class=""><span id="zwchr" class="">----- On Jun 14, 2016, at 12:31 PM, Luke K D'Alessandro <<a href="mailto:ldalessa@indiana.edu" class="" target="_blank">ldalessa@indiana.edu</a>> wrote:<br class=""></span></div><div 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 class=""></div><div class=""><br 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 class=""></div><div class=""><br class=""></div><div class="">Is this something you could look into ?<br 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></blockquote><div><br></div><div>The only place where we need clock_gettime is urcu/arch/generic.h<br data-mce-bogus="1"></div><div>caa_get_cycles.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I just pushed the implementation of the fix in master and stable-0.9.<br></div><div>Tested on my own macos mini machine. Can you try them out ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><div><br class=""></div><div>Luke</div><br class=""><blockquote class=""><div class=""><div class=""><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;" class=""><div class=""><div class=""><br class=""></div><div class="">Thanks,<br class=""></div><div class=""><br class=""></div><div class="">Mathieu<br class=""></div><div class=""><br class=""></div><div class=""><br 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="" target="_blank">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 class="">-- <br class=""></div><div class="">Mathieu Desnoyers<br class="">EfficiOS Inc.<br class=""><a href="http://www.efficios.com" class="" target="_blank">http://www.efficios.com</a><br data-mce-bogus="1"></div></div></div></div></blockquote></div><br class=""><br></blockquote></div><br><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>