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

Re: [Xen-devel] Xen build error based on gcc version

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Xen build error based on gcc version
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Thu, 11 Dec 2008 17:03:28 -0500
Cc: xen-devel mailing list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 11 Dec 2008 14:04:22 -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:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ePol4T2GFLZeQnSQiLPFfHk1CX3YgVzjM7Gh07Od06E=; b=Vhvq6h3HFD0qg2L2IxsKrWgT9LutJj0lgTa97EFHce66bOc19J/hOI5aA90gWlGv5S id+jroeXLLhwqE7A9iivBMlnS06e7hj3PHn0MaoyqgxTFfzZkojPvy/g9BoOPhuKwm6N 5ynwArtSKxtFQ+haJu0A1MtlUpqT/5IqH5MHI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=tjG611Tg+vwP2HIo4GmxVXVdqfJLu455wlE5Do5PuUjdvnCErMWBwCBxx1UwQSua4L cT0X42rZJLuTNOyZzw7HYeH0T6ALMDL7vv6ZUVQ9cGfy+Pb9fIl8Uy+JGjtTIMnb4LQ7 lmiNB4WvEIHWLLssHcW834utW4X44+H5Up1Lc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C5544550.29730%keir.fraser@xxxxxxxxxxxxx>
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>
References: <1e16a9ed0811261315o68ef7fd5s4198cc537f78778a@xxxxxxxxxxxxxx> <C5544550.29730%keir.fraser@xxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Nov 27, 2008 at 7:38 AM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
> On 26/11/08 21:15, "Todd Deshane" <deshantm@xxxxxxxxx> wrote:
>
>> If I switch the compiler to 3.4 or 4.2 it compiles fine.
>>
>> It is a gcc problem or a problem with the Xen code?
>
> Looks like it's a problem with Ubuntu asserting _FORTIFY_SOURCE=2 in some
> cases. At least this build failure is easy to fix, so I will check in a
> patch.
>

I just pulled the latest xen-unstable today.

The 4.3 compiler still give errors during build.
Falling back to 4.2 is fine.

Here is the tail of the error log on the 4.3 compiler.
[this is the default gcc compiler on Ubuntu 8.10]

(I tried a make tools)

Make[5]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/libxenstat'
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -Isrc -I../../../tools/libxc
-I../../../tools/xenstore -I../../../tools/include -Wall -Werror -c -o
src/xenstat.o src/xenstat.c
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -Isrc -I../../../tools/libxc
-I../../../tools/xenstore -I../../../tools/include -Wall -Werror -c -o
src/xenstat_linux.o src/xenstat_linux.c
ar rc src/libxenstat.a src/xenstat.o src/xenstat_linux.o
../../../tools/xenstore/libxenstore.so
../../../tools/libxc/libxenctrl.so
ranlib src/libxenstat.a
make[5]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/libxenstat'
make[4]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[4]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make -C xentop install
make[5]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/xentop'
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement  -D__XEN_TOOLS__  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE  -DGCC_PRINTF -Wall -Werror
-I../../../tools/xenstat/libxenstat/src -DHOST_Linux
-L../../../tools/xenstat/libxenstat/src  xentop.c  -lxenstat -lncurses
 -o xentop
cc1: warnings being treated as errors
xentop.c: In function 'fail':
xentop.c:257: error: format not a string literal and no format arguments
make[5]: *** [xentop] Error 1
make[5]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/xentop'
make[4]: *** [subdir-install-xentop] Error 2
make[4]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[2]: *** [subdir-install-xenstat] Error 2
make[2]: Leaving directory `/home/deshantm/src/xen-src/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/deshantm/src/xen-src/xen-unstable.hg/tools'
make: *** [install-tools] Error 2


-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

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