Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after running install.sh (It got to trace/generated-events.o :)) #212

Open
mandjevant opened this issue Mar 29, 2019 · 0 comments
Open

Comments

@mandjevant
Copy link

mandjevant commented Mar 29, 2019

util/memfd.c:43: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/x86_64-linux-gnu/bits/mman-linux.h:115:0,
from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu/osdep.h:142,
from util/memfd.c:28:
/usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
int memfd_create (const char *__name, unsigned int __flags) __THROW;
^~~~~~~~~~~~
/home/petrus/qira/tracers/qemu/qemu/rules.mak:57: recipe for target 'util/memfd.o' failed
make: *** [util/memfd.o] Error 1
make: *** Waiting for unfinished jobs....
block/blkverify.c: In function ‘blkverify_refresh_filename’:
block/blkverify.c:336:29: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Werror=format-truncation=]
"blkverify:%s:%s",
^~
In file included from /usr/include/stdio.h:862:0,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu/osdep.h:36,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu-common.h:15,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu/timer.h:5,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu/timed-average.h:30,
from /home/petrus/qira/tracers/qemu/qemu/include/block/accounting.h:32,
from /home/petrus/qira/tracers/qemu/qemu/include/block/block_int.h:27,
from block/blkverify.c:12:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 12 and 8202 bytes into a destination of size 4096
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
/home/petrus/qira/tracers/qemu/qemu/rules.mak:57: recipe for target 'block/blkverify.o' failed
make: *** [block/blkverify.o] Error 1
block/blkdebug.c: In function ‘blkdebug_refresh_filename’:
block/blkdebug.c:759:31: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4086 [-Werror=format-truncation=]
"blkdebug:%s:%s",
^~
qga/commands-posix.c: In function ‘dev_major_minor’:
In file included from /usr/include/stdio.h:862:0,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu/osdep.h:36,
from /home/petrus/qira/tracers/qemu/qemu/include/qemu-common.h:15,
from block/blkdebug.c:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 11 or more bytes (assuming 4106) into a destination of size 4096
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
qga/commands-posix.c:668:13: error: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>. [-Werror]
*devmajor = major(st.st_rdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
qga/commands-posix.c:669:13: error: In the GNU C Library, "minor" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "minor", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"minor", you should undefine it after including <sys/types.h>. [-Werror]
*devminor = minor(st.st_rdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
/home/petrus/qira/tracers/qemu/qemu/rules.mak:57: recipe for target 'block/blkdebug.o' failed
make: *** [block/blkdebug.o] Error 1
cc1: all warnings being treated as errors
/home/petrus/qira/tracers/qemu/qemu/rules.mak:57: recipe for target 'qga/commands-posix.o' failed
make: *** [qga/commands-posix.o] Error 1

P.S. Im following u on insta bb <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant