* [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work
@ 2007-10-04 16:25 SourceForge.net
[not found] ` <E1IdTWB-0003Uo-Dv-fsxqSYOXIJgGKePtCzJsP6QD96bmaF075NbjCUgZEJk@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: SourceForge.net @ 2007-10-04 16:25 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Bugs item #1807620, was opened at 2007-10-04 18:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Technologov (technologov)
Assigned to: Nobody/Anonymous (nobody)
Summary: KVM's --disable-gcc-check doesn't work
Initial Comment:
KVM's configure switch: "--disable-gcc-check" doesn't work.
This bug makes KVM very hard to compile on openSUSE 10.2/10.3, which, unlike Fedora doesn't have compat-gcc-34 package.
Here is the error:
alexey@suse103-home:~/Linstall/kvm-45> ./configure --disable-gcc-check
./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc
According to HELP, it should work:
alexey@suse103-home:~/Linstall/kvm-45> ./configure --help
Usage: ./configure [options]
Options include:
--prefix=PREFIX where to install things (/usr/local)
--with-patched-kernel don't use external module
--kerneldir=DIR kernel build directory (/lib/modules/2.6.22.5-31-bigsmp/build)
--qemu-cc="" compiler for qemu (needs gcc3.x) ()
--disable-gcc-check don't insist on gcc-3.x
- this will break running without kvm
Host: openSUSE 10.3, 32-bit, Intel Core 2 CPU, KVM-45.
-Alexey Technologov
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 14+ messages in thread[parent not found: <E1IdTWB-0003Uo-Dv-fsxqSYOXIJgGKePtCzJsP6QD96bmaF075NbjCUgZEJk@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <E1IdTWB-0003Uo-Dv-fsxqSYOXIJgGKePtCzJsP6QD96bmaF075NbjCUgZEJk@public.gmane.org> @ 2007-10-04 16:33 ` Farkas Levente [not found] ` <470515DA.9080606-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> 2007-10-08 15:43 ` [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn'twork Itamar Heim 1 sibling, 1 reply; 14+ messages in thread From: Farkas Levente @ 2007-10-04 16:33 UTC (permalink / raw) To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f hi, what's the real reason that kvm can't be compiled gcc-4.x? wouldn't it be better to be able to compile with the current compilers too? SourceForge.net wrote: > Bugs item #1807620, was opened at 2007-10-04 18:25 > Message generated for change (Tracker Item Submitted) made by Item Submitter > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 > > Please note that this message will contain a full copy of the comment thread, > including the initial issue submission, for this request, > not just the latest update. > Category: None > Group: None > Status: Open > Resolution: None > Priority: 5 > Private: No > Submitted By: Technologov (technologov) > Assigned to: Nobody/Anonymous (nobody) > Summary: KVM's --disable-gcc-check doesn't work > > Initial Comment: > KVM's configure switch: "--disable-gcc-check" doesn't work. > > This bug makes KVM very hard to compile on openSUSE 10.2/10.3, which, unlike Fedora doesn't have compat-gcc-34 package. > > Here is the error: > > alexey@suse103-home:~/Linstall/kvm-45> ./configure --disable-gcc-check > ./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc > > According to HELP, it should work: > alexey@suse103-home:~/Linstall/kvm-45> ./configure --help > Usage: ./configure [options] > > Options include: > > --prefix=PREFIX where to install things (/usr/local) > --with-patched-kernel don't use external module > --kerneldir=DIR kernel build directory (/lib/modules/2.6.22.5-31-bigsmp/build) > --qemu-cc="" compiler for qemu (needs gcc3.x) () > --disable-gcc-check don't insist on gcc-3.x > - this will break running without kvm > > > Host: openSUSE 10.3, 32-bit, Intel Core 2 CPU, KVM-45. > > -Alexey Technologov > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 > > ------------------------------------------------------------------------- > 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/ > _______________________________________________ > kvm-devel mailing list > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/kvm-devel > -- Levente "Si vis pacem para bellum!" ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <470515DA.9080606-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <470515DA.9080606-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> @ 2007-10-04 16:54 ` Gregory Haskins [not found] ` <1191516896.5019.83.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Gregory Haskins @ 2007-10-04 16:54 UTC (permalink / raw) To: Farkas Levente; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f [-- Attachment #1.1: Type: text/plain, Size: 3250 bytes --] On Thu, 2007-10-04 at 18:33 +0200, Farkas Levente wrote: > hi, > what's the real reason that kvm can't be compiled gcc-4.x? > wouldn't it be better to be able to compile with the current compilers too? Its actually an issue with QEMUs cpu emulation code. It takes advantage of compiler traits that are no longer true in the 4.x series. The code will actually compile under 4.x however. It just will not run properly. However, KVM doesn't use QEMUs cpu emulation, so if you do not care about running with KVM disabled (e.g. -no-kvm), you don't technically need to worry about it. Hope that helps. -Greg > > SourceForge.net wrote: > > Bugs item #1807620, was opened at 2007-10-04 18:25 > > Message generated for change (Tracker Item Submitted) made by Item Submitter > > You can respond by visiting: > > https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 > > > > Please note that this message will contain a full copy of the comment thread, > > including the initial issue submission, for this request, > > not just the latest update. > > Category: None > > Group: None > > Status: Open > > Resolution: None > > Priority: 5 > > Private: No > > Submitted By: Technologov (technologov) > > Assigned to: Nobody/Anonymous (nobody) > > Summary: KVM's --disable-gcc-check doesn't work > > > > Initial Comment: > > KVM's configure switch: "--disable-gcc-check" doesn't work. > > > > This bug makes KVM very hard to compile on openSUSE 10.2/10.3, which, unlike Fedora doesn't have compat-gcc-34 package. > > > > Here is the error: > > > > alexey@suse103-home:~/Linstall/kvm-45> ./configure --disable-gcc-check > > ./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc > > > > According to HELP, it should work: > > alexey@suse103-home:~/Linstall/kvm-45> ./configure --help > > Usage: ./configure [options] > > > > Options include: > > > > --prefix=PREFIX where to install things (/usr/local) > > --with-patched-kernel don't use external module > > --kerneldir=DIR kernel build directory (/lib/modules/2.6.22.5-31-bigsmp/build) > > --qemu-cc="" compiler for qemu (needs gcc3.x) () > > --disable-gcc-check don't insist on gcc-3.x > > - this will break running without kvm > > > > > > Host: openSUSE 10.3, 32-bit, Intel Core 2 CPU, KVM-45. > > > > -Alexey Technologov > > > > ---------------------------------------------------------------------- > > > > You can respond by visiting: > > https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 > > > > ------------------------------------------------------------------------- > > 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/ > > _______________________________________________ > > kvm-devel mailing list > > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > https://lists.sourceforge.net/lists/listinfo/kvm-devel > > > > [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 314 bytes --] ------------------------------------------------------------------------- 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/ [-- Attachment #3: Type: text/plain, Size: 186 bytes --] _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1191516896.5019.83.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <1191516896.5019.83.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> @ 2007-10-04 17:27 ` Farkas Levente [not found] ` <47052269.80501-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> 2007-10-05 17:00 ` Anthony Liguori 1 sibling, 1 reply; 14+ messages in thread From: Farkas Levente @ 2007-10-04 17:27 UTC (permalink / raw) To: kvm-devel Gregory Haskins wrote: > On Thu, 2007-10-04 at 18:33 +0200, Farkas Levente wrote: >> hi, >> what's the real reason that kvm can't be compiled gcc-4.x? >> wouldn't it be better to be able to compile with the current compilers too? > > Its actually an issue with QEMUs cpu emulation code. It takes advantage > of compiler traits that are no longer true in the 4.x series. The code > will actually compile under 4.x however. It just will not run properly. > However, KVM doesn't use QEMUs cpu emulation, so if you do not care > about running with KVM disabled (e.g. -no-kvm), you don't technically > need to worry about it. ok but now as qemu code was imported into kvm, then it's probably would be better to witch gcc-4.x? -- Levente "Si vis pacem para bellum!" ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <47052269.80501-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <47052269.80501-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> @ 2007-10-04 17:42 ` Gregory Haskins [not found] ` <1191519749.5019.99.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Gregory Haskins @ 2007-10-04 17:42 UTC (permalink / raw) To: Farkas Levente; +Cc: kvm-devel [-- Attachment #1.1: Type: text/plain, Size: 360 bytes --] On Thu, 2007-10-04 at 19:27 +0200, Farkas Levente wrote: > ok but now as qemu code was imported into kvm, then it's probably would > be better to witch gcc-4.x? Sure. Are you volunteering? ;) I'm sure both upstream QEMU developers, KVM developers, and the community using either would be most appreciative. I know I would be. Regards, -Greg [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 314 bytes --] ------------------------------------------------------------------------- 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/ [-- Attachment #3: Type: text/plain, Size: 186 bytes --] _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1191519749.5019.99.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <1191519749.5019.99.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> @ 2007-10-04 19:49 ` Farkas Levente [not found] ` <470543AC.50901-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> 2007-10-05 16:54 ` Bernhard Kaindl 1 sibling, 1 reply; 14+ messages in thread From: Farkas Levente @ 2007-10-04 19:49 UTC (permalink / raw) Cc: kvm-devel, Discussion about the virtualization on CentOS Gregory Haskins wrote: > On Thu, 2007-10-04 at 19:27 +0200, Farkas Levente wrote: > >> ok but now as qemu code was imported into kvm, then it's probably would >> be better to witch gcc-4.x? > > Sure. Are you volunteering? ;) I'm sure both upstream QEMU developers, > KVM developers, and the community using either would be most > appreciative. I know I would be. here i mean that packaging kvm for fedora/redhat/centos using gcc-4.x in stead of gcc-3.x. if currently there is no reason to use gcc-3.x than i change all of my spec file. ps. anyway it's planed to be temporary or permanent to use a qemu fork for kvm and not try to propagate changes back to the upstream qemu? -- Levente "Si vis pacem para bellum!" ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <470543AC.50901-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>]
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <470543AC.50901-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> @ 2007-10-04 20:39 ` Gregory Haskins [not found] ` <1191530370.5019.108.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> 2007-10-05 11:41 ` [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work Avi Kivity 1 sibling, 1 reply; 14+ messages in thread From: Gregory Haskins @ 2007-10-04 20:39 UTC (permalink / raw) To: Farkas Levente; +Cc: kvm-devel, Discussion about the virtualization on CentOS [-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --] On Thu, 2007-10-04 at 21:49 +0200, Farkas Levente wrote: > Gregory Haskins wrote: > > On Thu, 2007-10-04 at 19:27 +0200, Farkas Levente wrote: > > > >> ok but now as qemu code was imported into kvm, then it's probably would > >> be better to witch gcc-4.x? > > > > Sure. Are you volunteering? ;) I'm sure both upstream QEMU developers, > > KVM developers, and the community using either would be most > > appreciative. I know I would be. > > here i mean that packaging kvm for fedora/redhat/centos using gcc-4.x in > stead of gcc-3.x. if currently there is no reason to use gcc-3.x than i > change all of my spec file. You *could*, sure. I have done this for local builds here. But if you go that route I would recommend making a patch to KVM so it doesn't fall back into QEMU mode automatically (today if it can't open the kvm module it will assume "-no-kvm" like behavior). Otherwise you will have a bunch of support calls about why its not working properly should someone cause the system to fall back. > > ps. anyway it's planed to be temporary or permanent to use a qemu fork > for kvm and not try to propagate changes back to the upstream qemu? Ill defer to Avi here, though as I understand it: Things that benefit the upstream source get pushed...things that are KVM only don't. Regards, -Greg [-- Attachment #1.2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] [-- Attachment #2: Type: text/plain, Size: 314 bytes --] ------------------------------------------------------------------------- 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/ [-- Attachment #3: Type: text/plain, Size: 186 bytes --] _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <1191530370.5019.108.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>]
* [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work) [not found] ` <1191530370.5019.108.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> @ 2007-10-07 21:20 ` Carlo Marcelo Arenas Belon 2007-10-07 22:18 ` Jim Paris 0 siblings, 1 reply; 14+ messages in thread From: Carlo Marcelo Arenas Belon @ 2007-10-07 21:20 UTC (permalink / raw) To: Gregory Haskins; +Cc: kvm-devel, Discussion about the virtualization on CentOS On Thu, Oct 04, 2007 at 04:39:30PM -0400, Gregory Haskins wrote: > On Thu, 2007-10-04 at 21:49 +0200, Farkas Levente wrote: > > > > here i mean that packaging kvm for fedora/redhat/centos using gcc-4.x in > > stead of gcc-3.x. if currently there is no reason to use gcc-3.x than i > > change all of my spec file. > > You *could*, sure. I have done this for local builds here. But if you > go that route I would recommend making a patch to KVM so it doesn't fall > back into QEMU mode automatically (today if it can't open the kvm module > it will assume "-no-kvm" like behavior). Otherwise you will have a > bunch of support calls about why its not working properly should someone > cause the system to fall back. And considering also there might be other yet unknown bugs because of gcc4, it is most likely better to stick to use gcc-3.x, unless there is really no other option. For cases where no compat-gcc package is provided (like in OpenSUSE) then the following is IMHO the next best approach to force users to get gcc-3.x compiler installed from source just to be able to compile kvm. Carlo PS. please let me know what you think about it and if interested so I can provide the 3 patches (or more if more changes are needed) in a [PATCH] series for easy git-am'ing --- diff --git a/configure b/configure index d9292fe..33a56d2 100755 --- a/configure +++ b/configure @@ -63,8 +63,12 @@ while [[ "$1" = -* ]]; do done if [[ -z "$qemu_cc" ]]; then - echo "$0: cannot locate gcc 3.x. please install it or specify with --qemu-cc" - exit 1 + if [[ -z "$disable_gcc_check" ]]; then + echo "$0: cannot locate gcc 3.x. please install it or specify with --qemu-cc" + exit 1 + else + qemu_cc=gcc + fi fi libkvm_kerneldir="$kerneldir" diff --git a/qemu/configure b/qemu/configure index fc1e59a..15549e3 100755 --- a/qemu/configure +++ b/qemu/configure @@ -1022,6 +1022,11 @@ if test "$target_cpu" = "i386" ; then if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "i386" ; then echo "#define USE_KQEMU 1" >> $config_h fi + if test $check_gcc = "no" ; then + if gcc -v 2>&1 | grep -q 'gcc *version *4\.[0-3]\.[0-9]'; then + echo "#define USE_GCC4 1" >> $config_h + fi + fi configure_kvm elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then echo "TARGET_ARCH=arm" >> $config_mak @@ -1059,6 +1064,11 @@ elif test "$target_cpu" = "x86_64" ; then if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then echo "#define USE_KQEMU 1" >> $config_h fi + if test $check_gcc = "no" ; then + if gcc -v 2>&1 | grep -q 'gcc *version *4\.[0-3]\.[0-9]'; then + echo "#define USE_GCC4 1" >> $config_h + fi + fi configure_kvm elif test "$target_cpu" = "mips" -o "$target_cpu" = "mipsel" ; then echo "TARGET_ARCH=mips" >> $config_mak diff --git a/qemu/vl.c b/qemu/vl.c index fe49d2c..2f78955 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -8421,8 +8421,13 @@ int main(int argc, char **argv) #endif #ifdef USE_KVM case QEMU_OPTION_no_kvm: +#ifdef USE_GCC4 + fprintf(stderr, "Can't run without kvm if compiled with gcc4\n"); + exit(1); +#else kvm_allowed = 0; break; +#endif case QEMU_OPTION_no_kvm_irqchip: kvm_irqchip = 0; break; @@ -8552,8 +8557,13 @@ int main(int argc, char **argv) #if USE_KVM if (kvm_allowed) { if (kvm_qemu_init() < 0) { +#if USE_GCC4 + fprintf(stderr, "Could not initialize KVM, can't run without kvm if compiled with gcc4\n"); + exit(1); +#else fprintf(stderr, "Could not initialize KVM, will disable KVM support\n"); kvm_allowed = 0; +#endif } } #endif ------------------------------------------------------------------------- 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/ ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work) 2007-10-07 21:20 ` [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work) Carlo Marcelo Arenas Belon @ 2007-10-07 22:18 ` Jim Paris [not found] ` <20071007221827.GA25232-lSbMZ+N7itA@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Jim Paris @ 2007-10-07 22:18 UTC (permalink / raw) To: Carlo Marcelo Arenas Belon Cc: kvm-devel, Discussion about the virtualization on CentOS Carlo Marcelo Arenas Belon wrote: > And considering also there might be other yet unknown bugs because of gcc4, it > is most likely better to stick to use gcc-3.x, unless there is really no other > option. > > For cases where no compat-gcc package is provided (like in OpenSUSE) then the > following is IMHO the next best approach to force users to get gcc-3.x > compiler installed from source just to be able to compile kvm. This will probably become more of a problem over time. GCC 3 is slated to be removed from the next Debian release: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440425 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440430 > PS. please let me know what you think about it and if interested so I can > provide the 3 patches (or more if more changes are needed) in a [PATCH] > series for easy git-am'ing > > + if test $check_gcc = "no" ; then > + if gcc -v 2>&1 | grep -q 'gcc *version *4\.[0-3]\.[0-9]'; then > + echo "#define USE_GCC4 1" >> $config_h > + fi > + fi Something like #if __GNUC__ >= 4 in the code would be simpler. -jim ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20071007221827.GA25232-lSbMZ+N7itA@public.gmane.org>]
* Re: [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work) [not found] ` <20071007221827.GA25232-lSbMZ+N7itA@public.gmane.org> @ 2007-10-08 6:15 ` Carlo Marcelo Arenas Belon 0 siblings, 0 replies; 14+ messages in thread From: Carlo Marcelo Arenas Belon @ 2007-10-08 6:15 UTC (permalink / raw) To: Jim Paris; +Cc: kvm-devel, Discussion about the virtualization on CentOS On Sun, Oct 07, 2007 at 06:18:27PM -0400, Jim Paris wrote: > > + if test $check_gcc = "no" ; then > > + if gcc -v 2>&1 | grep -q 'gcc *version *4\.[0-3]\.[0-9]'; then > > + echo "#define USE_GCC4 1" >> $config_h > > + fi > > + fi > > Something like > > #if __GNUC__ >= 4 > > in the code would be simpler. really good idea; and also as a side effect makes the patches independent as there is no need to have that qemu's configure glue anymore. Carlo ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <470543AC.50901-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org> 2007-10-04 20:39 ` Gregory Haskins @ 2007-10-05 11:41 ` Avi Kivity 1 sibling, 0 replies; 14+ messages in thread From: Avi Kivity @ 2007-10-05 11:41 UTC (permalink / raw) To: Farkas Levente; +Cc: kvm-devel, Discussion about the virtualization on CentOS Farkas Levente wrote: > ps. anyway it's planed to be temporary or permanent to use a qemu fork > for kvm and not try to propagate changes back to the upstream qemu? > The plan is to submit everything to upstream qemu. -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <1191519749.5019.99.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> 2007-10-04 19:49 ` Farkas Levente @ 2007-10-05 16:54 ` Bernhard Kaindl 1 sibling, 0 replies; 14+ messages in thread From: Bernhard Kaindl @ 2007-10-05 16:54 UTC (permalink / raw) To: Farkas Levente, Gregory Haskins; +Cc: kvm-devel On Thu, 4 Oct 2007, Gregory Haskins wrote: > On Thu, 2007-10-04 at 19:27 +0200, Farkas Levente wrote: > >> ok but now as qemu code was imported into kvm, then it's probably would >> be better to witch gcc-4.x? > > Sure. Are you volunteering? ;) I'm sure both upstream QEMU developers, > KVM developers, and the community using either would be most > appreciative. I know I would be. Here is a discussion thread about a patch by Michael Matz to make qemu's CPU emulation code actually work with gcc4: http://www.nabble.com/-patch--make-qemu-work-with-GCC-4-t4345765.html It's against the current qemu CVS, so as Avi updated kvm to qemu CVS now, it might be worth a try. It means that the CPU emulation incurs a 3% performance regression, but the CPU emulation is only used when the CPU is not emulated by KVM in the kernel, so it should be a not a big concern for KVM, and if gcc4 would compile more efficent code for the device emulatoin, it could even lead to a theoritical speedup when KVM does CPU emulation, but that is a pure theory. In this mail (which you do not see in the above thread view), a git repository with cumulated changes for qemu with gcc4 is mentioned, it seems to have further fixes on top of the initial patch: http://www.mail-archive.com/qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org/msg12017.html Bernhard Kaindl ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work [not found] ` <1191516896.5019.83.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org> 2007-10-04 17:27 ` Farkas Levente @ 2007-10-05 17:00 ` Anthony Liguori 1 sibling, 0 replies; 14+ messages in thread From: Anthony Liguori @ 2007-10-05 17:00 UTC (permalink / raw) To: Gregory Haskins; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Gregory Haskins wrote: > On Thu, 2007-10-04 at 18:33 +0200, Farkas Levente wrote: > >> hi, >> what's the real reason that kvm can't be compiled gcc-4.x? >> wouldn't it be better to be able to compile with the current compilers too? >> > > Its actually an issue with QEMUs cpu emulation code. It takes advantage > of compiler traits that are no longer true in the 4.x series. The code > will actually compile under 4.x however. It just will not run properly. > However, KVM doesn't use QEMUs cpu emulation, so if you do not care > about running with KVM disabled (e.g. -no-kvm), you don't technically > need to worry about it. > FWIW, there are patches that allow QEMU to compile and work with GCC 4 but, so far, certain folks in the QEMU community have objected strongly to them (look for the threads about post-processing GCC assembly output). Those patches do work with KVM (and -no-kvm still works). However, it would be a bad idea to apply them to the KVM QEMU tree b/c it would make merging in the future much more difficult. Regards, Anthony Liguori > Hope that helps. > -Greg > > >> SourceForge.net wrote: >> >>> Bugs item #1807620, was opened at 2007-10-04 18:25 >>> Message generated for change (Tracker Item Submitted) made by Item Submitter >>> You can respond by visiting: >>> https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 >>> >>> Please note that this message will contain a full copy of the comment thread, >>> including the initial issue submission, for this request, >>> not just the latest update. >>> Category: None >>> Group: None >>> Status: Open >>> Resolution: None >>> Priority: 5 >>> Private: No >>> Submitted By: Technologov (technologov) >>> Assigned to: Nobody/Anonymous (nobody) >>> Summary: KVM's --disable-gcc-check doesn't work >>> >>> Initial Comment: >>> KVM's configure switch: "--disable-gcc-check" doesn't work. >>> >>> This bug makes KVM very hard to compile on openSUSE 10.2/10.3, which, unlike Fedora doesn't have compat-gcc-34 package. >>> >>> Here is the error: >>> >>> alexey@suse103-home:~/Linstall/kvm-45> ./configure --disable-gcc-check >>> ./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc >>> >>> According to HELP, it should work: >>> alexey@suse103-home:~/Linstall/kvm-45> ./configure --help >>> Usage: ./configure [options] >>> >>> Options include: >>> >>> --prefix=PREFIX where to install things (/usr/local) >>> --with-patched-kernel don't use external module >>> --kerneldir=DIR kernel build directory (/lib/modules/2.6.22.5-31-bigsmp/build) >>> --qemu-cc="" compiler for qemu (needs gcc3.x) () >>> --disable-gcc-check don't insist on gcc-3.x >>> - this will break running without kvm >>> >>> >>> Host: openSUSE 10.3, 32-bit, Intel Core 2 CPU, KVM-45. >>> >>> -Alexey Technologov >>> >>> ---------------------------------------------------------------------- >>> >>> You can respond by visiting: >>> https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599 >>> >>> ------------------------------------------------------------------------- >>> 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/ >>> _______________________________________________ >>> kvm-devel mailing list >>> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >>> https://lists.sourceforge.net/lists/listinfo/kvm-devel >>> >>> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> 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/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> kvm-devel mailing list >> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >> https://lists.sourceforge.net/lists/listinfo/kvm-devel >> ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn'twork [not found] ` <E1IdTWB-0003Uo-Dv-fsxqSYOXIJgGKePtCzJsP6QD96bmaF075NbjCUgZEJk@public.gmane.org> 2007-10-04 16:33 ` Farkas Levente @ 2007-10-08 15:43 ` Itamar Heim 1 sibling, 0 replies; 14+ messages in thread From: Itamar Heim @ 2007-10-08 15:43 UTC (permalink / raw) To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f This is a solution to the original problem with opensuse: You can get gcc33 from the opensuse build service (this is the new one-click-install) http://software.opensuse.org/ymp/devel%3Atools%3Agcc/openSUSE_10.3/i586/ gcc33-3.3.3-41.6.i586.rpm.ymp (or download specific rpm's from http://software.opensuse.org/search by searching for gcc33). Itamar -----Original Message----- From: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of SourceForge.net Sent: Thursday, October 04, 2007 6:26 PM To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Subject: [kvm-devel] [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn'twork Bugs item #1807620, was opened at 2007-10-04 18:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&gro up_id=180599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Technologov (technologov) Assigned to: Nobody/Anonymous (nobody) Summary: KVM's --disable-gcc-check doesn't work Initial Comment: KVM's configure switch: "--disable-gcc-check" doesn't work. This bug makes KVM very hard to compile on openSUSE 10.2/10.3, which, unlike Fedora doesn't have compat-gcc-34 package. Here is the error: alexey@suse103-home:~/Linstall/kvm-45> ./configure --disable-gcc-check ./configure: cannot locate gcc 3.x. please install it or specify with --qemu-cc According to HELP, it should work: alexey@suse103-home:~/Linstall/kvm-45> ./configure --help Usage: ./configure [options] Options include: --prefix=PREFIX where to install things (/usr/local) --with-patched-kernel don't use external module --kerneldir=DIR kernel build directory (/lib/modules/2.6.22.5-31-bigsmp/build) --qemu-cc="" compiler for qemu (needs gcc3.x) () --disable-gcc-check don't insist on gcc-3.x - this will break running without kvm Host: openSUSE 10.3, 32-bit, Intel Core 2 CPU, KVM-45. -Alexey Technologov ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&gro up_id=180599 ------------------------------------------------------------------------ - 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/ _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel ------------------------------------------------------------------------- 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/ ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-10-08 15:43 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 16:25 [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work SourceForge.net
[not found] ` <E1IdTWB-0003Uo-Dv-fsxqSYOXIJgGKePtCzJsP6QD96bmaF075NbjCUgZEJk@public.gmane.org>
2007-10-04 16:33 ` Farkas Levente
[not found] ` <470515DA.9080606-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>
2007-10-04 16:54 ` Gregory Haskins
[not found] ` <1191516896.5019.83.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-10-04 17:27 ` Farkas Levente
[not found] ` <47052269.80501-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>
2007-10-04 17:42 ` Gregory Haskins
[not found] ` <1191519749.5019.99.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-10-04 19:49 ` Farkas Levente
[not found] ` <470543AC.50901-lWVWdrzSO4GHXe+LvDLADg@public.gmane.org>
2007-10-04 20:39 ` Gregory Haskins
[not found] ` <1191530370.5019.108.camel-5CR4LY5GPkvLDviKLk5550HKjMygAv58XqFh9Ls21Oc@public.gmane.org>
2007-10-07 21:20 ` [RFC] let kvm be compiled with gcc4 and prevent users to shoot themselves in the foot while doing so (was Re: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work) Carlo Marcelo Arenas Belon
2007-10-07 22:18 ` Jim Paris
[not found] ` <20071007221827.GA25232-lSbMZ+N7itA@public.gmane.org>
2007-10-08 6:15 ` Carlo Marcelo Arenas Belon
2007-10-05 11:41 ` [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work Avi Kivity
2007-10-05 16:54 ` Bernhard Kaindl
2007-10-05 17:00 ` Anthony Liguori
2007-10-08 15:43 ` [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn'twork Itamar Heim
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox