qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: source fails to compile on msys2
@ 2023-04-12 13:13 Howard Spoelstra
  2023-04-12 13:20 ` Stefan Weil via
  2023-04-12 13:39 ` Thomas Huth
  0 siblings, 2 replies; 9+ messages in thread
From: Howard Spoelstra @ 2023-04-12 13:13 UTC (permalink / raw)
  To: qemu-devel qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

Hello Peter,

My source was cloned today. I just cloned again and I still see the tokens
reversed:
git clone https://www.gitlab.com/qemu/qemu qemu-master-clean

/**
 * qemu_build_not_reached()
 *
 * The compiler, during optimization, is expected to prove that a call
 * to this function cannot be reached and remove it.  If the compiler
 * supports QEMU_ERROR, this will be reported at compile time; otherwise
 * this will be reported at link time due to the missing symbol.
 */
extern G_NORETURN
void QEMU_ERROR("code path is reachable")
    qemu_build_not_reached_always(void);
#if defined(__OPTIMIZE__) && !defined(__NO_INLINE__)
#define qemu_build_not_reached()  qemu_build_not_reached_always()
#else
#define qemu_build_not_reached()  g_assert_not_reached()
#endif


The source on gitlab shows the correct order:

/** * qemu_build_not_reached() * * The compiler, during optimization,
is expected to prove that a call * to this function cannot be reached
and remove it.  If the compiler * supports QEMU_ERROR, this will be
reported at compile time; otherwise * this will be reported at link
time due to the missing symbol. */G_NORETURN externvoid
QEMU_ERROR("code path is reachable")
qemu_build_not_reached_always(void);#if defined(__OPTIMIZE__) &&
!defined(__NO_INLINE__)#define qemu_build_not_reached()
qemu_build_not_reached_always()#else#define qemu_build_not_reached()
g_assert_not_reached()#endif

