qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* make pxerom report error
@ 2025-12-09 18:48 Liu Jaloo
  2025-12-10 18:45 ` Thomas Huth
  0 siblings, 1 reply; 3+ messages in thread
From: Liu Jaloo @ 2025-12-09 18:48 UTC (permalink / raw)
  To: qemu-devel

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

$ cd qemu
$ git submodule update --init roms/ipxe
$ cd roms
$ make pxerom

report error like this:


> In file included from tests/bigint_test.c:38:
> tests/bigint_test.c: In function ‘bigint_test_exec’:
> tests/bigint_test.c:232:14: error: ‘result_raw’ may be used uninitialized
> [-Werror=maybe-uninitialized]
>   232 |         ok ( memcmp ( result_raw, expected_raw,
>       \
>       |
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   233 |                       sizeof ( result_raw ) ) == 0 );
>       \
>       |                       ~~~~~~~~~~~~~~~~~~~~~~~
> include/ipxe/test.h:45:19: note: in definition of macro ‘okx’
>    45 |         test_ok ( success, file, line, #success )
>       |                   ^~~~~~~
> tests/bigint_test.c:232:9: note: in expansion of macro ‘ok’
>   232 |         ok ( memcmp ( result_raw, expected_raw,
>       \
>       |         ^~
> tests/bigint_test.c:565:9: note: in expansion of macro ‘bigint_add_ok’
>   565 |         bigint_add_ok ( BIGINT ( 0x8a ),
>       |         ^~~~~~~~~~~~~
> In file included from tests/bigint_test.c:36:
> include/string.h:32:19: note: by argument 1 of type ‘const void *’ to
> ‘memcmp’ declared here
>    32 | extern int __pure memcmp ( const void *first, const void *second,
>       |                   ^~~~~~
> tests/bigint_test.c:213:17: note: ‘result_raw’ declared here
>   213 |         uint8_t result_raw[ sizeof ( expected_raw ) ];
>      \
>       |                 ^~~~~~~~~~
> tests/bigint_test.c:565:9: note: in expansion of macro ‘bigint_add_ok’
>   565 |         bigint_add_ok ( BIGINT ( 0x8a ),
>       |         ^~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[1]: *** [Makefile.housekeeping:943: bin/bigint_test.o] Error 1
> make[1]: Leaving directory '/home/jaloo/slackware/qemu/qemu/roms/ipxe/src'
> make: *** [Makefile:126: build-pxe-roms] Error 2

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

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

* Re: make pxerom report error
  2025-12-10 18:45 ` Thomas Huth
@ 2025-12-10 16:50   ` Liu Jaloo
  0 siblings, 0 replies; 3+ messages in thread
From: Liu Jaloo @ 2025-12-10 16:50 UTC (permalink / raw)
  To: Thomas Huth; +Cc: qemu-devel

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

Thanks for your reply.

$ cd roms/ipxe
$ git checkout master

It works well now.

Maybe it's time to update the default ID of the ipxe submodule

On Thu, Dec 11, 2025 at 2:46 AM Thomas Huth <thuth@redhat.com> wrote:

> On 09/12/2025 19.48, Liu Jaloo wrote:
> > $ cd qemu
> > $ git submodule update --init roms/ipxe
> > $ cd roms
> > $ make pxerom
> >
> > report error like this:
> >
> >     In file included from tests/bigint_test.c:38:
> >     tests/bigint_test.c: In function ‘bigint_test_exec’:
> >     tests/bigint_test.c:232:14: error: ‘result_raw’ may be used
> >     uninitialized [-Werror=maybe-uninitialized]
> >        232 |         ok ( memcmp ( result_raw, expected_raw,
>
> >              \
> >            |
>
>   Hi!
>
> QEMU is just a user of the ipxe code, so if you want to get this fixed, I
> think you have to report it to the ipxe project, see
> https://ipxe.org/contact
>
>   HTH,
>    Thomas
>
>

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

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

* Re: make pxerom report error
  2025-12-09 18:48 make pxerom report error Liu Jaloo
@ 2025-12-10 18:45 ` Thomas Huth
  2025-12-10 16:50   ` Liu Jaloo
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2025-12-10 18:45 UTC (permalink / raw)
  To: Liu Jaloo, qemu-devel

On 09/12/2025 19.48, Liu Jaloo wrote:
> $ cd qemu
> $ git submodule update --init roms/ipxe
> $ cd roms
> $ make pxerom
> 
> report error like this:
> 
>     In file included from tests/bigint_test.c:38:
>     tests/bigint_test.c: In function ‘bigint_test_exec’:
>     tests/bigint_test.c:232:14: error: ‘result_raw’ may be used
>     uninitialized [-Werror=maybe-uninitialized]
>        232 |         ok ( memcmp ( result_raw, expected_raw,                
>              \
>            |            

  Hi!

QEMU is just a user of the ipxe code, so if you want to get this fixed, I 
think you have to report it to the ipxe project, see https://ipxe.org/contact

  HTH,
   Thomas



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

end of thread, other threads:[~2025-12-11  0:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09 18:48 make pxerom report error Liu Jaloo
2025-12-10 18:45 ` Thomas Huth
2025-12-10 16:50   ` Liu Jaloo

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).