[libvirt] [PATCH 0/2] Attempt, and fail, to fix build with Clang 3.9 / Linux

Eric Blake eblake at redhat.com
Fri Jan 6 21:48:11 UTC 2017


On 01/02/2017 12:15 PM, Andrea Bolognani wrote:

> The last one I was unable to work around in any sensible
> manner: when linking, clang fails with
> 
>   ../gnulib/lib/.libs/libgnu.a(mgetgroups.o):
>   In function `realloc_groupbuf':
>   .../libvirt/gnulib/lib/mgetgroups.c:45:
>   undefined reference to `__muloti4'
> 
> This seems to be a well-known issue[1] with no solution in
> sight; passing CFLAGS='-rtlib=compiler-rt' to configure
> allows the compilation to succeed but, yeah, way gross.

And gnulib just fixed things to avoid tickling that clang bug:

http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=04441fd8

Work around LLVM bug 16404, which is still not fixed.
https://llvm.org/bugs/show_bug.cgi?id=16404
Problem reported by Nelson H. F. Beebe.

Shall I go ahead and update the gnulib submodule to the latest, and see
if you can get further with your clang tests as a result?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170106/6691ef30/attachment-0001.sig>


More information about the libvir-list mailing list