qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] trace: work around ranlib warning for 'nop' bac


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] trace: work around ranlib warning for 'nop' backend
Date: Thu, 24 Jan 2013 15:58:29 +0000

On 24 January 2013 15:04, Stefan Hajnoczi <address@hidden> wrote:
> The 'nop' backend does not emit any C code and therefore leaves
> trace/generated-tracers.c empty.  Peter Maydell
> <address@hidden> reports that ranlib(1) prints a warning when
> it encounters object files that define no symbols:
>
>   /usr/bin/ranlib: file: libqemuutil.a(generated-tracers.o) has no symbols
>
> Define a dummy symbol to silence ranlib(1).  Note that it will not be
> linked into the final binary since there are no dependencies on it.
>
> Reported-by: Peter Maydell <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
> Peter: Please test this patch.  It feels a little dirty but I think it's worth
> getting rid of the ranlib warning in the default build on your host.

Yes, this patch silences the ranlib warning about
generated-tracers.o.

NB that there are still two other .o files that ranlib
warns about:

/usr/bin/ranlib: file: libqemuutil.a(host-utils.o) has no symbols
/usr/bin/ranlib: file: libqemuutil.a(cache-utils.o) has no symbols

thanks
-- PMM



reply via email to

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