From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hollis Blanchard Subject: Re: Fwd: how to compile kvm 64 bit Date: Fri, 05 Dec 2008 10:09:39 -0600 Message-ID: <1228493379.11182.5.camel@localhost.localdomain> References: <4937F635.1050501@gmail.com> <4938E5DE.4040004@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: paolo pedaletti Return-path: Received: from e5.ny.us.ibm.com ([32.97.182.145]:51071 "EHLO e5.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbYLEQJq (ORCPT ); Fri, 5 Dec 2008 11:09:46 -0500 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e5.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id mB5G9G1l025765 for ; Fri, 5 Dec 2008 11:09:16 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mB5G9jix188906 for ; Fri, 5 Dec 2008 11:09:45 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mB5G9juC027899 for ; Fri, 5 Dec 2008 11:09:45 -0500 In-Reply-To: <4938E5DE.4040004@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, 2008-12-05 at 09:27 +0100, paolo pedaletti wrote: > Ciao Malinka, > > > your -mcpu=i686 specifically tells gcc to compile for 32-bit cpu you > > need to use something like > > -march=k8 or -mtune=k8 usually > > ok, I can understand it, but I thought that it was enough to run > ./compile > to obtain the correct Makefile with the right cpu-option > > >> root@kvm1:/usr/src/kvm-79# ./configure > >> Source path /usr/src/kvm-79/qemu > >> C compiler gcc > >> Host C compiler gcc > >> ARCH_CFLAGS -m64 > >> make make > >> install install > >> host CPU x86_64 > >> host big endian no > >> target list x86_64-softmmu > > so ./compile detect the right cpu/options This output is from qemu's configure script, so applies only within the qemu directory, and you seem to be having trouble with libkvm. > >> root@kvm1:/usr/src/kvm-79# make > >> make -C libkvm > >> make[1]: Entering directory `/usr/src/kvm-79/libkvm' > >> gcc -march=i686 -mcpu=i686 -malign-functions=4 -O2 -m64 > >> -D__x86_64__ -MMD -MF ./.libkvm-x86.d -g -fomit-frame-pointer -Wall > >> -fno-stack-protector -I /usr/src/kvm-79/kernel/include -c -o > >> libkvm-x86.o libkvm-x86.c > > but the Makefile is wrong I don't see arch=, cpu=, nor i686 anywhere in the libkvm build scripts. Could you have a shell alias or some other strangeness on your system that is adding those i686 options? -- Hollis Blanchard IBM Linux Technology Center