Compile time: Bug
All
Following Error while compiling xen-3.3.0. Same problem is observed in latest xen-unstable.hg.
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/opt/kernels/xen-3.3.0/xen/include -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-generic -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -g -D__XEN__ -c console.c -o console.o
cc1: warnings being treated as errorsconsole.c: In function 'panic':
console.c:922: error: format not a string literal and no format arguments make[6]: *** [console.o] Error 1
make[6]: Leaving directory `/opt/kernels/xen-3.3.0/xen/drivers/char' make[5]: *** [char/built_in.o] Error 2
make[5]: Leaving directory /opt/kernels/xen-3.3.0/xen/drivers' make[4]: *** [/opt/kernels/xen-3.3.0/xen/drivers/built_in.o] Error 2 make[4]: Leaving directory /opt/kernels/xen-3.3.0/xen/arch/x86' make[3]: *** [/opt/kernels/xen-3.3.0/xen/xen] Error 2 make[3]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[2]: *** [install] Error 2
make[2]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[1]: *** [install-xen] Error 2
make[1]: Leaving directory `/opt/kernels/xen-3.3.0'
make: *** [world] Error 2
Patch which solves for me:
xen/drivers/char/console.c Tue Nov 25 22:25:19 2008 +0530 renamed from xen/drivers/char/console.c Wed Nov 19 19:13:22 2008 +0000 +1 -1
@@ -927,7 +927,7 @@ console_start_sync(); printk("\n****************************************\n"); printk("Panic on CPU %d:\n", smp_processor_id()); - printk(buf); + printk("%s\n",buf); printk("****************************************\n\n"); if ( opt_noreboot ) printk("Manual reset required ('noreboot' specified)\n");
What gcc version is this?
-- Keir
Quoted 44 lines · Tej
All
Following Error while compiling xen-3.3.0. Same problem is observed in latest xen-unstable.hg.
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing
(quoted diff) +0
-7-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/opt/kernels/xen-3.3.0/xen/include -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-generic -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -g -D__XEN__ -c console.c -o console.occ1: warnings being treated as errors
console.c: In function 'panic':
console.c:922: error: format not a string literal and no format arguments make[6]: *** [console.o] Error 1
make[6]: Leaving directory `/opt/kernels/xen-3.3.0/xen/drivers/char' make[5]: *** [char/built_in.o] Error 2
make[5]: Leaving directory/opt/kernels/xen-3.3.0/xen/drivers' make[4]: *** [/opt/kernels/xen-3.3.0/xen/drivers/built_in.o] Error 2 make[4]: Leaving directory/opt/kernels/xen-3.3.0/xen/arch/x86' make[3]: *** [/opt/kernels/xen-3.3.0/xen/xen] Error 2 make[3]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[2]: *** [install] Error 2
make[2]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[1]: *** [install-xen] Error 2
make[1]: Leaving directory `/opt/kernels/xen-3.3.0'
make: *** [world] Error 2Patch which solves for me:
diff -r98d48f7680dbxen/drivers/char/console.cxen/drivers/char/console.c Tue Nov 25 22:25:19 2008 +0530 renamed from xen/drivers/char/console.c Wed Nov 19 19:13:22 2008 +0000 +1
-1@@ -927,7 +927,7 @@ console_start_sync(); printk("\n****************************************\n"); printk("Panic on CPU %d:\n", smp_processor_id()); - printk(buf); + printk("%s\n",buf); printk("****************************************\n\n"); if ( opt_noreboot ) printk("Manual reset required ('noreboot' specified)\n");
Quoted 1 line · Keir Fraser
What gcc version is this?
gcc version 4.2.4
Quoted 52 lines
-- Keir
Quoted 44 lines · Tej
All
Following Error while compiling xen-3.3.0. Same problem is observed in latest xen-unstable.hg.
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing
(quoted diff) +0
-7-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/opt/kernels/xen-3.3.0/xen/include -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-generic -I/opt/kernels/xen-3.3.0/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -g -D__XEN__ -c console.c -o console.occ1: warnings being treated as errors
console.c: In function 'panic':
console.c:922: error: format not a string literal and no format arguments make[6]: *** [console.o] Error 1
make[6]: Leaving directory `/opt/kernels/xen-3.3.0/xen/drivers/char' make[5]: *** [char/built_in.o] Error 2
make[5]: Leaving directory/opt/kernels/xen-3.3.0/xen/drivers' make[4]: *** [/opt/kernels/xen-3.3.0/xen/drivers/built_in.o] Error 2 make[4]: Leaving directory/opt/kernels/xen-3.3.0/xen/arch/x86' make[3]: *** [/opt/kernels/xen-3.3.0/xen/xen] Error 2 make[3]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[2]: *** [install] Error 2
make[2]: Leaving directory `/opt/kernels/xen-3.3.0/xen' make[1]: *** [install-xen] Error 2
make[1]: Leaving directory `/opt/kernels/xen-3.3.0'
make: *** [world] Error 2Patch which solves for me:
diff -r98d48f7680dbxen/drivers/char/console.cxen/drivers/char/console.c Tue Nov 25 22:25:19 2008 +0530 renamed from xen/drivers/char/console.c Wed Nov 19 19:13:22 2008 +0000 +1
-1@@ -927,7 +927,7 @@ console_start_sync(); printk("\n****************************************\n"); printk("Panic on CPU %d:\n", smp_processor_id()); - printk(buf); + printk("%s\n",buf); printk("****************************************\n\n"); if ( opt_noreboot ) printk("Manual reset required ('noreboot' specified)\n");