serious-looking warning building kvm-36
Quoted 5 lines · Chris Clayton
Hi,
I've just built kvm-36 and noticed what looks as if it may be a non-trivial warning:
Quoted 7 lines
make[1]: Leaving directory `/home/chris/rpm/BUILD/kvm-36/kernel' make -C user
make[1]: Entering directory `/home/chris/rpm/BUILD/kvm-36/user'
cc -I/home/chris/rpm/BUILD/kvm-36/kernel/include-MMD -MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -m32 -fno-stack-protector -c -o
kvmctl.okvmctl.ckvmctl.c: In function 'kvm_create':
kvmctl.c:256: warning: integer constant is too large for 'long' type
this probably beacuse your host is 32bits, and therefore it cant hold 0x100000000,
avi, you suggesting using #ifdefs, or moving to uint64?
Quoted 6 lines
Please cc me to any reply - I'm not subscribed.
Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Hi,
I've just built kvm-36 and noticed what looks as if it may be a non-trivial warning:
make[1]: Leaving directory `/home/chris/rpm/BUILD/kvm-36/kernel' make -C user
make[1]: Entering directory `/home/chris/rpm/BUILD/kvm-36/user'
cc -I /home/chris/rpm/BUILD/kvm-36/kernel/include -MMD -MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -m32 -fno-stack-protector -c -o
kvmctl.o kvmctl.ckvmctl.c: In function 'kvm_create':
kvmctl.c:256: warning: integer constant is too large for 'long' type
Please cc me to any reply - I'm not subscribed.
Chris
Signature · 7 lines
Beer is proof that God loves us and wants us to be happy - Benjamin Franklin ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 13 lines · Chris Clayton
Hi,
I've just built kvm-36 and noticed what looks as if it may be a non-trivial warning:
make[1]: Leaving directory `/home/chris/rpm/BUILD/kvm-36/kernel' make -C user
make[1]: Entering directory `/home/chris/rpm/BUILD/kvm-36/user'
cc -I/home/chris/rpm/BUILD/kvm-36/kernel/include-MMD -MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -m32 -fno-stack-protector -c -o
kvmctl.okvmctl.ckvmctl.c: In function 'kvm_create':
kvmctl.c:256: warning: integer constant is too large for 'long' type
Quoted 1 line
Please cc me to any reply - I'm not subscribed.
It's harmless. That branch is only taken when using more than 4GB of memory, which in turn is only possible on a 64bit host. In this case the 'unsigned long' would be a 64bit integer (and the shift would be acceptable).
There are a couple more of warning related to this issue, a possible solution to silence the warning is to use always 64bit integers instead of the longs.
Luca
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/