Hello,

I seem to be having some issues compiling the Xen kernel after d4ae1c, those 
are intermittent AFAICT, and sometimes I manage to finish compiling Xen just 
fine, but others I get the following error:

gmake[5]: Leaving directory '/root/xen-dis/xen/arch/x86/boot'
clang -B/usr/local/bin -D__ASSEMBLY__ -include 
/root/xen-dis/xen/include/xen/config.h -no-integrated-as -O1 
-fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -Wall 
-Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-local-typedefs 
-I/root/xen-dis/xen/include -I/root/xen-dis/xen/include/asm-x86/mach-generic 
-I/root/xen-dis/xen/include/asm-x86/mach-default 
'-D__OBJECT_LABEL__=ooten_disenooten_disenen' -msoft-float 
-fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX 
-DHAVE_GAS_EPT -DHAVE_GAS_FSGSBASE -U__OBJECT_LABEL__ -DHAVE_GAS_QUOTED_SYM 
'-D__OBJECT_LABEL__=/root/xen-dis/xen//root/xen-dis/xen/xen' -mno-red-zone 
-mno-sse -fpic -fno-asynchronous-unwind-tables 
-DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -fno-builtin -fno-common -Werror 
-Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include 
/root/xen-dis/xen/include/xen/config.h 
'-D__OBJECT_FILE__="/root/xen-dis/xen/xen"' -Wno-parentheses -Wno-format 
-Wno-unused-value -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER 
-MMD -MF /root/xen-dis/xen/.xen.d -Wno-parentheses -Wno-format 
-Wno-unused-value -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing 
-Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-local-typedefs -D__ASSEMBLY__ -include 
/root/xen-dis/xen/include/xen/config.h -no-integrated-as -O1 
-fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -Wall 
-Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-local-typedefs 
-I/root/xen-dis/xen/include -I/root/xen-dis/xen/include/asm-x86/mach-generic 
-I/root/xen-dis/xen/include/asm-x86/mach-default 
'-D__OBJECT_LABEL__=arch86$rooten_disenrch86ootuilt_in.o' -msoft-float 
-fno-stack-protector -fno-exceptions -Wnested-externs -DHAVE_GAS_VMX 
-DHAVE_GAS_EPT -DHAVE_GAS_FSGSBASE -U__OBJECT_LABEL__ -DHAVE_GAS_QUOTED_SYM 
'-D__OBJECT_LABEL__=arch/x86//root/xen-dis/xen/arch/x86/boot/built_in.o' 
-mno-red-zone -mno-sse -fpic -fno-asynchronous-unwind-tables 
-DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc -fno-builtin -fno-common -Werror 
-Wredundant-decls -Wno-pointer-arith -pipe -g -D__XEN__ -include 
/root/xen-dis/xen/include/xen/config.h 
'-D__OBJECT_FILE__="/root/xen-dis/xen/arch/x86/boot/built_in.o"' 
-Wno-parentheses -Wno-format -Wno-unused-value -DVERBOSE 
-fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF 
/root/xen-dis/xen/arch/x86/boot/.built_in.o.d -D__ASSEMBLY__ -include 
/root/xen-dis/xen/include/xen/config.h -no-integrated-as -O1 
-fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -Wall 
-Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-local-typedefs 
-I/root/xen-dis/xen/include -I/root/xen-dis/xen/include/asm-x86/mach-generic 
-I/root/xen-dis/xen/include/asm-x86/mach-default 
'-D__OBJECT_LABEL__=arch$x86$boot$head.o' -msoft-float -fno-stack-protector 
-fno-exceptions -Wnested-externs -DHAVE_GAS_VMX -DHAVE_GAS_EPT 
-DHAVE_GAS_FSGSBASE -U__OBJECT_LABEL__ -DHAVE_GAS_QUOTED_SYM 
'-D__OBJECT_LABEL__=arch/x86/boot/head.o' -mno-red-zone -mno-sse -fpic 
-fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -nostdinc 
-fno-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -pipe 
-g -D__XEN__ -include /root/xen-dis/xen/include/xen/config.h 
'-D__OBJECT_FILE__="head.o"' -Wno-parentheses -Wno-format -Wno-unused-value 
-DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF 
./.head.o.d -c head.S -o head.o
<built-in>:328:9: error: '__OBJECT_LABEL__' macro redefined 
[-Werror,-Wmacro-redefined]
#define __OBJECT_LABEL__ arch86$rooten_disenrch86ootuilt_in.o
        ^
<built-in>:321:9: note: previous definition is here
#define __OBJECT_LABEL__ /root/xen-dis/xen//root/xen-dis/xen/xen
        ^
<built-in>:337:9: error: '__OBJECT_FILE__' macro redefined 
[-Werror,-Wmacro-redefined]
#define __OBJECT_FILE__ "/root/xen-dis/xen/arch/x86/boot/built_in.o"
        ^
<built-in>:324:9: note: previous definition is here
#define __OBJECT_FILE__ "/root/xen-dis/xen/xen"
        ^
<built-in>:341:9: error: '__OBJECT_LABEL__' macro redefined 
[-Werror,-Wmacro-redefined]
#define __OBJECT_LABEL__ arch$x86$boot$head.o
        ^
<built-in>:334:9: note: previous definition is here
#define __OBJECT_LABEL__ arch/x86//root/xen-dis/xen/arch/x86/boot/built_in.o
        ^
<built-in>:350:9: error: '__OBJECT_FILE__' macro redefined 
[-Werror,-Wmacro-redefined]
#define __OBJECT_FILE__ "head.o"
        ^
<built-in>:337:9: note: previous definition is here
#define __OBJECT_FILE__ "/root/xen-dis/xen/arch/x86/boot/built_in.o"
        ^
4 errors generated.
/root/xen-dis/xen/Rules.mk:176: recipe for target 'head.o' failed
gmake[4]: *** [head.o] Error 1
gmake[4]: Leaving directory '/root/xen-dis/xen/arch/x86/boot'
/root/xen-dis/xen/Rules.mk:161: recipe for target 
'/root/xen-dis/xen/arch/x86/boot/built_in.o' failed
gmake[3]: *** [/root/xen-dis/xen/arch/x86/boot/built_in.o] Error 2
gmake[3]: Leaving directory '/root/xen-dis/xen/arch/x86'
Makefile:124: recipe for target '/root/xen-dis/xen/xen' failed
gmake[2]: *** [/root/xen-dis/xen/xen] Error 2
gmake[2]: Leaving directory '/root/xen-dis/xen'
Makefile:45: recipe for target 'install' failed
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory '/root/xen-dis/xen'
Makefile:97: recipe for target 'install-xen' failed
gmake: *** [install-xen] Error 2

The compiler command line in this case is clearly wrong, but I'm not able to 
spot why this happens (and why it's intermittent). In this case the 
compilation was performed with clang, but I've seen the same when using gcc, 
and I believe this is somehow related to GNU make itself rather than the 
compiler used. The version of GNU make used is 4.1.

I've also tried with -j1 and -j4, all leading to the same results.

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to