[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 <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


Reply to: