[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: 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>
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |