All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] The error from compiling QEMU statically
@ 2018-11-07  8:43 wj193102
  2018-11-07  9:46 ` Philippe Mathieu-Daudé
  2018-11-07 11:28 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: wj193102 @ 2018-11-07  8:43 UTC (permalink / raw)
  To: qemu-devel

Hi, everybody.
I want to compile QEMU statically. But when I make the soure files, I get the error messages. Please help me to resolve them.
Now I will tell you the steps what I do.
(1)$ cd qemu-3.0.0
(2)$ ./configure --prefix=/usr --static
(3)$ make
When I input the "make" command, and  run it, then I get the error messages.
(1)/block/file-posix.c:1945: Error: There is an unknown field 'prealloc' in the initializer;
(2)/block/file-posix.c:1946: Error: There is an unknown field 'errp' in the initializer.
How to resolve these problems, please help me, thanks.


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

* Re: [Qemu-devel] The error from compiling QEMU statically
  2018-11-07  8:43 [Qemu-devel] The error from compiling QEMU statically wj193102
@ 2018-11-07  9:46 ` Philippe Mathieu-Daudé
  2018-11-07 11:28 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-11-07  9:46 UTC (permalink / raw)
  To: wj193102, qemu-devel

Hi,

On 7/11/18 9:43, wj193102 wrote:
> Hi, everybody.
> I want to compile QEMU statically. But when I make the soure files, I get the error messages. Please help me to resolve them.
> Now I will tell you the steps what I do.
> (1)$ cd qemu-3.0.0
> (2)$ ./configure --prefix=/usr --static

Can you share the output of the configure script?

> (3)$ make
> When I input the "make" command, and  run it, then I get the error messages.
> (1)/block/file-posix.c:1945: Error: There is an unknown field 'prealloc' in the initializer;
> (2)/block/file-posix.c:1946: Error: There is an unknown field 'errp' in the initializer.
> How to resolve these problems, please help me, thanks.

What is your distribution?

I can not reproduce your problem (using Fedora).

Regards,

Phil.

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

* Re: [Qemu-devel] The error from compiling QEMU statically
  2018-11-07  8:43 [Qemu-devel] The error from compiling QEMU statically wj193102
  2018-11-07  9:46 ` Philippe Mathieu-Daudé
@ 2018-11-07 11:28 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-11-07 11:28 UTC (permalink / raw)
  To: wj193102; +Cc: QEMU Developers

On 7 November 2018 at 08:43, wj193102 <wj193102@163.com> wrote:
> Hi, everybody.
> I want to compile QEMU statically. But when I make the soure files, I get the error messages. Please help me to resolve them.
> Now I will tell you the steps what I do.
> (1)$ cd qemu-3.0.0
> (2)$ ./configure --prefix=/usr --static

Note that static compilation is only really supported for
building the linux-user emulators, not for the system
emulators. So it's best to pass configure options to tell
it to only build the linux-user emulators, like
--disable-system --disable-tools

(1)/block/file-posix.c:1945: Error: There is an unknown field
'prealloc' in the initializer;
(2)/block/file-posix.c:1946: Error: There is an unknown field 'errp'
in the initializer.

Which compiler is this? Google provides no hits for
this error message, which suggests you're using something
weird, rather than gcc or clang.

thanks
-- PMM

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

end of thread, other threads:[~2018-11-07 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07  8:43 [Qemu-devel] The error from compiling QEMU statically wj193102
2018-11-07  9:46 ` Philippe Mathieu-Daudé
2018-11-07 11:28 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.