hw/xen/xen_pvdev: Include qemu/log.h for qemu_log_vprintf()
PATCH 1/1 hw/xen/xen_pvdev: Include qemu/log.h for qemu_log_vprintf()
Olaf Hering reported a build failure due to an undefined reference to 'qemu_log_vprintf'. Explicitely including qemu/log.h seems to fix the issue.
--- hw/xen/xen_pvdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/xen/xen_pvdev.c +1 -1
@@ -18,7 +18,7 @@*/ #include "qemu/osdep.h" - +#include "qemu/log.h" #include "hw/xen/xen_backend.h" #include "hw/xen/xen_pvdev.h"
Signature · 7 lines
1.8.3.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines · Thomas Huth
Olaf Hering reported a build failure due to an undefined reference to '
qemu_log_vprintf'. Explicitely includingqemu/log.hseems to fix the issue.Signed-off-by Thomas Huth <[email protected]>
The fix makes sense:
However I was unable to reproduce the build failure, so I would like a confirmation from Olaf that the fix is working.
Quoted 19 lines
hw/xen/xen_pvdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/xen/xen_pvdev.c +1
-1@@ -18,7 +18,7 @@*/ #include "qemu/osdep.h" - +#include "qemu/log.h" #include "hw/xen/xen_backend.h" #include "hw/xen/xen_pvdev.h" Signature · 1 line
1.8.3.1
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Thomas Huth
Olaf Hering reported a build failure due to an undefined reference to '
qemu_log_vprintf'. Explicitely includingqemu/log.hseems to fix the issue.Signed-off-by Thomas Huth <[email protected]>
Olaf
Quoted 5 lines · Stefano Stabellini
Quoted 4 lines · Thomas Huth
Olaf Hering reported a build failure due to an undefined reference to '
qemu_log_vprintf'. Explicitely includingqemu/log.hseems to fix the issue.
Quoted 8 lines
Quoted 1 line
Signed-off-by Thomas Huth <[email protected]>The fix makes sense:
However I was unable to reproduce the build failure, so I would like a confirmation from Olaf that the fix is working.
If you configure with the (default) simple trace backend then trace.h will pull in qemu/log.h (and in this case trace.h comes in via xen_common.h). But if you're using a different backend then it won't bring in that header, and you'll get the build failure.
This is a fairly common "breaks but only with some trace backends" compile failure, but I'm not sure how best to try to make it more robust (or at least into a 'fails-everywhere' bug).
thanks
-- PMM
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 21 lines · Peter Maydell
Quoted 5 lines · Stefano Stabellini
Quoted 4 lines · Thomas Huth
Olaf Hering reported a build failure due to an undefined reference to '
qemu_log_vprintf'. Explicitely includingqemu/log.hseems to fix the issue.Quoted 8 lines
Quoted 1 line
Signed-off-by Thomas Huth <[email protected]>The fix makes sense:
However I was unable to reproduce the build failure, so I would like a confirmation from Olaf that the fix is working.
If you configure with the (default) simple trace backend then
trace.hwill pull inqemu/log.h(and in this casetrace.hcomes in viaxen_common.h). But if you're using a different backend then it won't bring in that header, and you'll get the build failure.
Quoted 4 lines
This is a fairly common "breaks but only with some trace backends" compile failure, but I'm not sure how best to try to make it more robust (or at least into a 'fails-everywhere' bug).
Personally what I can do is adding
--enable-trace-backends=syslog
to my test scripts. That is enough to repro the issue. Thanks for the explanation.