qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] trouble compiling om x86_64
@ 2005-10-24  7:54 Darrin Ritter
  2005-10-24  9:54 ` Jan Marten Simons
  2005-10-24 11:22 ` Darrin Ritter
  0 siblings, 2 replies; 4+ messages in thread
From: Darrin Ritter @ 2005-10-24  7:54 UTC (permalink / raw)
  To: qemu-devel

hi
first of all sorry if this is posted on the wrong forum as I tried to 
join the user forum and got a 404 error

I have been using the qemu binary file on my FC4 machine without a hitch 
and now I am trying to compile on an amd 64 machine so i can get kqemu 
working.
I downloaded the files :

qemu-0.7.2.tar.gz <http://fabrice.bellard.free.fr/qemu/qemu-0.7.2.tar.gz>

kqemu-0.7.2.tar.gz <http://fabrice.bellard.free.fr/qemu/kqemu-0.7.2.tar.gz>

and then unpacked qemu into a directory then cd into the qemu directory 
and unpacked the kqemu with tar -zxvf ../kqemu-0.7.2.tar.gz.


I then did ./configure --target-list=i386-user , as I only really wanted 
i386 virtual machine and I go the following output:

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 /home/dv/tmp/qemu-0.7.2
C compiler gcc
Host C compiler gcc
make make
host CPU x86_64
host big endian no
target list i386-user
gprof enabled no
static build no
SDL support yes
SDL static link yes
mingw32 support no
Adlib support no
FMOD support no
kqemu support yes

KQEMU Linux module configuration:
kernel sources /lib/modules/2.6.12-1.1398_FC4/build
kbuild type 2.6


when I ran make I go the following output error:

gcc -Wall -O2 -g -fno-strict-aliasing -falign-functions=0 
-fno-reorder-blocks -fno-optimize-sibling-calls -I. 
-I/home/dv/tmp/qemu-0.7.2/target-i386 -I/home/dv/tmp/qemu-0.7.2 
-I/home/dv/tmp/qemu-0.7.2/linux-user 
-I/home/dv/tmp/qemu-0.7.2/linux-user/i386 -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/dv/tmp/qemu-0.7.2/fpu 
-I/home/dv/tmp/qemu-0.7.2/slirp -c -o op.o 
/home/dv/tmp/qemu-0.7.2/target-i386/op.c
In file included from /home/dv/tmp/qemu-0.7.2/target-i386/op.c:22:
/home/dv/tmp/qemu-0.7.2/target-i386/exec.h: In function ‘helper_fldt’:
/home/dv/tmp/qemu-0.7.2/target-i386/exec.h:477: warning: cast to pointer 
from integer of different size
/home/dv/tmp/qemu-0.7.2/target-i386/exec.h: In function ‘helper_fstt’:
/home/dv/tmp/qemu-0.7.2/target-i386/exec.h:482: warning: cast to pointer 
from integer of different size
/home/dv/tmp/qemu-0.7.2/target-i386/op.c: In function ‘op_goto_tb0’:
/home/dv/tmp/qemu-0.7.2/target-i386/op.c:1300: warning: cast to pointer 
from integer of different size
/home/dv/tmp/qemu-0.7.2/target-i386/op.c: In function ‘op_goto_tb1’:
/home/dv/tmp/qemu-0.7.2/target-i386/op.c:1305: warning: cast to pointer 
from integer of different size
../dyngen -o op.h op.o
dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
make[1]: *** [op.h] Error 1
make[1]: Leaving directory `/home/dv/tmp/qemu-0.7.2/i386-user'
make: *** [all] Error 1


what do I do to get the program to compile?

thanks Darrin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] trouble compiling om x86_64
  2005-10-24  7:54 [Qemu-devel] trouble compiling om x86_64 Darrin Ritter
@ 2005-10-24  9:54 ` Jan Marten Simons
  2005-10-24 13:35   ` Darrin Ritter
  2005-10-24 11:22 ` Darrin Ritter
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Marten Simons @ 2005-10-24  9:54 UTC (permalink / raw)
  To: qemu-devel

Darrin Ritter wrote:

> dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
> make[1]: *** [op.h] Error 1
> make[1]: Leaving directory `/home/dv/tmp/qemu-0.7.2/i386-user'
> make: *** [all] Error 1
>
Looks like you are using gcc4 which is still unsupported. Try to use gcc3.x

I'll use this message to pinpoint to the imho very nice unofficial FAQ 
at 
http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions 
where frequently asked questions from the irc channel (#qemu on 
freenode.net) are collected.

With regards,
Jan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] trouble compiling om x86_64
  2005-10-24  7:54 [Qemu-devel] trouble compiling om x86_64 Darrin Ritter
  2005-10-24  9:54 ` Jan Marten Simons
