On 02/29/2016 11:54 AM, Peter Maydell wrote:
> On 29 February 2016 at 16:49, John Snow <[email protected]> wrote:
>> This is due to the new glib-version-detection code that was checked in.
>> I had a configuration using clang, which does not appear to support the
>> mechanisms that are being used to tell what version of glib is being
>> linked against.
>
> FWIW my clang configurations work ok...
>
> thanks
> -- PMM
>
jhuston@scv (master) ~/s/q/b/git> ../../configure --cxx=clang++
--cc=clang --host-cc=clang --extra-cflags=-Werror
--extra-cflags=-fsanitize=undefined
--extra-cflags=-Wno-deprecated-declarations
--extra-cflags=-fno-sanitize=float-divide-by-zero
--target-list="x86_64-softmmu"
ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
You probably need to set PKG_CONFIG_LIBDIR
to point to the right pkg-config files for your
build target
Hasn't worked since 977a82ab; Paolo filed a bug against Clang -- it was
discussed here:
https://lists.nongnu.org/archive/html/qemu-devel/2016-02/msg02482.html
and filed here: https://bugzilla.redhat.com/show_bug.cgi?id=1306455
In the meantime, though, I haven't been able to use Clang on Fedora with
QEMU this month, and it reveals other interesting features of our
makefile like the one I was kvetching about here. :)
--js