WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Compile time: Bug

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Compile time: Bug
From: Tej <bewith.tej@xxxxxxxxx>
Date: Tue, 25 Nov 2008 22:40:20 +0530
Cc: keir.fraser@xxxxxxxxxxxxx
Delivery-date: Tue, 25 Nov 2008 09:11:07 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=P+IQMU/D73z2YN1rRwMXvSbLf90uy1Iu/OeX8qehKWQ=; b=t2YjZs7sdxFQrnv3XvKg1Oh6GgHToCvy7B4zOdNfqM2sIafgsZQLH7AG4JwL0xwjW2 AB4P/MinOTfjxcKgyW1JH++LffS66FJo8/zQSVujDtAUkoUc9xuzba1xv5xn5Zmr3qvn uTCSlNZTjjW0VO5pvW5dVKd9s81+i204eAYt4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=tSgOsWdWWEzzHROqRmwE6rH1H100t7F3w+ovRNov2EXES8BhnYXN2BDmxYikM8LFwa QF+kC/j5jGDsSw5lYXIR0Zv5H97hM8jhEquYGnSOumZd+GZCmm6qUDBemosDLdWzXGky baArIfHRvsC2TVRpOAz1jHq9B46wk4reFong0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 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 2


Patch which solves for me:
diff -r 98d48f7680db xen/drivers/char/console.c
--- a/xen/drivers/char/console.c        Wed Nov 19 19:13:22 2008 +0000
+++ b/xen/drivers/char/console.c        Tue Nov 25 22:25:19 2008 +0530
@@ -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");

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>