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

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


  • To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.