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

Re: [Xen-devel] Build problems with xen 4.7



On Tue, Dec 01, 2015 at 10:59:41AM -0500, Konrad Rzeszutek Wilk wrote:
> On Tue, Dec 01, 2015 at 08:56:03AM -0700, Jan Beulich wrote:
> > >>> On 01.12.15 at 15:36, <konrad.wilk@xxxxxxxxxx> wrote:
> > > On December 1, 2015 8:19:32 AM EST, Jan Beulich <JBeulich@xxxxxxxx> wrote:
> > >>>>> On 01.12.15 at 00:37, <m.a.young@xxxxxxxxxxxx> wrote:
> > >>> When I try to build the current xen 4.7 master I get the following
> > >>error
> > >>> 
> > >>> <command-line>:0:0: error: "__OBJECT_FILE__" redefined [-Werror]
> > >>> <command-line>:0:0: note: this is the location of the previous
> > >>definition
> > >>> cc1: all warnings being treated as errors
> > >>> 
> > >>> The problem seems to be that -D__OBJECT_FILE__= is set each time 
> > >>> xen/Rules.mk is called, which happens more than once because of
> > >>nested 
> > >>> makes resulting in multiple diffent values for -D__OBJECT_FILE__=
> > >>
> > >>Considering you're the first one to have such a problem, I think the
> > >>precise compiler version you use matters here. Also the redundant
> > >>definitions shouldn't be different, and identical re-definition should
> > >>not yield a diagnostic. So I think there's a little more data you need
> > >>to supply in order to determine whether we need to adjust something.
> > >>
> > > 
> > > Ccing Marcos who also saw this. Marcos do you remember the git commit 
> > > that 
> > > caused this?
> > 
> > There's no question about when this got introduced. What we need
> > to understand is why this is an issue only for very few people.
> 
> It is only an issue when doing rpmbuilds.
> 

Still an issue - with 4.7.0-rc1.

If I do:

$export CFLAGS=" "'
$make

I end up with:
gcc -E -O1 -fno-omit-frame-pointer -m64 -DBUILD_ID -g -fno-strict-aliasing 
-std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -O1 
-fno-omit-frame-pointer -m64 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -nostdinc -fno-builtin 
-fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ 
'-D__OBJECT_FILE__="/home/konrad/ssd/konrad/xen/xen/xen"' 
-Wa,--strip-local-absolute -fno-optimize-sibling-calls -DVERBOSE 
-fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -fno-optimize-sibling-calls 
-I/home/konrad/ssd/konrad/xen/xen/include 
-I/home/konrad/ssd/konrad/xen/xen/include/asm-x86/mach-generic 
-I/home/konrad/ssd/konrad/xen/xen/include/asm-x86/mach-default 
'-D__OBJECT_LABEL__=omeonradsdonradenen$homeonradsdonradenenen' -msoft-float 
-fno-stack-protector -fno-exceptions -Wnested-externs -mno-red-zone -mno-sse 
-fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -O1 
-fno-omit-frame-pointer -m64 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -O1 
-fno-omit-frame-pointer -m64 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -nostdinc -fno-builtin 
-fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ 
'-D__OBJECT_FILE__="compat/callback.i"' -Wa,--strip-local-absolute 
-fno-optimize-sibling-calls -DVERBOSE -fno-omit-frame-pointer 
-DCONFIG_FRAME_POINTER -fno-optimize-sibling-calls 
-I/home/konrad/ssd/konrad/xen/xen/include 
-I/home/konrad/ssd/konrad/xen/xen/include/asm-x86/mach-generic 
-I/home/konrad/ssd/konrad/xen/xen/include/asm-x86/mach-default 
'-D__OBJECT_LABEL__=include$compat$callback.i' -msoft-float 
-fno-stack-protector -fno-exceptions -Wnested-externs -mno-red-zone -mno-sse 
-fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -O1 
-fno-omit-frame-pointer -m64 -DBUILD_ID -g -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs -include 
public/xen-compat.h -m32 -o compat/callback.i compat/callback.c
<command-line>:0:0: error: "__OBJECT_FILE__" redefined [-Werror]
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "__OBJECT_LABEL__" redefined [-Werror]
<command-line>:0:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
Makefile:62: recipe for target 'compat/callback.i' failed


_______________________________________________
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®.