From mboxrd@z Thu Jan 1 00:00:00 1970 From: paolo pedaletti Subject: Re: Fwd: how to compile kvm 64 bit Date: Fri, 05 Dec 2008 09:27:10 +0100 Message-ID: <4938E5DE.4040004@gmail.com> References: <4937F635.1050501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: unlisted-recipients:; (no To-header on input) Return-path: Received: from mailgw1.si.unimib.it ([149.132.2.29]:41294 "EHLO mailgw1.si.unimib.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754492AbYLEI1P (ORCPT ); Fri, 5 Dec 2008 03:27:15 -0500 Received: from mailgw1.si.unimib.it (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id E66D91980EF for ; Fri, 5 Dec 2008 09:27:11 +0100 (CET) Received: from pablo.unimib.it (pablo1.frend.unimib.it [149.132.3.52]) by mailgw1.si.unimib.it (Postfix) with ESMTP id C38521980BF for ; Fri, 5 Dec 2008 09:27:11 +0100 (CET) Received: from [149.132.16.135] (account paolo.pedaletti@unimib.it HELO [10.109.1.194]) by pablo1.pablo.unimib.it (CommuniGate Pro SMTP 5.2.6) with ESMTPSA id 17029289 for kvm@vger.kernel.org; Fri, 05 Dec 2008 09:27:11 +0100 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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 >> 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 do I do something wrong? Is it necessary to do something different? thank you -- Paolo Pedaletti