[-- Attachment #2: Type: text/html, Size: 5336 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: source fails to compile on msys2
@ 2023-04-12 14:29 Howard Spoelstra
  0 siblings, 0 replies; 9+ messages in thread
From: Howard Spoelstra @ 2023-04-12 14:29 UTC (permalink / raw)
  To: qemu-devel qemu-devel

[-- Attachment #1: Type: text/plain, Size: 59 bytes --]

Yep, fixed

No idea how I got that wrong ;-)

Best,
Howard

[-- Attachment #2: Type: text/html, Size: 157 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* source fails to compile on msys2
@ 2023-04-12 12:05 Howard Spoelstra
  2023-04-12 12:12 ` BALATON Zoltan
  2023-04-12 12:13 ` Peter Maydell
  0 siblings, 2 replies; 9+ messages in thread
From: Howard Spoelstra @ 2023-04-12 12:05 UTC (permalink / raw)
  To: qemu-devel qemu-devel

[-- Attachment #1: Type: text/plain, Size: 3647 bytes --]

Hello,

It seems the current source fails to compile with up to date msys2.

Source is configured with:
./configure --target-list="ppc-softmmu" --enable-gtk --enable-sdl
--enable-slirp

FAILED: qga/vss-win32/qga-vss.dll.p/install.cpp.obj
"c++" "-m64" "-mcx16" "-Iqga/vss-win32/qga-vss.dll.p" "-Iqga/vss-win32"
"-I../qga/vss-win32" "-I." "-Iqapi" "-Itrace" "-Iui" "-Iui/shader"
"-IC:/msys64/mingw64/include/glib-2.0"
"-IC:/msys64/mingw64/lib/glib-2.0/include" "-fdiagnostics-color=auto"
"-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-Werror" "-std=gnu++11" "-O2"
"-g" "-iquote" "." "-iquote" "C:/msys64/home/hsp/src/qemu-master-clean"
"-iquote" "C:/msys64/home/hsp/src/qemu-master-clean/include" "-iquote"
"C:/msys64/home/hsp/src/qemu-master-clean/tcg/i386" "-D__STDC_LIMIT_MACROS"
"-D__STDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-U_FORTIFY_SOURCE"
"-D_FORTIFY_SOURCE=2" "-fno-pie" "-no-pie" "-D_GNU_SOURCE"
"-D_FILE_OFFSET_BITS=64" "-D_LARGEFILE_SOURCE" "-fno-strict-aliasing"
"-fno-common" "-fwrapv" "-Wundef" "-Wwrite-strings" "-Wtype-limits"
"-Wformat-security" "-Wformat-y2k" "-Winit-self" "-Wignored-qualifiers"
"-Wempty-body" "-Wendif-labels" "-Wexpansion-to-defined"
"-Wimplicit-fallthrough=2" "-Wmissing-format-attribute"
"-Wno-missing-include-dirs" "-Wno-shift-negative-value" "-Wno-psabi"
"-fstack-protector-strong" "-Wno-unknown-pragmas"
"-Wno-delete-non-virtual-dtor" "-Wno-non-virtual-dtor" -MD -MQ
qga/vss-win32/qga-vss.dll.p/install.cpp.obj -MF
"qga/vss-win32/qga-vss.dll.p/install.cpp.obj.d" -o
qga/vss-win32/qga-vss.dll.p/install.cpp.obj "-c"
../qga/vss-win32/install.cpp
In file included from C:/msys64/mingw64/lib/glib-2.0/include/glibconfig.h:9,
                 from C:/msys64/mingw64/include/glib-2.0/glib/gtypes.h:34,
                 from C:/msys64/mingw64/include/glib-2.0/glib/galloca.h:34,
                 from C:/msys64/mingw64/include/glib-2.0/glib.h:32,
                 from
C:/msys64/home/hsp/src/qemu-master-clean/include/glib-compat.h:32,
                 from
C:/msys64/home/hsp/src/qemu-master-clean/include/qemu/osdep.h:144,
                 from ../qga/vss-win32/install.cpp:13:
C:/msys64/mingw64/include/glib-2.0/glib/gmacros.h:1076:21: error: standard
attributes in middle of decl-specifiers
 1076 | # define G_NORETURN [[noreturn]]
      |                     ^
C:/msys64/home/hsp/src/qemu-master-clean/include/qemu/osdep.h:240:8: note:
in expansion of macro 'G_NORETURN'
  240 | extern G_NORETURN
      |        ^~~~~~~~~~
C:/msys64/mingw64/include/glib-2.0/glib/gmacros.h:1076:21: note: standard
attributes must precede the decl-specifiers to apply to the declaration, or
follow them to apply to the type
 1076 | # define G_NORETURN [[noreturn]]
      |                     ^
C:/msys64/home/hsp/src/qemu-master-clean/include/qemu/osdep.h:240:8: note:
in expansion of macro 'G_NORETURN'
  240 | extern G_NORETURN
      |        ^~~~~~~~~~
C:/msys64/mingw64/include/glib-2.0/glib/gmacros.h:1076:21: error: attribute
ignored [-Werror=attributes]
 1076 | # define G_NORETURN [[noreturn]]
      |                     ^
C:/msys64/home/hsp/src/qemu-master-clean/include/qemu/osdep.h:240:8: note:
in expansion of macro 'G_NORETURN'
  240 | extern G_NORETURN
      |        ^~~~~~~~~~
C:/msys64/mingw64/include/glib-2.0/glib/gmacros.h:1076:21: note: an
attribute that appertains to a type-specifier is ignored
 1076 | # define G_NORETURN [[noreturn]]
      |                     ^
C:/msys64/home/hsp/src/qemu-master-clean/include/qemu/osdep.h:240:8: note:
in expansion of macro 'G_NORETURN'
  240 | extern G_NORETURN
      |        ^~~~~~~~~~
cc1plus.exe: all warnings being treated as errors

Best,
Howard

[-- Attachment #2: Type: text/html, Size: 4717 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-12 14:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 13:13 source fails to compile on msys2 Howard Spoelstra
2023-04-12 13:20 ` Stefan Weil via
2023-04-12 13:38   ` Peter Maydell
2023-04-12 13:39 ` Thomas Huth
  -- strict thread matches above, loose matches on Subject: below --
2023-04-12 14:29 Howard Spoelstra
2023-04-12 12:05 Howard Spoelstra
2023-04-12 12:12 ` BALATON Zoltan
2023-04-12 12:28   ` Stefan Weil via
2023-04-12 12:13 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).