qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] tests: Fix broken tcg test compilation


From: Pranith Kumar
Subject: Re: [Qemu-devel] [PATCH v2] tests: Fix broken tcg test compilation
Date: Fri, 2 Sep 2016 08:04:32 -0400

Hi Michal,

On Fri, Sep 2, 2016 at 7:49 AM, Michal Privoznik <address@hidden> wrote:
> The first build error to be seen is that linux-test.c fails to
> include cutils.h:
>
> linux-test.c:42:25: fatal error: qemu/cutils.h: No such file or directory
>
> This is because toplevel include/ dir is not put onto compiler's
> command line. After that:
>
> qemu.git/include/qemu/cutils.h:171:1: error: unknown type name ‘bool’
>
> So we need to include "qemu/osdep.h" which will define bool type
> for us. However, osdep.h eventually includes glib.h from system,
> therefore we need to put GLIB_CFLAGS onto compiler's command line
> too.
>
> Lastly, getrusage is used in linux-test.c. This function and a
> struct it uses are defined in sys/resource.h:
>
> linux-test.c:247:5: warning: implicit declaration of function ‘getrusage’
>

I recently posted a patch series cleaning up tests/tcg. While doing
that I fixed the build issues I came across.

Please see: https://www.mail-archive.com/address@hidden/msg393764.html

Thanks,
--
Pranith



reply via email to

[Prev in Thread] Current Thread [Next in Thread]