Hello,

for information, I was able to compile xen from source on Debian 10, with
the following configuration:


david@debian:~/xen/xen$ uname -a
Linux debian 5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) x86_64
GNU/Linux
david@debian:~/xen/xen$ gcc --version
gcc (Debian 8.4.0-4) 8.4.0
Copyright © 2018 Free Software Foundation, Inc.
Ce logiciel est un logiciel libre; voir les sources pour les conditions de
copie.  Il n'y a
AUCUNE GARANTIE, pas même pour la COMMERCIALISATION ni L'ADÉQUATION À UNE
TÂCHE PARTICULIÈRE.

david@debian:~/xen/xen$ git branch
  master
  stable-4.11
* stable-4.13
  stable-4.14
  staging
david@debian:~/xen/xen$

with a simple: "./configure && make dist".
But I had to modify some config files following the thread here:

http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-2-xen-Disable-Werror-when-building-td145149.html

the first build failed with a message: "configure test passed without
-werror but failed with -error".
I had to resolve this to edit these files:

xen/Config.mk:

+-HOSTCFLAGS  = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
++HOSTCFLAGS  = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer

xen/xen/arch/x86/Rules.mk:

+-CFLAGS += '-D__OBJECT_LABEL__=$(subst /,$$,$(subst -,_,$(subst
$(BASEDIR)/,,$(CURDIR))/$@))'
++CFLAGS += -U__OBJECT_LABEL__ '-D__OBJECT_LABEL__=$(subst /,$$,$(subst
-,_,$(subst $(BASEDIR)/,,$(CURDIR))/$@))'

xen/Rules.mk:
+-CFLAGS += '-D__OBJECT_FILE__="$@"'
++CFLAGS += -U__OBJECT_FILE__ '-D__OBJECT_FILE__="$@"'

I haven't tested the binary yet.

Kind regards,

David

Le mer. 16 sept. 2020 à 22:59, Hans van Kranenburg <h...@knorrie.org> a
écrit :

> On 9/16/20 6:12 PM, Olaf Hering wrote:
> > On Wed, Sep 16, David I wrote:
> >
> >> So, how did the debian package was compiled ? is this the same source
> code with
> >> different options ?
> >
> > Xen 4.11 is from 2018. Use also a compiler from that year.
> > Using this years compiler will lead to errors...
>
> In Debian, Buster with Xen 4.11 uses gcc 8.
>
> The Xen 4.11 that is in Debian unstable now does not compile any more
> with gcc 10. That's why we really need to get Xen 4.14 in there now to
> un-stuck that (even with additional picked patches again already).
>
> Hans
>
>

Reply via email to