Re: Cannot compile qemu
On Sat, Jan 02, 2021 at 07:57:02PM +0100, Kamil Jońca wrote: > > I tried to compile qemu by myself (this is not the first time). > I issued > %sudo apt-get build-dep qemu > %apt-get source qemu > and then > in qemu directory > %debuild -us -uc -b > claims about header files: [...] > config-temp/qemu-conf.c:1:10: fatal error: sys/endian.h: No such file or > directory > 1 | #include > | ^~ > compilation terminated. > > any hints? No idea whether this leads somewhere, but FWIW, sys/endian.h is in libbsd-dev: | tomas@trotzki:~$ apt-file search sys/endian.h | freebsd-glue: /usr/include/freebsd/sys/endian.h | libbsd-dev: /usr/include/bsd/sys/endian.h Perhaps there's a buglet in quemu's build deps, perhaps there are other forces at play. Cheers - t signature.asc Description: Digital signature
Re: Cannot compile qemu
Kamil Jońca wrote: > cc -fPIE -DPIE -std=gnu99 -Wall -m64 -mcx16 -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes > -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes > -fno-strict-aliasing -fno-common -fwrapv -g -O2 > -fdebug-prefix-map=/home/kjonca/tmp/debian/qemu-5.2+dfsg=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -Wold-style-declaration -Wold-style-definition > -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self > -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels > -Wexpansion-to-defined -Wno-missing-include-dirs -Wno-shift-negative-value > -Wno-psabi -fstack-protector-strong -o config-temp/qemu-conf.exe > config-temp/qemu-conf.c -pie -Wl,-z,relro -Wl,-z,now -m64 -g -O2 > -fdebug-prefix-map=/home/kjonca/tmp/debian/q emu-5.2+dfsg=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--as-needed -fstack-protector-strong > config-temp/qemu-conf.c:1:10: fatal error: sys/endian.h: No such file or > directory 1 | #include | ^~ > compilation terminated. > > any hints? Hi, I compiled qemu debian packages customized (basically removing all the stuff and architectures I do not need) few weeks ago. I used qemu (svn/git) source and debian packaging for buster. To compile the default setup you need a lot of cross-compile tools. My goal was to get the arm emulator without GUI. It took me about a week to get the proper configuration (altering the debian defaults). Either you install all the tools, or you need to adjust the configuration. I just wonder why you compile config-temp/qemu-conf.exe < EXE? I admit this is very odd regards
Cannot compile qemu
I tried to compile qemu by myself (this is not the first time). I issued %sudo apt-get build-dep qemu %apt-get source qemu and then in qemu directory %debuild -us -uc -b claims about header files: [...] cc -fPIE -DPIE -std=gnu99 -Wall -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -g -O2 -fdebug-prefix-map=/home/kjonca/tmp/debian/qemu-5.2+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -c -o config-temp/qemu-conf.o config-temp/qemu-conf.c config-temp/qemu-conf.c:1:10: fatal error: sys/kcov.h: No such file or directory 1 | #include | [...] cc -fPIE -DPIE -std=gnu99 -Wall -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -g -O2 -fdebug-prefix-map=/home/kjonca/tmp/debian/qemu-5.2+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -pie -Wl,-z,relro -Wl,-z,now -m64 -g -O2 -fdebug-prefix-map=/home/kjonca/tmp/debian/qemu-5.2+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,--as-needed -fstack-protector-strong config-temp/qemu-conf.c:1:10: fatal error: sys/endian.h: No such file or directory 1 | #include | ^~ compilation terminated. any hints? KJ -- http://wolnelektury.pl/wesprzyj/teraz/