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

Re: [Xen-devel] Compliling Xen 4.5.0 Fails with error: âbufioreq_pfnâ may be used uninitialised in this function [-Werror=uninitialized]


  • To: Ian Murray <murrayie@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Mon, 16 Mar 2015 09:45:18 +0000
  • Accept-language: en-GB, en-US
  • Delivery-date: Mon, 16 Mar 2015 09:45:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: AQHQX3Pt9g++3QIlR0WVHEX5Y9mS9Z0e2/FQ
  • Thread-topic: [Xen-devel] Compliling Xen 4.5.0 Fails with error: âbufioreq_pfnâ may be used uninitialised in this function [-Werror=uninitialized]

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxx [mailto:xen-devel-
> bounces@xxxxxxxxxxxxx] On Behalf Of Ian Murray
> Sent: 15 March 2015 22:59
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-devel] Compliling Xen 4.5.0 Fails with error: âbufioreq_pfnâ may
> be used uninitialised in this function [-Werror=uninitialized]
> 
> Hi,
> 
> This was originally posted to the user list but it was suggested to me to 
> post it
> here also. I am getting a failed compilation when I try to compile Xen 4.5.0
> from the tarball and also from Git. I can compile RC4, although a bisect
> reveals that they pertinent difference is debug=y in Config.mk, which allows
> it to compile. That compiles without a problem and that is what I am running
> with. I have tried to build on two different servers with the same result,
> however both are running Ubuntu 12.04.5 and are similarly configured.
> 
> Steps I (would) use to build are simply...
> 
> ./configure
> make dist
> make install
> 
> 
> which results in...
> 
> ...
> gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
> -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-
> variable
> -DNDEBUG -I/root/xen450/xen-4.5.0/xen/include
> -I/root/xen450/xen-4.5.0/xen/include/asm-x86/mach-generic
> -I/root/xen450/xen-4.5.0/xen/include/asm-x86/mach-default -msoft-float
> -fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX
> -DHAVE_GAS_EPT -DHAVE_GAS_FSGSBASE -mno-red-zone -mno-sse -fpic
> -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -fno-
> builtin
> -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -
> D__XEN__
> -include /root/xen450/xen-4.5.0/xen/include/xen/config.h -nostdinc -
> DHAS_ACPI
> -DHAS_GDBSX -DHAS_PASSTHROUGH -DHAS_MEM_ACCESS -
> DHAS_MEM_PAGING
> -DHAS_MEM_SHARING -DHAS_PCI -DHAS_IOPORTS -DHAS_PDX -MMD -MF
> .hvm.o.d -c hvm.c
> -o hvm.o
> hvm.c: In function âhvm_create_ioreq_serverâ:
> hvm.c:487:18: error: âbufioreq_pfnâ may be used uninitialised in this function
> [-Werror=uninitialized]
> hvm.c:718:30: note: âbufioreq_pfnâ was declared here
> cc1: all warnings being treated as errors
> make[5]: *** [hvm.o] Error 1
> 
> Any suggestions are welcome,
> 

Those line numbers don't work for me. I did a checkout of RELEASE-4.5.0 and, 
whilst bufioreq_pfn is indeed declared on line 718, I see no reference to it on 
line 487. Also, if I compile debug=n I see no problem. Is it possible you don't 
have a clean checkout of 4.5.0? What version of gcc are you using?

  Paul

> Thanks for reading,
> 
> Ian.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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