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

Re: Xen Compilation Error on Ubuntu 20.04


  • To: Ayush Dosaj <ayushdosaj2313@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 29 Apr 2020 18:25:00 +0100
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@xxxxxxxxxx; spf=Pass smtp.mailfrom=Andrew.Cooper3@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Delivery-date: Wed, 29 Apr 2020 17:25:13 +0000
  • Ironport-sdr: Ym6dmozcLmazND390vLhLMc2uWUqGlmXUySLhGrNPtYWfqTIbhRvqGHSbvf0jZtsrvAZTCgMSZ iU57ociEth7v9uwIJLgqy7rVvLDDJOvNGUn2FRWwUr4WqvdsC4cFDc4hY7AFwF7ZB9X+d27Zqk Mrph36Kv97DnQz++2lZJ4HrF9n5aih1PUgZ45MiHJALI+JZQFKLhTu3T3EjBnpwiVJ7BT8KJK0 9zYwNJhZcljL1GshCZ3a4aKn6/Kw9XsDnMiCaE4K9A9Bkk45UGoamP8bk5nPdFUMkbI1VC0+Zf QgI=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29/04/2020 18:17, Ayush Dosaj wrote:
> Hi Xen development team,
> 
> I am Ayush. I compiled Xen Hypervisor from source on Ubuntu 20.04
> machine running on an intel-i9 CPU.
> I am getting compilation error due to the following two flags.
> Error: error: ‘-mindirect-branch’ and ‘-fcf-protection’ are not compatible.
> 
> Complete Error logs can be found at https://paste.ubuntu.com/p/xvvyPnhW5c/
> 
> And when I compiled Xen commenting the two flags in Rules.mk file, it
> compiles and installs properly but on boot-up i see a blank black screen
> and i am stuck there.

That is a GCC bug (these options are actually fine in combination).  It
got fixed earlier today in master, and backported for GCC 9.4

You can work around it by appending -fcf-protection=none to CFLAGS

I wouldn't try editing the logic around -mindirect-branch, as that is
related to retpoline safety for Spectre v2, and probably relies on the
build matching the code.

~Andrew



 


Rackspace

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