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

Re: Xen compile error


  • To: "ba1020@xxxxxxxxxxxxx" <ba1020@xxxxxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 9 Oct 2020 16:50:58 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mhtqk0QkUvKdotajEJe1cMVlufURKJTgB3yojvfhdgQ=; b=DyikPQk7VYC5qZ/RL2TJIMT4bdsNIS1LSeEOUY6pMFyJNzTXkkC695V4uyGG6rWBZprnD/Nx0iKODIb9YtKUyu/XkpFFEVE5rc759N3oVLmWE/0McoYyoVFJtbo4itIhv/dVnVcmd20PhNMjbC6Ek4xkMN0m15tTO2TyzirROR91AHYoPDTu784r1A0EzF96geTTtewLlwpixQhB/bVy8nFPvlgJ6qaO4I391F7UFO6f/Vby0t4aVEx+QjNUUGu0yqPi7qjf3GB3vJfpPsnpja4ulgIFSOyoFa+c/q98x13d6XsLdMRCwz9t0MuW+w7Po9cNXoWOWopUhV53/iyd/g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AqCyT4DDwjKb77G8E16Zj9bK5vXyoXeNC9g58Knaasa24EzSuy4oEYx6awbkF2Sxx0p8TRVKtheGYxBSYJ9ev99C9SnLJOyM3NiV3pX+Fnvo4XsT5omdGd9x3Hi8cYk09SA/Iv43GRf6WSxRGvh4IfAG7/Q/BoNNJ0KZ70p24ENHimaBwzWpyRfLfb6q9tl7qWcIGJlvxbMI1R5XCCL1hjGRXzQuryw1lsrx3wnm5270+qEkWYVHHNcoHPFn5XiD5w5UVg3SvoV7Bnu/O4GamfSJL6d6yMTu7z0cEiUU23Alw0qw6pFFJWKOcawUMAK3QAeANAWsIP20E+aSXc7zLg==
  • Authentication-results-original: protonmail.ch; dkim=none (message not signed) header.d=none;protonmail.ch; dmarc=none action=none header.from=arm.com;
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>
  • Delivery-date: Fri, 09 Oct 2020 16:52:06 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: protonmail.ch; dkim=none (message not signed) header.d=none;protonmail.ch; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWnlJcV4YrMjrU4EGrWvvbzIn4ZKmPfBOA
  • Thread-topic: Xen compile error

Hi,

> On 8 Oct 2020, at 13:28, ba1020@xxxxxxxxxxxxx wrote:
> 
> i try to compile the lates Release 4.14.0 and get stuck here
> 

It would be nice to start a mail saying Hi and signing it :-)

You are probably using a new compiler version (10.0 or newer).

You have 2 solutions:
- you a master version of Xen
- fix libxlu_pci.c at line 51 like this:
unsigned dom = 0, bus = 0, dev = 0, func = 0, vslot =0;

Please confirm me if this works.

Cheers
Bertrand

> 
> 
> 
> libxlu_pci.c: In function ‘xlu_pci_parse_bdf’:
> libxlu_pci.c:32:18: error: ‘func’ may be used uninitialized in this function 
> [-Werror=maybe-uninitialized]
>   32 |     pcidev->func = func;
>      |     ~~~~~~~~~~~~~^~~~~~
> libxlu_pci.c:51:29: note: ‘func’ was declared here
>   51 |     unsigned dom, bus, dev, func, vslot = 0;
>      |                             ^~~~
> libxlu_pci.c:31:17: error: ‘dev’ may be used uninitialized in this function 
> [-Werror=maybe-uninitialized]
>   31 |     pcidev->dev = dev;
>      |     ~~~~~~~~~~~~^~~~~
> libxlu_pci.c:51:24: note: ‘dev’ was declared here
>   51 |     unsigned dom, bus, dev, func, vslot = 0;
>      |                        ^~~
> libxlu_pci.c:30:17: error: ‘bus’ may be used uninitialized in this function 
> [-Werror=maybe-uninitialized]
>   30 |     pcidev->bus = bus;
>      |     ~~~~~~~~~~~~^~~~~
> libxlu_pci.c:51:19: note: ‘bus’ was declared here
>   51 |     unsigned dom, bus, dev, func, vslot = 0;
>      |                   ^~~
> libxlu_pci.c:29:20: error: ‘dom’ may be used uninitialized in this function 
> [-Werror=maybe-uninitialized]
>   29 |     pcidev->domain = domain;
>      |     ~~~~~~~~~~~~~~~^~~~~~~~
> libxlu_pci.c:51:14: note: ‘dom’ was declared here
>   51 |     unsigned dom, bus, dev, func, vslot = 0;
>      |              ^~~
> cc1: all warnings being treated as errors
> make[5]: *** [/home/adminjs/xen/tools/libxl/../../tools/Rules.mk:216: 
> libxlu_pci.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
> make[5]: Leaving directory '/home/adminjs/xen/tools/libxl'
> make[4]: *** [/home/adminjs/xen/tools/../tools/Rules.mk:240: 
> subdir-install-libxl] Error 2
> make[4]: Leaving directory '/home/adminjs/xen/tools'
> make[3]: *** [/home/adminjs/xen/tools/../tools/Rules.mk:235: subdirs-install] 
> Error 2
> make[3]: Leaving directory '/home/adminjs/xen/tools'
> make[2]: *** [Makefile:72: install] Error 2
> make[2]: Leaving directory '/home/adminjs/xen/tools'
> make[1]: *** [Makefile:134: install-tools] Error 2
> make[1]: Leaving directory '/home/adminjs/xen'
> make: *** [Makefile:170: world] Error 2
> 
> 
> 
> Sent with ProtonMail Secure Email.
> 
> <publickey - ba1020@xxxxxxxxxxxxx - 0x949AA924.asc>


 


Rackspace

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