Bug 278667 - emulators/qemu: build failure for version 9.0.0 on stable/13
Summary: emulators/qemu: build failure for version 9.0.0 on stable/13
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-30 16:00 UTC by Ale
Modified: 2024-05-03 06:37 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ale 2024-04-30 16:00:42 UTC
Trying to update qemu I'm getting the following error:

[6736/6736] Building translation po/zh_CN/LC_MESSAGES/qemu-zh_CN.mo
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:97:14: warning: call to undeclared function 'qemu_plugin_read_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   97 |         sz = qemu_plugin_read_register(reg->handle, reg->new);
      |              ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:297:37: error: unknown type name 'qemu_plugin_reg_descriptor'
  297 | static Register *init_vcpu_register(qemu_plugin_reg_descriptor *desc)
      |                                     ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:309:9: warning: call to undeclared function 'qemu_plugin_read_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  309 |     r = qemu_plugin_read_register(reg->handle, reg->last);
      |         ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:335:34: warning: call to undeclared function 'qemu_plugin_get_registers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  335 |     g_autoptr(GArray) reg_list = qemu_plugin_get_registers();
      |                                  ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:335:23: error: incompatible integer to pointer conversion initializing 'GArray_autoptr' (aka 'struct _GArray *') with an expression of type 'int' [-Wint-conversion]
  335 |     g_autoptr(GArray) reg_list = qemu_plugin_get_registers();
      |                       ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:343:13: error: use of undeclared identifier 'qemu_plugin_reg_descriptor'
  343 |             qemu_plugin_reg_descriptor *rd = &g_array_index(
      |             ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:343:41: error: use of undeclared identifier 'rd'
  343 |             qemu_plugin_reg_descriptor *rd = &g_array_index(
      |                                         ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:343:47: error: expected expression
  343 |             qemu_plugin_reg_descriptor *rd = &g_array_index(
      |                                               ^
/usr/local/include/glib-2.0/glib/garray.h:69:40: note: expanded from macro 'g_array_index'
   69 | #define g_array_index(a,t,i)      (((t*) (void *) (a)->data) [(i)])
      |                                        ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:344:27: error: use of undeclared identifier 'qemu_plugin_reg_descriptor'
  344 |                 reg_list, qemu_plugin_reg_descriptor, r);
      |                           ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:343:47: error: expected expression
  343 |             qemu_plugin_reg_descriptor *rd = &g_array_index(
      |                                               ^
/usr/local/include/glib-2.0/glib/garray.h:69:43: note: expanded from macro 'g_array_index'
   69 | #define g_array_index(a,t,i)      (((t*) (void *) (a)->data) [(i)])
      |                                           ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:347:61: error: use of undeclared identifier 'rd'
  347 |                 g_autofree gchar *rd_lower = g_utf8_strdown(rd->name, -1);
      |                                                             ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:348:54: error: use of undeclared identifier 'rd'
  348 |                 if (g_pattern_spec_match_string(pat, rd->name) ||
      |                                                      ^
/usr/ports/emulators/qemu/work-default/qemu-9.0.0/contrib/plugins/execlog.c:350:56: error: use of undeclared identifier 'rd'
  350 |                     Register *reg = init_vcpu_register(rd);
      |                                                        ^
3 warnings and 10 errors generated.
gmake[2]: *** [Makefile:49: execlog.o] Error 1
gmake[1]: *** [Makefile:187: contrib/plugins/all] Error 2
gmake[1]: Leaving directory '/usr/ports/emulators/qemu/work-default/qemu-9.0.0/build'
gmake: *** [GNUmakefile:6: build] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/emulators/qemu
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/qemu
Comment 1 Ivan Rozhuk 2024-05-03 06:37:52 UTC
+1
FreeBSD 14/stable
All options unset.

[6682/6687] Compiling C object libqemu-ppc64-softmmu.fa.p/target_ppc_translate.c.o
[6683/6687] Linking target qemu-system-ppc64
[6684/6687] Compiling C object libqemu-riscv32-softmmu.fa.p/target_riscv_translate.c.o
[6685/6687] Linking target qemu-system-riscv32
[6686/6687] Compiling C object libqemu-riscv64-softmmu.fa.p/target_riscv_translate.c.o
[6687/6687] Linking target qemu-system-riscv64
gmake[1]: Leaving directory '/tmp/ports/usr/ports/emulators/qemu/work-default/qemu-9.0.0/build'
gmake: *** [GNUmakefile:6: build] Error 2
*** Error code 2