<div dir="ltr">On Thu, Aug 29, 2013 at 8:08 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 08/29/2013 08:58 AM, Jason Helfman wrote:<br>
> Hello,<br>
><br>
> There is an initiative at FreeBSD in removing gcc from base system and<br>
> using CLANG. That being said, we are trying to resolve issues of ports that<br>
> can't build without gcc. Libvirt fell into this group, and are curious if<br>
> anyone has any ideas on why this breakage would occur.<br>
><br>
> Here is a link to the buildlog:<br>
> <a href="http://pb2.nyi.freebsd.org/bulk/nogcc-default/2013-08-26_21h09m25s/logs/errors/libvirt-1.1.1.log" target="_blank">http://pb2.nyi.freebsd.org/bulk/nogcc-default/2013-08-26_21h09m25s/logs/errors/libvirt-1.1.1.log</a><br>

<br>
</div>The relevant section:<br>
<br>
<br>
util/virrandom.c:75:1: error: bit-field '_gl_verify_error_if_negative'<br>
has negative width (-1)<br>
verify(((RAND_MAX + 1U) & RAND_MAX) == 0);<br>
^<br>
../gnulib/lib/verify.h:251:19: note: expanded from macro 'verify'<br>
#define verify(R) _GL_VERIFY (R, "verify (" #R ")")<br>
                  ^<br>
../gnulib/lib/verify.h:211:8: note: expanded from macro '_GL_VERIFY'<br>
      [_GL_VERIFY_TRUE (R, DIAGNOSTIC)]<br>
       ^<br>
../gnulib/lib/verify.h:176:15: note: expanded from macro '_GL_VERIFY_TRUE'<br>
   (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC)))<br>
              ^<br>
../gnulib/lib/verify.h:196:27: note: expanded from macro '_GL_VERIFY_TYPE'<br>
    struct { unsigned int _gl_verify_error_if_negative: (R) ? 1 : -1; }<br>
                          ^<br>
1 error generated.<br>
gmake[3]: *** [libvirt_util_la-virrandom.lo] Error 1<br>
<br>
<br>
What does RAND_MAX expand to?<br>
<span class=""><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br>stdlib.h:#define        RAND_MAX        0x7fffffff<br><br></div><div class="gmail_extra">-jgh<br clear="all"></div><div class="gmail_extra"><br>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>
jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br></div>
</div></div>