* how to compile kvm 64 bit
@ 2008-12-04 15:24 paolo pedaletti
2008-12-04 16:31 ` Charles Duffy
[not found] ` <aa2a0fc0812040839o513aa4edqbb07f8b88d140322@mail.gmail.com>
0 siblings, 2 replies; 7+ messages in thread
From: paolo pedaletti @ 2008-12-04 15:24 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: how to compile kvm 64 bit
2008-12-04 15:24 how to compile kvm 64 bit paolo pedaletti
@ 2008-12-04 16:31 ` Charles Duffy
2008-12-05 8:15 ` paolo pedaletti
[not found] ` <aa2a0fc0812040839o513aa4edqbb07f8b88d140322@mail.gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Charles Duffy @ 2008-12-04 16:31 UTC (permalink / raw)
To: kvm
paolo pedaletti wrote:
> Ciao,
> sorry for this silly question, but I can't compile kvm-79 for AMD 64bit
Please pardon me for following up on one silly question with another --
but is your host running a 64-bit userland? (What is the output of
"uname -m"?)
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: how to compile kvm 64 bit
2008-12-04 16:31 ` Charles Duffy
@ 2008-12-05 8:15 ` paolo pedaletti
0 siblings, 0 replies; 7+ messages in thread
From: paolo pedaletti @ 2008-12-05 8:15 UTC (permalink / raw)
Cc: kvm
Ciao Charles,
>> sorry for this silly question, but I can't compile kvm-79 for AMD 64bit
>
> Please pardon me for following up on one silly question with another --
> but is your host running a 64-bit userland? (What is the output of
> "uname -m"?)
root@kvm1:/usr/src/kvm-79# uname -a
Linux kvm1 2.6.27-9-server #1 SMP Thu Nov 20 22:56:07 UTC 2008 x86_64
GNU/Linux
root@kvm1:/usr/src/kvm-79# uname -m
x86_64
it's a 64 bit kernel
--
Paolo Pedaletti
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <aa2a0fc0812040839o513aa4edqbb07f8b88d140322@mail.gmail.com>]
* Fwd: how to compile kvm 64 bit
[not found] ` <aa2a0fc0812040839o513aa4edqbb07f8b88d140322@mail.gmail.com>
@ 2008-12-04 16:41 ` Malinka Rellikwodahs
2008-12-05 8:27 ` paolo pedaletti
0 siblings, 1 reply; 7+ messages in thread
From: Malinka Rellikwodahs @ 2008-12-04 16:41 UTC (permalink / raw)
To: kvm
your -mcpu=i686 specifically tells gcc to compile for 32-bit cpu you
need to use something like
-march=k8 or -mtune=k8 usually
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
the difference between march and mtune is whether it breaks
compatability with other CPU's (mtune doesn't)
On Thu, Dec 4, 2008 at 10:24, paolo pedaletti <paolo.pedaletti@gmail.com> wrote:
>
> 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
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Fwd: how to compile kvm 64 bit
2008-12-04 16:41 ` Fwd: " Malinka Rellikwodahs
@ 2008-12-05 8:27 ` paolo pedaletti
2008-12-05 16:09 ` Hollis Blanchard
0 siblings, 1 reply; 7+ messages in thread
From: paolo pedaletti @ 2008-12-05 8:27 UTC (permalink / raw)
Cc: kvm
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fwd: how to compile kvm 64 bit
2008-12-05 8:27 ` paolo pedaletti
@ 2008-12-05 16:09 ` Hollis Blanchard
2008-12-07 0:17 ` Paolo Pedaletti
0 siblings, 1 reply; 7+ messages in thread
From: Hollis Blanchard @ 2008-12-05 16:09 UTC (permalink / raw)
To: paolo pedaletti; +Cc: kvm
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fwd: how to compile kvm 64 bit
2008-12-05 16:09 ` Hollis Blanchard
@ 2008-12-07 0:17 ` Paolo Pedaletti
0 siblings, 0 replies; 7+ messages in thread
From: Paolo Pedaletti @ 2008-12-07 0:17 UTC (permalink / raw)
Cc: kvm
Ciao Hollis,
> 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?
yes, it was true...
TANK YOU!
some old vars that I used to use on another "old" platform.
thanks again...
--
/* Paolo Pedaletti,
* paolo@pedaletti.it www.pedaletti.it */
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-12-07 0:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04 15:24 how to compile kvm 64 bit paolo pedaletti
2008-12-04 16:31 ` Charles Duffy
2008-12-05 8:15 ` paolo pedaletti
[not found] ` <aa2a0fc0812040839o513aa4edqbb07f8b88d140322@mail.gmail.com>
2008-12-04 16:41 ` Fwd: " Malinka Rellikwodahs
2008-12-05 8:27 ` paolo pedaletti
2008-12-05 16:09 ` Hollis Blanchard
2008-12-07 0:17 ` Paolo Pedaletti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).