[lttng-dev] urcu configure/build failures on Darwin

D'Alessandro, Luke K ldalessa at indiana.edu
Tue Jun 14 16:31:21 UTC 2016


I tried following the Darwin instructions on the website (basically `./configure --build=x86_64-apple-darwin11` but the `clock_gettime` and `-lrt` dependencies don’t exist on Darwin).

Just for fun I removed this dependency and added a custom version of `clock_gettime` (https://github.com/lorrden/darwin-posix-rt/blob/master/clock_gettime.c <https://github.com/lorrden/darwin-posix-rt/blob/master/clock_gettime.c>) but the build still fails in `systcall-compat.h`.

```
$ make V=1
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in .
/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
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
In file included from wfqueue.c:28:
In file included from ./urcu/static/wfqueue.h:33:
In file included from ./urcu/uatomic.h:24:
In file included from ./urcu/system.h:23:
In file included from ./urcu/arch.h:27:
./urcu/syscall-compat.h:39:2: error: "Add platform support to urcu/syscall-compat.h"
#error "Add platform support to urcu/syscall-compat.h"
 ^
1 error generated.
make[2]: *** [wfqueue.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
```

Is Darwin still a supported platform for the library?

Thanks,
Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160614/748ea62e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160614/748ea62e/attachment.sig>


More information about the lttng-dev mailing list