Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230275 > unrolled thread

Cannot compile qemu

Started byKamil Jońca <kjonca@poczta.onet.pl>
First post2021-01-03 05:10 +0100
Last post2021-01-03 10:20 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Cannot compile qemu Kamil Jońca <kjonca@poczta.onet.pl> - 2021-01-03 05:10 +0100
    Re: Cannot compile qemu deloptes <deloptes@gmail.com> - 2021-01-03 10:00 +0100
    Re: Cannot compile qemu <tomas@tuxteam.de> - 2021-01-03 10:20 +0100

#230275 — Cannot compile qemu

FromKamil Jońca <kjonca@poczta.onet.pl>
Date2021-01-03 05:10 +0100
SubjectCannot compile qemu
Message-ID<Bt2Sl-4J4-1@gated-at.bofh.it>
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 <sys/kcov.h>
      |
[...]

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 <sys/endian.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.

any hints?
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/

[toc] | [next] | [standalone]


#230277

Fromdeloptes <deloptes@gmail.com>
Date2021-01-03 10:00 +0100
Message-ID<Bt7p1-7fZ-13@gated-at.bofh.it>
In reply to#230275
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 <sys/endian.h> |          ^~~~~~~~~~~~~~
> 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

[toc] | [prev] | [next] | [standalone]


#230278

From<tomas@tuxteam.de>
Date2021-01-03 10:20 +0100
Message-ID<Bt7Il-7BD-9@gated-at.bofh.it>
In reply to#230275

[Multipart message — attachments visible in raw view] — view raw

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 <sys/endian.h>
>       |          ^~~~~~~~~~~~~~
> 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web