qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problem compiling qemu-2.1.1
@ 2018-03-04 11:15 Frans de Boer
  2018-03-04 18:21 ` [Qemu-devel] Problem compiling qemu-2.11.1 Thomas Huth
  2018-03-04 19:00 ` [Qemu-devel] Problem compiling qemu-2.1.1 Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Frans de Boer @ 2018-03-04 11:15 UTC (permalink / raw)
  To: qemu-devel

LS,

I try to compile qemu and get the next error message:

mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:40:12: 
error: static declaration of ‘memfd_create’ follows non-static declaration
  static int memfd_create(const char *name, unsigned int flags)
             ^~~~~~~~~~~~
In file included from /usr/include/bits/mman-linux.h:115:0,
                  from /usr/include/bits/mman.h:45,
                  from /usr/include/sys/mman.h:41,
                  from 
/mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/sysemu/os-posix.h:29,
                  from 
/mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/qemu/osdep.h:104,
                  from 
/mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:28:
/usr/include/bits/mman-shared.h:46:5: note: previous declaration of 
‘memfd_create’ was here
  int memfd_create (const char *__name, unsigned int __flags) __THROW;

I use the newest Tumbleweed of openSuse with the gcc 7.3.0 compiler suite.

Suggestions?

Regards,
Frans.

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

* Re: [Qemu-devel] Problem compiling qemu-2.11.1
  2018-03-04 11:15 [Qemu-devel] Problem compiling qemu-2.1.1 Frans de Boer
@ 2018-03-04 18:21 ` Thomas Huth
  2018-03-04 19:00 ` [Qemu-devel] Problem compiling qemu-2.1.1 Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2018-03-04 18:21 UTC (permalink / raw)
  To: Frans de Boer, qemu-devel, qemu-stable

On 04.03.2018 12:15, Frans de Boer wrote:
> LS,
> 
> I try to compile qemu and get the next error message:
> 
> mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:40:12:
> error: static declaration of ‘memfd_create’ follows non-static declaration
>  static int memfd_create(const char *name, unsigned int flags)
>             ^~~~~~~~~~~~
> In file included from /usr/include/bits/mman-linux.h:115:0,
>                  from /usr/include/bits/mman.h:45,
>                  from /usr/include/sys/mman.h:41,
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/sysemu/os-posix.h:29,
> 
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/qemu/osdep.h:104,
> 
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:28:
> 
> /usr/include/bits/mman-shared.h:46:5: note: previous declaration of
> ‘memfd_create’ was here
>  int memfd_create (const char *__name, unsigned int __flags) __THROW;
> 
> I use the newest Tumbleweed of openSuse with the gcc 7.3.0 compiler suite.
> 
> Suggestions?

Not sure, but it sounds like you need this patch on top:

https://git.qemu.org/?p=qemu.git;a=commitdiff;h=75e5b70e6b5dcc4f2219992

 HTH,
  Thomas

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

* Re: [Qemu-devel] Problem compiling qemu-2.1.1
  2018-03-04 11:15 [Qemu-devel] Problem compiling qemu-2.1.1 Frans de Boer
  2018-03-04 18:21 ` [Qemu-devel] Problem compiling qemu-2.11.1 Thomas Huth
@ 2018-03-04 19:00 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2018-03-04 19:00 UTC (permalink / raw)
  To: Frans de Boer; +Cc: QEMU Developers

On 4 March 2018 at 11:15, Frans de Boer <frans@fransdb.nl> wrote:
> LS,
>
> I try to compile qemu and get the next error message:
>
> mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:40:12:
> error: static declaration of ‘memfd_create’ follows non-static declaration
>  static int memfd_create(const char *name, unsigned int flags)
>             ^~~~~~~~~~~~
> In file included from /usr/include/bits/mman-linux.h:115:0,
>                  from /usr/include/bits/mman.h:45,
>                  from /usr/include/sys/mman.h:41,
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/sysemu/os-posix.h:29,
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/qemu/osdep.h:104,
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:28:
> /usr/include/bits/mman-shared.h:46:5: note: previous declaration of
> ‘memfd_create’ was here
>  int memfd_create (const char *__name, unsigned int __flags) __THROW;
>
> I use the newest Tumbleweed of openSuse with the gcc 7.3.0 compiler suite.

Hi -- this looks like a QEMU incompatibility with newer glibc that
we fixed in QEMU commit 75e5b70e6b5dcc4. That didn't quite make
the 2.11.0 release, but will be in 2.12.0.

thanks
-- PMM

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

end of thread, other threads:[~2018-03-04 19:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-04 11:15 [Qemu-devel] Problem compiling qemu-2.1.1 Frans de Boer
2018-03-04 18:21 ` [Qemu-devel] Problem compiling qemu-2.11.1 Thomas Huth
2018-03-04 19:00 ` [Qemu-devel] Problem compiling qemu-2.1.1 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).