From mboxrd@z Thu Jan 1 00:00:00 1970 From: paolo pedaletti Subject: how to compile kvm 64 bit Date: Thu, 04 Dec 2008 16:24:37 +0100 Message-ID: <4937F635.1050501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mailgw1.si.unimib.it ([149.132.2.29]:44741 "EHLO mailgw1.si.unimib.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbYLDPYl (ORCPT ); Thu, 4 Dec 2008 10:24:41 -0500 Received: from mailgw1.si.unimib.it (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id BCBC61980EC for ; Thu, 4 Dec 2008 16:24:38 +0100 (CET) Received: from pablo.unimib.it (pablo1.frend.unimib.it [149.132.3.52]) by mailgw1.si.unimib.it (Postfix) with ESMTP id 961AD198010 for ; Thu, 4 Dec 2008 16:24:38 +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 17015447 for kvm@vger.kernel.org; Thu, 04 Dec 2008 16:24:38 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Ciao, sorry for this silly question, but I can't compile kvm-79 for AMD 64bit Linux 2.6.27-9-server, ubuntu 8.10 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ root@kvm1:/usr/src/kvm-79# ./configure Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M 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 gprof enabled no sparse enabled no profiler no static build no -Werror enabled no SDL support yes SDL static link yes curses support yes mingw32 support no Audio drivers oss Extra audio cards Mixer emulation no VNC TLS support no kqemu support no kvm support yes CPU emulation yes brlapi support no Documentation no NPTL support yes vde support yes AIO support yes KVM support yes 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 `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. libkvm-x86.c:1: error: CPU you selected does not support x86-64 instruction set libkvm-x86.c:1: warning: -malign-functions is obsolete, use -falign-functions make[1]: *** [libkvm-x86.o] Error 1 make[1]: Leaving directory `/usr/src/kvm-79/libkvm' make: *** [libkvm] Error 2 it use i686 witch command line parameter should I use? thank you. -- Paolo Pedaletti