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

Re: Compiling Xen from source



update (for Hans and Ian):

I encounter the same issue when compiling the 4.14 branch:


git checkout -b stable-4.14 origin/stable-4.14
./configure && make

make[8]: Entering directory '/root/xen/tools/firmware/etherboot/ipxe/src'
  [BUILD] bin/flexboot_nodnic.o
drivers/infiniband/flexboot_nodnic.c: In function 'flexboot_nodnic_create_qp':
drivers/infiniband/flexboot_nodnic.c:368:53: error: implicit conversion from 'enum ib_queue_pair_type' to 'nodnic_queue_pair_type' [-Werror=enum-conversion]

this is with gcc 10 indeed. 
Anyway I'm trying to compile under xen4.11 (binary debian package) that is working perfectly.
But the compiling process of xen tools is bugged because of the drivers. 
for example i have tried to comment the enum-conversion warning in the Makefile, but i encounter other bugs with other drivers.

David

Le jeu. 17 sept. 2020 à 20:05, David I <dav.sec.lists@xxxxxxxxx> a écrit :
Ok, thanks.
So I have done a fresh checkout of the master branch, but unfortunately, there's a bug in infiniband drivers.
the error is : "drivers/infiniband/flexboot_nodnic.c:368:53: error: implicit conversion from 'enum ib_queue_pair_type' to 'nodnic_queue_pair_type' [-Werror=enum-conversion]".
this occurs with gcc 10 and developers seem to be aware of this:


but it seems the master branch has not been patched yet.

Anyway now I will concentrate on 4.14 if I need to compile from source :-)

David


Le mer. 16 sept. 2020 à 22:59, Hans van Kranenburg <hans@xxxxxxxxxxx> 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.