Ui 20180308 patches
The following changes since commit f32408f3b472a088467474ab152be3b6285b2d7b:
misc: don't use hwaddr as a type in trace events (2018-03-06 14:24:30 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/ui-20180308-pull-request
for you to fetch changes up to 5c71cfd94d46a9c2e09d041dcc82b297efab2b57:
ui/gtk-egl: add cursor_dmabuf support (2018-03-08 08:59:01 +0100)
----------------------------------------------------------------
gtk: add dmabuf support. cleanups, i18n fix.
sdl: workaround sdl 2.0.8 header bug,
----------------------------------------------------------------
Bruce Rogers (1):
make: switch language file build to be gtk module aware
Gerd Hoffmann (7):
sdl: workaround bug in sdl 2.0.8 headers
ui/gtk: make GtkGlArea usage a runtime option
ui/gtk: group gtk.mo declarations in Makefile
ui/opengl: Makefile cleanup
ui/gtk: use GtkGlArea on wayland only
ui/gtk-egl: add scanout_dmabuf support
ui/gtk-egl: add cursor_dmabuf support
configure | 1 + Makefile | 2 +- include/ui/gtk.h | 14 ++++++++++++ ui/gtk-egl.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++- ui/gtk.c | 68 +++++++++++++++++++++++++++++++++----------------------- ui/Makefile.objs | 25 +++++++++++---------- 6 files changed, 131 insertions(+), 42 deletions(-)
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 2/8] sdl: workaround bug in sdl 2.0.8 headers
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087
Message-id: [email protected]
--- configure | 1 + 1 file changed, 1 insertion(+)
configure +1 -0
@@ -2874,6 +2874,7 @@ if test "$sdl" != "no" ; then int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } EOF sdl_cflags=$($sdlconfig --cflags 2>/dev/null) + sdl_cflags="$sdl_cflags -Wno-undef" # workaround 2.0.8 bug if test "$static" = "yes" ; then if $pkg_config $sdlname --exists; then sdl_libs=$($pkg_config $sdlname --static --libs 2>/dev/null)
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 7/8] ui/gtk-egl: add scanout_dmabuf support
In reply to Gerd HoffmannAdd support for dmabuf scanouts to gtk-egl.
Message-id: [email protected]
--- include/ui/gtk.h | 4 ++++ ui/gtk-egl.c | 23 +++++++++++++++++++++++ ui/gtk.c | 2 ++ 3 files changed, 29 insertions(+)
include/ui/gtk.h +4 -0
@@ -113,6 +113,10 @@ void gd_egl_scanout_texture(DisplayChangeListener *dcl,uint32_t backing_height, uint32_t x, uint32_t y, uint32_t w, uint32_t h); +void gd_egl_scanout_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf); +void gd_egl_release_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf);void gd_egl_scanout_flush (DisplayChangeListener *dcl,uint32_t x,uint32_t y,uint32_t w,uint32_t h);void gtk_egl_init (void );
ui/gtk-egl.c +23 -0
@@ -194,6 +194,29 @@ void gd_egl_scanout_texture(DisplayChangeListener *dcl, backing_id, false); } +void gd_egl_scanout_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf) +{ +#ifdef CONFIG_OPENGL_DMABUF +egl_dmabuf_import_texture (dmabuf); +if (!dmabuf->texture) { +return ; + } + +gd_egl_scanout_texture (dcl, dmabuf->texture, + false, dmabuf->width, dmabuf->height, +0 ,0 , dmabuf->width, dmabuf->height); +#endif +} + +void gd_egl_release_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf) +{ +#ifdef CONFIG_OPENGL_DMABUF +egl_dmabuf_release_texture (dmabuf); +#endif +} +void gd_egl_scanout_flush (DisplayChangeListener *dcl,uint32_t x,uint32_t y,uint32_t w,uint32_t h) {
ui/gtk.c +2 -0
@@ -744,6 +744,8 @@ static const DisplayChangeListenerOps dcl_egl_ops = { .dpy_gl_ctx_get_current = qemu_egl_get_current_context, .dpy_gl_scanout_disable = gd_egl_scanout_disable, .dpy_gl_scanout_texture = gd_egl_scanout_texture, + .dpy_gl_scanout_dmabuf = gd_egl_scanout_dmabuf, + .dpy_gl_release_dmabuf = gd_egl_release_dmabuf, .dpy_gl_update = gd_egl_scanout_flush, };
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 8/8] ui/gtk-egl: add cursor_dmabuf support
In reply to Gerd HoffmannAdd support for cursor dmabufs to gtk-egl. Just blend in the cursor (if we have one) when rendering the dmabuf.
Message-id: [email protected]
--- include/ui/gtk.h | 8 ++++++++ ui/gtk-egl.c | 40 +++++++++++++++++++++++++++++++++++++++- ui/gtk.c | 2 ++ 3 files changed, 49 insertions(+), 1 deletion(-)
include/ui/gtk.h +8 -0
@@ -54,6 +54,9 @@ typedef struct VirtualGfxConsole {int x, y, w, h;egl_fb guest_fb;egl_fb win_fb; +egl_fb cursor_fb; +int cursor_x; +int cursor_y;bool y0_top;bool scanout_mode;#endif
@@ -115,6 +118,11 @@ void gd_egl_scanout_texture(DisplayChangeListener *dcl, uint32_t w, uint32_t h);void gd_egl_scanout_dmabuf (DisplayChangeListener *dcl,QemuDmaBuf *dmabuf); +void gd_egl_cursor_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf,bool have_hot, +uint32_t hot_x,uint32_t hot_y); +void gd_egl_cursor_position (DisplayChangeListener *dcl, +uint32_t pos_x,uint32_t pos_y);void gd_egl_release_dmabuf (DisplayChangeListener *dcl,QemuDmaBuf *dmabuf); void gd_egl_scanout_flush(DisplayChangeListener *dcl,
ui/gtk-egl.c +39 -1
@@ -19,6 +19,7 @@#include "ui/console.h" #include "ui/gtk.h" #include "ui/egl-helpers.h" +#include "ui/shader.h" #include "sysemu/sysemu.h"
@@ -209,6 +210,35 @@ void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl,#endif } +void gd_egl_cursor_dmabuf (DisplayChangeListener *dcl, +QemuDmaBuf *dmabuf,bool have_hot, +uint32_t hot_x,uint32_t hot_y) +{ +#ifdef CONFIG_OPENGL_DMABUF +VirtualConsole *vc =container_of (dcl, VirtualConsole, gfx.dcl); + +if (dmabuf) { +egl_dmabuf_import_texture (dmabuf); +if (!dmabuf->texture) { +return ; + } +egl_fb_setup_for_tex (&vc->gfx.cursor_fb, dmabuf->width, dmabuf->height, + dmabuf->texture, false); + }else { +egl_fb_destroy (&vc->gfx.cursor_fb); + } +#endif +} + +void gd_egl_cursor_position (DisplayChangeListener *dcl, +uint32_t pos_x,uint32_t pos_y) +{ +VirtualConsole *vc =container_of (dcl, VirtualConsole, gfx.dcl); + + vc->gfx.cursor_x = pos_x; + vc->gfx.cursor_y = pos_y; +} +void gd_egl_release_dmabuf (DisplayChangeListener *dcl,QemuDmaBuf *dmabuf) {
@@ -237,7 +267,15 @@ void gd_egl_scanout_flush(DisplayChangeListener *dcl, window =gtk_widget_get_window (vc->gfx.drawing_area);gdk_drawable_get_size (window, &ww, &wh);egl_fb_setup_default (&vc->gfx.win_fb, ww, wh); -egl_fb_blit (&vc->gfx.win_fb, &vc->gfx.guest_fb, !vc->gfx.y0_top); +if (vc->gfx.cursor_fb.texture) { +egl_texture_blit (vc->gfx.gls, &vc->gfx.win_fb, &vc->gfx.guest_fb, + vc->gfx.y0_top); +egl_texture_blend (vc->gfx.gls, &vc->gfx.win_fb, &vc->gfx.cursor_fb, + vc->gfx.y0_top, + vc->gfx.cursor_x, vc->gfx.cursor_y); + }else { +egl_fb_blit (&vc->gfx.win_fb, &vc->gfx.guest_fb, !vc->gfx.y0_top); + }eglSwapBuffers (qemu_egl_display, vc->gfx.esurface); }
ui/gtk.c +2 -0
@@ -745,6 +745,8 @@ static const DisplayChangeListenerOps dcl_egl_ops = { .dpy_gl_scanout_disable = gd_egl_scanout_disable, .dpy_gl_scanout_texture = gd_egl_scanout_texture, .dpy_gl_scanout_dmabuf = gd_egl_scanout_dmabuf, + .dpy_gl_cursor_dmabuf = gd_egl_cursor_dmabuf, + .dpy_gl_cursor_position = gd_egl_cursor_position, .dpy_gl_release_dmabuf = gd_egl_release_dmabuf, .dpy_gl_update = gd_egl_scanout_flush, };
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 1/8] make: switch language file build to be gtk module aware
In reply to Gerd HoffmannFrom: Bruce Rogers <[email protected]>
Now that gtk support builds as a module, CONFIG_GTK changed from y to m. Adjust Makefile correspondingly.
Message-id: [email protected]
--- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
@@ -851,7 +851,7 @@ ifneq ($(BLOBS),) $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(qemu_datadir)"; \ done endif -ifeq ($(CONFIG_GTK),y) +ifeq ($(CONFIG_GTK),m) $(MAKE) -C po $@ endif $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 4/8] ui/gtk: group gtk.mo declarations in Makefile
In reply to Gerd HoffmannMessage-id: [email protected]
--- ui/Makefile.objs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
ui/Makefile.objs +7 -5
@@ -38,6 +38,13 @@ common-obj-$(CONFIG_GTK) += gtk.mo gtk.mo-objs := gtk.o gtk.mo-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) gtk.mo-libs := $(GTK_LIBS) $(VTE_LIBS) +ifeq ($(CONFIG_OPENGL),y) +gtk.mo-objs += gtk-egl.o +gtk.mo-libs += $(OPENGL_LIBS) +ifeq ($(CONFIG_GTK_GL),y) +gtk.mo-objs += gtk-gl-area.o +endif +endif common-obj-$(CONFIG_CURSES) += curses.mo curses.mo-objs := curses.o
@@ -50,11 +57,6 @@ common-obj-y += console-gl.o common-obj-y += egl-helpers.o common-obj-y += egl-context.o common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o -ifeq ($(CONFIG_GTK_GL),y) -gtk.mo-objs += gtk-gl-area.o -endif -gtk.mo-objs += gtk-egl.o -gtk.mo-libs += $(OPENGL_LIBS) endif shader.o-libs += $(OPENGL_LIBS)
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 6/8] ui/gtk: use GtkGlArea on wayland only
In reply to Gerd HoffmannFor dma-buf support we need a egl context. The gtk x11 backend uses glx contexts though. We can't use the GtkGlArea widget on x11 because of that, so use our own gtk-egl code instead. wayland continues to use the GtkGlArea widget.
Message-id: [email protected]
--- ui/gtk.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
ui/gtk.c +8 -5
@@ -2440,12 +2440,15 @@ static void early_gtk_display_init(DisplayOptions *opts)assert (opts->type ==DISPLAY_TYPE_GTK );if (opts->has_gl && opts->gl) {#if defined(CONFIG_OPENGL ) -#if defined(CONFIG_GTK_GL ) - gtk_use_gl_area = true; -gtk_gl_area_init (); -#else -gtk_egl_init (); +#if defined(CONFIG_GTK_GL ) && defined(GDK_WINDOWING_WAYLAND ) +if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ())) { + gtk_use_gl_area = true; +gtk_gl_area_init (); + }#endif + { +gtk_egl_init (); + }#endif }
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 3/8] ui/gtk: make GtkGlArea usage a runtime option
In reply to Gerd HoffmannCompile in both gtk-egl and gtk-gl-area, then allow to choose at runtime instead of compile time which opengl variant we want use.
Message-id: [email protected]
--- include/ui/gtk.h | 2 ++ ui/gtk.c | 53 +++++++++++++++++++++++++++++------------------------ ui/Makefile.objs | 3 +-- 3 files changed, 32 insertions(+), 26 deletions(-)
include/ui/gtk.h +2 -0
@@ -90,6 +90,8 @@ typedef struct VirtualConsole { }; } VirtualConsole; +extern bool gtk_use_gl_area; +/* ui/gtk.c */ void gd_update_windowsize (VirtualConsole *vc);
ui/gtk.c +29 -24
108 lines not on this page · raw message
ui/Makefile.objs +1 -2
@@ -52,11 +52,10 @@ common-obj-y += egl-context.o common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o ifeq ($(CONFIG_GTK_GL),y) gtk.mo-objs += gtk-gl-area.o -else +endif gtk.mo-objs += gtk-egl.o gtk.mo-libs += $(OPENGL_LIBS) endif -endif shader.o-libs += $(OPENGL_LIBS) console-gl.o-libs += $(OPENGL_LIBS)
Signature · 1 line
2.9.3
[Qemu-devel] [PULL 5/8] ui/opengl: Makefile cleanup
In reply to Gerd HoffmannWith gtk.mo bits moved away we don't need the ifeq any more. Also add missing opengl libs for some objects.
Message-id: [email protected]
--- ui/Makefile.objs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
ui/Makefile.objs +6 -6
@@ -51,14 +51,14 @@ curses.mo-objs := curses.o curses.mo-cflags := $(CURSES_CFLAGS) curses.mo-libs := $(CURSES_LIBS) -ifeq ($(CONFIG_OPENGL),y) -common-obj-y += shader.o -common-obj-y += console-gl.o -common-obj-y += egl-helpers.o -common-obj-y += egl-context.o +common-obj-$(CONFIG_OPENGL) += shader.o +common-obj-$(CONFIG_OPENGL) += console-gl.o +common-obj-$(CONFIG_OPENGL) += egl-helpers.o +common-obj-$(CONFIG_OPENGL) += egl-context.o common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o -endif shader.o-libs += $(OPENGL_LIBS) console-gl.o-libs += $(OPENGL_LIBS) egl-helpers.o-libs += $(OPENGL_LIBS) +egl-context.o-libs += $(OPENGL_LIBS) +egl-headless.o-libs += $(OPENGL_LIBS)
Signature · 1 line
2.9.3
Quoted 21 lines · Gerd Hoffmann
The following changes since commit
f32408f3b472a088467474ab152be3b6285b2d7b:misc: don't use hwaddr as a type in trace events (2018-03-06 14:24:30 +0000)
are available in the git repository at:
git://git.kraxel.org/qemutags/ui-20180308-pull-requestfor you to fetch changes up to
5c71cfd94d46a9c2e09d041dcc82b297efab2b57:ui/gtk-egl: add
cursor_dmabufsupport (2018-03-08 08:59:01 +0100)----------------------------------------------------------------
gtk: add dmabuf support. cleanups, i18n fix.
sdl: workaround sdl 2.0.8 header bug,----------------------------------------------------------------
Bruce Rogers (1):
make: switch language file build to be gtk module aware
Quoted 9 lines
Gerd Hoffmann (7):
sdl: workaround bug in sdl 2.0.8 headers
ui/gtk: make GtkGlArea usage a runtime option
ui/gtk: group gtk.mo declarations inMakefile
ui/opengl:Makefilecleanup
ui/gtk: use GtkGlArea on wayland only
ui/gtk-egl: addscanout_dmabufsupport
ui/gtk-egl: addcursor_dmabufsupport
Hi. This gives me a new warning on FreeBSD:
CC ui/gtk.o/root/qemu/ui/gtk.c:2141:13: warning: 'gtk_widget_set_double_buffered' is deprecated [-Wdeprecated-declarations]
gtk_widget_set_double_buffered(vc->gfx.drawing_area, FALSE);
^/usr/local/include/gtk-3.0/gtk/gtkwidget.h:876:23: note:
'gtk_widget_set_double_buffered' has been explicitly marked deprecated here
void gtk_widget_set_double_buffered (GtkWidget *widget,
^
1 warning generated.
thanks
-- PMM
Hi,
Quoted 11 lines
Hi. This gives me a new warning on FreeBSD:
CC
ui/gtk.o/root/qemu/ui/gtk.c:2141:13: warning: 'gtk_widget_set_double_buffered' is deprecated [-Wdeprecated-declarations]gtk_widget_set_double_buffered(vc->gfx.drawing_area, FALSE); ^
/usr/local/include/gtk-3.0/gtk/gtkwidget.h:876:23: note:
'gtk_widget_set_double_buffered' has been explicitly marked deprecated here
voidgtk_widget_set_double_buffered(GtkWidget *widget,
Known issue. The gtk-egl.c code needs this even though it is deprecated. We have a diagnostic pragma in place for gcc, seems that doesn't work on freebsd because it builds with clang not gcc.
Hmm, quick googling shows clang seems to support this too.
https://clang.llvm.org/docs/UsersManual.html#pragma-gcc-diagnostic
/me looks puzzled. Test for CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE not working properly on freebsd?
Seems clang doesn't support a pragma used in qemu, config.log says:
error: unknown warning group '-Wunused-but-set-variable'.
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
cheers,
Gerd
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
cheers,
Gerd
Quoted 10 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
Maybe simply remove the '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' from the configure test and change util/coroutine-ucontext.c:
util/coroutine-ucontext.c +1 -1
@@ -170,7 +170,7 @@ Coroutine *qemu_coroutine_new(void) }#ifdef CONFIG_VALGRIND_H -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE +#if defined(CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE ) && !defined(__clang__)/* Work around an unused variable in the valgrind.h macro... */ #pragma GCC diagnostic push#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
@@ -179,7 +179,7 @@ static inline void
valgrind_stack_deregister(CoroutineUContext *co)
{
VALGRIND_STACK_DEREGISTER(co->valgrind_stack_id); }
-#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE
+#if defined(CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#endif
?
Thomas
Quoted 7 lines · Thomas Huth
Quoted 6 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Quoted 8 lines
Quoted 4 lines
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
Maybe simply remove the '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' from the configure test and change
util/coroutine-ucontext.c:
I'll try. Will probably have the effect that freebsd builds with -Werror then (which is now turned off by configure due to missing pragma support), which might trigger more issues ...
cheers,
Gerd
Quoted 13 lines · Gerd Hoffmann
Quoted 12 lines · Thomas Huth
Quoted 10 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
Quoted 7 lines
Quoted 3 lines
Maybe simply remove the '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' from the configure test and change
util/coroutine-ucontext.c:I'll try. Will probably have the effect that freebsd builds with -Werror then (which is now turned off by configure due to missing pragma support), which might trigger more issues ...
Well, guessed almost right. -Werror is enabled on linux only, so freebsd builds do not fail. But clang builds on linux fail, due to a bunch of warnings (now errors) about unaligned access to struct members.
cheers,
Gerd
Quoted 18 lines · Gerd Hoffmann
Quoted 17 lines · Gerd Hoffmann
Quoted 15 lines · Thomas Huth
Quoted 10 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
Maybe simply remove the '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' from the configure test and change
util/coroutine-ucontext.c:
Quoted 7 lines
Quoted 3 lines
I'll try. Will probably have the effect that freebsd builds with -Werror then (which is now turned off by configure due to missing pragma support), which might trigger more issues ...
Well, guessed almost right. -Werror is enabled on linux only, so freebsd builds do not fail. But clang builds on linux fail, due to a bunch of warnings (now errors) about unaligned access to struct members.
Ugh, this is getting messy ... could you maybe turn them back into warnings again with -Wno-error=... when compiling with clang?
Thomas
Quoted 23 lines · Thomas Huth
Quoted 22 lines · Gerd Hoffmann
Quoted 20 lines · Gerd Hoffmann
Quoted 7 lines · Thomas Huth
Quoted 6 lines · Gerd Hoffmann
Hi,
Quoted 3 lines
Maybe I should move the code to a separate source file so it can be built with different compiler flags, without needing #pragma? I don't feel like building all gtk code with -Wno-deprecated-declarations ...
Quoted 8 lines
Quoted 4 lines
Hmm, that idea doesn't fly, seems per-object cflags don't work for object files which get linked into a module.
Other ideas anyone?
Maybe simply remove the '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"' from the configure test and change
util/coroutine-ucontext.c:I'll try. Will probably have the effect that freebsd builds with -Werror then (which is now turned off by configure due to missing pragma support), which might trigger more issues ...
Quoted 6 lines
Quoted 3 lines
Well, guessed almost right. -Werror is enabled on linux only, so freebsd builds do not fail. But clang builds on linux fail, due to a bunch of warnings (now errors) about unaligned access to struct members.
Ugh, this is getting messy ... could you maybe turn them back into warnings again with -Wno-error=... when compiling with clang?
Well, I can add -Wno-address-of-packed-member to the list of flags configure tries to use with the compiler. That gets me past that warning, but the build will stop on the next then. qemu simply doesn't build warning-clean with clang ...
cheers,
Gerd
Quoted 4 lines · Gerd Hoffmann
Well, I can add -Wno-address-of-packed-member to the list of flags configure tries to use with the compiler. That gets me past that warning, but the build will stop on the next then. qemu simply doesn't build warning-clean with clang ...
That depends on your clang version. I have 3.8.0 in my test set builds with -Werror enabled.
At some point we should go through and fix the issues that newer clang versions warn about.
thanks
-- PMM