From mboxrd@z Thu Jan 1 00:00:00 1970 From: "SourceForge.net" Subject: [ kvm-Bugs-1807620 ] KVM's --disable-gcc-check doesn't work Date: Mon, 26 May 2008 20:40:13 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To: noreply@sourceforge.net Return-path: Received: from lists.sourceforge.net ([66.35.250.206]:56343 "EHLO mail.sourceforge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756626AbYE0DkR (ORCPT ); Mon, 26 May 2008 23:40:17 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Bugs item #1807620, was opened at 2007-10-04 21:55 Message generated for change (Settings changed) made by amitshah 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: Closed Resolution: Fixed Priority: 2 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 ---------------------------------------------------------------------- Comment By: Anthony Liguori (aliguori) Date: 2008-05-26 22:50 Message: Logged In: YES user_id=120449 Originator: NO I've confirmed that this has been fixed in the latest kvm-userspace git tree. ---------------------------------------------------------------------- Comment By: Carlo Marcelo Arenas Belon (carenas) Date: 2008-01-13 11:36 Message: Logged In: YES user_id=36771 Originator: NO $ tar -xvf /usr/portage/distfiles/kvm-47.tar.gz $ cd kvm-47 $ ./configure --help | grep gcc --qemu-cc=CC specify compiler for qemu (must be gcc-3.x) --disable-gcc-check don't insist on gcc-3.x $ gcc -v 2>&1 | grep "gcc version" gcc version 4.1.2 (Gentoo 4.1.2 p1.0.1) ./configure --disable-gcc-check | grep gcc C compiler gcc Host C compiler gcc can this be closed? ---------------------------------------------------------------------- Comment By: Technologov (technologov) Date: 2007-11-08 13:24 Message: Logged In: YES user_id=1839746 Originator: YES This bug is not fixed yet. Reopened. ./configure --help needs to give proper help. ---------------------------------------------------------------------- Comment By: Technologov (technologov) Date: 2007-10-21 20:22 Message: Logged In: YES user_id=1839746 Originator: YES Itamar found a openSUSE 10.3-specific solution. Itamar wrote: 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 ---------------------------------------------------------------------- Comment By: Carlo Marcelo Arenas Belon (carenas) Date: 2007-10-19 19:44 Message: Logged In: YES user_id=36771 Originator: NO Starting with kvm-47 all compiler detection is now being handled by QEMU and works as explained in its documentation ---------------------------------------------------------------------- Comment By: Technologov (technologov) Date: 2007-10-08 00:10 Message: Logged In: YES user_id=1839746 Originator: YES Tested and it works. Well, the bug is still there. But it's not in KVM now. It's in documentation. Bug reopened. Documentation must match functionality. -Alexey ---------------------------------------------------------------------- Comment By: Carlo Marcelo Arenas Belon (carenas) Date: 2007-10-07 22:56 Message: Logged In: YES user_id=36771 Originator: NO running (or compiling) qemu with gcc4 is not supported and will result in broken CPU emulation and crashes if kvm is not used (either because of -no-kvm or the module not being loaded). if you are ok with that then add "--qemu-cc=gcc" as a workaround for this bug ---------------------------------------------------------------------- Comment By: Avi Kivity (avik) Date: 2007-10-07 16:49 Message: Logged In: YES user_id=539971 Originator: NO Even if you specify --disable-gcc-check, you still need to choose a C compiler. Qemu won't choose gcc 4 by default. Specify --qemu-cc in addition to --disable-gcc-check. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1807620&group_id=180599