All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ayush Dosaj <ayushdosaj2313@gmail.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: Xen Compilation Error on Ubuntu 20.04
Date: Thu, 30 Apr 2020 13:46:39 +0530	[thread overview]
Message-ID: <CAOCxVi0=iKzeJ0gfZ8XoMTXYrZaHbok=F30pw1rNdsUhkQcXjw@mail.gmail.com> (raw)
In-Reply-To: <CAOCxVi1PWM_9t03f=_qn0PXkKB1gN4504h+ijMpwqGU9VpR48g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]

Hi Andrew, Xen Development team.

I compiled and installed Xen by appending -fcf-protection=none to CFLAGS on
Ubuntu 20.04 but it still crashes on startup.

On Wed, Apr 29, 2020 at 10:58 PM Ayush Dosaj <ayushdosaj2313@gmail.com>
wrote:

> Awesome, thanks!
>
> On Wed, Apr 29, 2020 at 10:55 PM Andrew Cooper <andrew.cooper3@citrix.com>
> wrote:
>
>> 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
>>
>
>
> --
> Ayush Dosaj
> VIT Vellore
>
>

-- 
Ayush Dosaj

[-- Attachment #2: Type: text/html, Size: 2961 bytes --]

  reply	other threads:[~2020-04-30  8:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 17:17 Xen Compilation Error on Ubuntu 20.04 Ayush Dosaj
2020-04-29 17:25 ` Andrew Cooper
2020-04-29 17:28   ` Ayush Dosaj
2020-04-30  8:16     ` Ayush Dosaj [this message]
2020-04-30 20:53       ` Jason Andryuk
2020-05-01  0:14 Pry Mar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOCxVi0=iKzeJ0gfZ8XoMTXYrZaHbok=F30pw1rNdsUhkQcXjw@mail.gmail.com' \
    --to=ayushdosaj2313@gmail.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.