@ 2005-10-24 11:22 ` Darrin Ritter
  1 sibling, 0 replies; 4+ messages in thread
From: Darrin Ritter @ 2005-10-24 11:22 UTC (permalink / raw)
  To: qemu-devel

Darrin Ritter wrote:

> hi
> first of all sorry if this is posted on the wrong forum as I tried to 
> join the user forum and got a 404 error
>
> I have been using the qemu binary file on my FC4 machine without a 
> hitch and now I am trying to compile on an amd 64 machine so i can get 
> kqemu working.
> I downloaded the files :
>
> qemu-0.7.2.tar.gz <http://fabrice.bellard.free.fr/qemu/qemu-0.7.2.tar.gz>
>
> kqemu-0.7.2.tar.gz 
> <http://fabrice.bellard.free.fr/qemu/kqemu-0.7.2.tar.gz>
>
> and then unpacked qemu into a directory then cd into the qemu 
> directory and unpacked the kqemu with tar -zxvf ../kqemu-0.7.2.tar.gz.
>
>
> I then did ./configure --target-list=i386-user , as I only really 
> wanted i386 virtual machine and I go the following output:
>
correcting myself I need to compile with ./configure --target-list= 
x86_64-softmmu to get kqemu (helps to RTFM)

> 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 /home/dv/tmp/qemu-0.7.2
> C compiler gcc
> Host C compiler gcc
> make make
> host CPU x86_64
> host big endian no
> target list i386-user
> gprof enabled no
> static build no
> SDL support yes
> SDL static link yes
> mingw32 support no
> Adlib support no
> FMOD support no
> kqemu support yes
>
> KQEMU Linux module configuration:
> kernel sources /lib/modules/2.6.12-1.1398_FC4/build
> kbuild type 2.6
>
>
> when I ran make I go the following output error:
>
> gcc -Wall -O2 -g -fno-strict-aliasing -falign-functions=0 
> -fno-reorder-blocks -fno-optimize-sibling-calls -I. 
> -I/home/dv/tmp/qemu-0.7.2/target-i386 -I/home/dv/tmp/qemu-0.7.2 
> -I/home/dv/tmp/qemu-0.7.2/linux-user 
> -I/home/dv/tmp/qemu-0.7.2/linux-user/i386 -D_GNU_SOURCE 
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> -I/home/dv/tmp/qemu-0.7.2/fpu -I/home/dv/tmp/qemu-0.7.2/slirp -c -o 
> op.o /home/dv/tmp/qemu-0.7.2/target-i386/op.c
> In file included from /home/dv/tmp/qemu-0.7.2/target-i386/op.c:22:
> /home/dv/tmp/qemu-0.7.2/target-i386/exec.h: In function ‘helper_fldt’:
> /home/dv/tmp/qemu-0.7.2/target-i386/exec.h:477: warning: cast to 
> pointer from integer of different size
> /home/dv/tmp/qemu-0.7.2/target-i386/exec.h: In function ‘helper_fstt’:
> /home/dv/tmp/qemu-0.7.2/target-i386/exec.h:482: warning: cast to 
> pointer from integer of different size
> /home/dv/tmp/qemu-0.7.2/target-i386/op.c: In function ‘op_goto_tb0’:
> /home/dv/tmp/qemu-0.7.2/target-i386/op.c:1300: warning: cast to 
> pointer from integer of different size
> /home/dv/tmp/qemu-0.7.2/target-i386/op.c: In function ‘op_goto_tb1’:
> /home/dv/tmp/qemu-0.7.2/target-i386/op.c:1305: warning: cast to 
> pointer from integer of different size
> ../dyngen -o op.h op.o
> dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
> make[1]: *** [op.h] Error 1
> make[1]: Leaving directory `/home/dv/tmp/qemu-0.7.2/i386-user'
> make: *** [all] Error 1
>
>
> what do I do to get the program to compile?
>
> thanks Darrin
>
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] trouble compiling om x86_64
  2005-10-24  9:54 ` Jan Marten Simons
@ 2005-10-24 13:35   ` Darrin Ritter
  0 siblings, 0 replies; 4+ messages in thread
From: Darrin Ritter @ 2005-10-24 13:35 UTC (permalink / raw)
  To: qemu-devel

Jan Marten Simons wrote:

> Darrin Ritter wrote:
>
>> dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
>> make[1]: *** [op.h] Error 1
>> make[1]: Leaving directory `/home/dv/tmp/qemu-0.7.2/i386-user'
>> make: *** [all] Error 1
>>
> Looks like you are using gcc4 which is still unsupported. Try to use 
> gcc3.x
>
> I'll use this message to pinpoint to the imho very nice unofficial FAQ 
> at 
> http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions 
> where frequently asked questions from the irc channel (#qemu on 
> freenode.net) are collected.
>
> With regards,
> Jan
>
>
thanks ./configure ---cc=gcc32 -target-list= x86_64-softmmu enabled me 
to compile

and modprobe kqemu loaded the kernel module but the system hangs with 
the following command:

qemu-system-x86_64 -enable-audio -user-net /home/dv/qemu/hd.img

any ideas 

Darrin

>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-24 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-24  7:54 [Qemu-devel] trouble compiling om x86_64 Darrin Ritter
2005-10-24  9:54 ` Jan Marten Simons
2005-10-24 13:35   ` Darrin Ritter
2005-10-24 11:22 ` Darrin Ritter

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).