error in xc_core.o

36 views
Skip to first unread message

Anurag Sharma

unread,
Feb 29, 2012, 8:17:03 AM2/29/12
to ether-devel
Hello,
During "make world" I got the follwing errors. Please suggest me how
to remove the error.
The message in terminal is :-

make libxenctrl.a libxenctrl.so libxenctrl.so.3.0 libxenctrl.so.3.0.0
libxenguest.a libxenguest.so libxenguest.so.3.0 libxenguest.so.3.0.0
make[4]: Entering directory `/root/ether/xen-3.1.0-src/tools/libxc'
gcc -O2 -fomit-frame-pointer -m64 -DNDEBUG -std=gnu99 -Wall -Wstrict-
prototypes -Wno-unused-value -Wdeclaration-after-statement -
D__XEN_TOOLS__ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -
D_GNU_SOURCE -Werror -Wmissing-prototypes -fno-strict-aliasing -I. -
I../xenstore -Wp,-MD,.xc_core.o.d -c -o xc_core.o xc_core.c
cc1: warnings being treated as errors
xc_core.c: In function ‘xc_core_shdr_get’:
xc_core.c:195: error: assuming signed overflow does not occur when
assuming that (X + c) < X is always false
make[4]: *** [xc_core.o] Error 1
make[4]: Leaving directory `/root/ether/xen-3.1.0-src/tools/libxc'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/root/ether/xen-3.1.0-src/tools/libxc'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/ether/xen-3.1.0-src/tools'
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory `/root/ether/xen-3.1.0-src'
make: *** [world] Error 2


Thanks a lot.

Paul Royal

unread,
Feb 29, 2012, 11:17:34 AM2/29/12
to ether...@googlegroups.com
On Wed, Feb 29, 2012 at 8:17 AM, Anurag Sharma
<anuragsh...@gmail.com> wrote:
> cc1: warnings being treated as errors
> xc_core.c: In function ‘xc_core_shdr_get’:
> xc_core.c:195: error: assuming signed overflow does not occur when
> assuming that (X + c) < X is always false
> make[4]: *** [xc_core.o] Error 1

http://bugzilla.xensource.com/bugzilla/attachment.cgi?id=699&action=edit

--
Paul Royal - pa...@gtisc.gatech.edu

Gabriel Cavalcante

unread,
Feb 29, 2012, 11:39:49 AM2/29/12
to ether...@googlegroups.com
Apply patch that Paul cited, or simply go to the file xc_core.c and remove whole if block  in line 195. 
--
=======================================
Gabriel Dieterich Cavalcante
gab...@las.ic.unicamp.br
Doutorando em Ciência da Computação
Instituto de Computação - UNICAMP  
Av. Albert Einstein, 1251
13083-852  Campinas SP Brazil
fone: 55 19 3521-5847
mob: 55 19 8222-8118
=======================================
Reply all
Reply to author
Forward
0 new messages