Thanks Andrea. I downloaded the tarball and compiling from it worked. 

Homero

On Thu, Sep 14, 2017 at 9:20 AM, Andrea Bolognani <abologna@redhat.com> wrote:
On Wed, 2017-09-13 at 17:20 -0400, Homie Pawlowski wrote:
> I'm having issues with compiling libvirt on OSX 10.12
>
>  ~/Development/github/libvirt/ [master] make
> /Library/Developer/CommandLineTools/usr/bin/make  all-recursive
> Making all in .
> Making all in gnulib/lib
> /Library/Developer/CommandLineTools/usr/bin/make  all-am
> make[3]: Nothing to be done for `all-am'.
> Making all in include/libvirt
> make[2]: Nothing to be done for `all'.
> Making all in src
> /Library/Developer/CommandLineTools/usr/bin/make  all-am
>   CC       util/libvirt_util_la-virthread.lo
> util/virthread.c:272:17: error: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported;
>       please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost().
>       [-Werror,-Wdeprecated-declarations]
>     pid_t tid = syscall(SYS_gettid);
>                 ^
> /usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
> int      syscall(int, ...);
>          ^
> 1 error generated.
> make[3]: *** [util/libvirt_util_la-virthread.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-recursive] Error 1
>
> Anyone have any suggestion on how to do so?

As a quick workaround, you can either pass

  --disable-werror

to configure/autogen.sh or (better) compile from a release
tarball rather than a git clone.

In the long run, someone with access to macOS will have to fix
the issue and post a patch on the development mailing list.

--
Andrea Bolognani / Red Hat / Virtualization



--

HOMERO PAWLOWSKI

CLOUD CONSULTANT

Red Hat 

140 Broadway 24th Floor

New York, NY 10005

hpawlows@redhat.com