qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu dyngen.c exec-i386.c exec-i386.h exec.h op...
@ 2003-06-02 20:38 Fabrice Bellard
  2003-06-04 10:38 ` Jerker Nyberg
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Bellard @ 2003-06-02 20:38 UTC (permalink / raw)
  To: qemu-devel

CVSROOT:	/cvsroot/qemu
Module name:	qemu
Changes by:	Fabrice Bellard <fabrice.bellard@free.fr>	03/06/02 16:38:09

Modified files:
	.              : dyngen.c exec-i386.c exec-i386.h exec.h 
	                 op-i386.c 

Log message:
	Alpha update (Falk Hueffner)

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/dyngen.c.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec-i386.c.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec-i386.h.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/op-i386.c.diff?tr1=1.31&tr2=1.32&r1=text&r2=text

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

* Re: [Qemu-devel] qemu dyngen.c exec-i386.c exec-i386.h exec.h op...
  2003-06-02 20:38 [Qemu-devel] qemu dyngen.c exec-i386.c exec-i386.h exec.h op Fabrice Bellard
@ 2003-06-04 10:38 ` Jerker Nyberg
  2003-06-04 12:12   ` Falk Hueffner
  0 siblings, 1 reply; 3+ messages in thread
From: Jerker Nyberg @ 2003-06-04 10:38 UTC (permalink / raw)
  To: qemu-devel


Hello,

I tried to compile qemu on Alpha but cannot get it to work. I use
gcc-2.96-112.7.1 (?) on a Red Hat Linux 7.1 distribution with
kernel-2.4.3. 

I removed the "CFLAGS += -msmall-data -msmall-text" to get the compilation
going, but got stuck later again at "./dyngen -o op-i386.h op-i386.o" with
"dyngen: ret expected at the end of op_raise_interrupt". See log below.

Sorry if qemu development is in a too early stage to bother you with these
kind of questions.

By the way, to testdrive Linux on ARM go here:  
http://www.handhelds.org/projects/devcluster.html

Regards,
Jerker Nyberg.
Uppsala, Sweden.


aristocat:/tmp/jerker$ cat ~jerker/work/checkout.sh 
cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/qemu login
cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/qemu co qemu
aristocat:/tmp/jerker$ ~jerker/work/checkout.sh
Logging in to :pserver:anoncvs@subversions.gnu.org:2401/cvsroot/qemu
CVS password: 
cvs server: Updating qemu
U qemu/COPYING
U qemu/COPYING.LIB
[...]

aristocat:/tmp/jerker/qemu$ ./configure
Install prefix   /usr/local
Source path      /tmp/jerker/qemu
C compiler       gcc
make             make
host CPU         alpha
Big Endian       no
target CPU       x86
gprof enabled    no
Creating config.mak and config.h
config.h is unchanged

aristocat:/tmp/jerker/qemu$ make
gcc -Wall -O2 -g -msmall-data -msmall-text -DHAVE_BYTESWAP_H -D_GNU_SOURCE
-c -o elfload.o elfload.c
cc1: Invalid option `small-data'
cc1: Invalid option `small-text'
In file included from qemu.h:7,
                 from elfload.c:13:
syscall_defs.h: In function `__target_cmsg_nxthdr':
syscall_defs.h:93: warning: cast to pointer from integer of different size
syscall_defs.h:96: warning: cast to pointer from integer of different size
elfload.c: In function `create_elf_tables':
elfload.c:468: warning: cast from pointer to integer of different size
elfload.c:469: warning: cast from pointer to integer of different size
elfload.c:494: warning: cast from pointer to integer of different size
elfload.c:500: warning: cast from pointer to integer of different size
make: *** [elfload.o] Error 1

aristocat:/tmp/jerker/qemu$ emacs -nw Makefile

aristocat:/tmp/jerker/qemu$ diff Makefile*
53c53
< ####CFLAGS += -msmall-data -msmall-text
---
> CFLAGS += -msmall-data -msmall-text

aristocat:/tmp/jerker/qemu$ make
[...]
gcc -O2 -Wall -g dyngen.c -o dyngen
dyngen.c: In function `gen_code':
dyngen.c:490: warning: int format, different type arg (arg 4)
dyngen.c:515: warning: int format, different type arg (arg 4)
./dyngen -o op-i386.h op-i386.o
dyngen: ret expected at the end of op_raise_interrupt
make: *** [op-i386.h] Error 1

aristocat:/tmp/jerker$ gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1)

aristocat:/tmp/jerker$ rpm -q gcc
gcc-2.96-112.7.1

aristocat:/tmp/jerker$ uname -r
2.4.3-12

aristocat:/tmp/jerker/qemu$ cat /etc/redhat-release 
Red Hat Linux release 7.1 (Seawolf)


--jerker


--jerker


On Mon, 2 Jun 2003, Fabrice Bellard wrote:

> CVSROOT:	/cvsroot/qemu
> Module name:	qemu
> Changes by:	Fabrice Bellard <fabrice.bellard@free.fr>	03/06/02 16:38:09
> 
> Modified files:
> 	.              : dyngen.c exec-i386.c exec-i386.h exec.h 
> 	                 op-i386.c 
> 
> Log message:
> 	Alpha update (Falk Hueffner)
> 
> CVSWeb URLs:
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/dyngen.c.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec-i386.c.diff?tr1=1.26&tr2=1.27&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec-i386.h.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/exec.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
> http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/op-i386.c.diff?tr1=1.31&tr2=1.32&r1=text&r2=text
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
> 

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

* Re: [Qemu-devel] qemu dyngen.c exec-i386.c exec-i386.h exec.h op...
  2003-06-04 10:38 ` Jerker Nyberg
@ 2003-06-04 12:12   ` Falk Hueffner
  0 siblings, 0 replies; 3+ messages in thread
From: Falk Hueffner @ 2003-06-04 12:12 UTC (permalink / raw)
  To: qemu-devel

Jerker Nyberg <jerker@update.uu.se> writes:

> I tried to compile qemu on Alpha but cannot get it to work. I use
> gcc-2.96-112.7.1 (?) on a Red Hat Linux 7.1 distribution with
> kernel-2.4.3.
> 
> I removed the "CFLAGS += -msmall-data -msmall-text" to get the
> compilation going, but got stuck later again at "./dyngen -o
> op-i386.h op-i386.o" with "dyngen: ret expected at the end of
> op_raise_interrupt".

Hmm, very weird. Must be a quirk of your compiler, maybe it doesn't
understand -fno-reorder-blocks -fno-optimize-sibling-calls
properly. 2.96 is pretty ancient and not even an official gcc release,
so I am not sure anybody is interested in making qemu work with
it. I'd advise to upgrade to 3.3.

Also, kernel 2.4.3 doesn not support getting the fault address in a
signal handler (unless Red Hat patched that in). I don't know how
essential that is for qemu, though.

Finally, qemu does currently not work on Alpha anyway, and only worked
for very simple programs previously, maybe Fabrice will have a look at
it, I don't have time currently, unfortunately.

-- 
	Falk

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

end of thread, other threads:[~2003-06-04 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-02 20:38 [Qemu-devel] qemu dyngen.c exec-i386.c exec-i386.h exec.h op Fabrice Bellard
2003-06-04 10:38 ` Jerker Nyberg
2003-06-04 12:12   ` Falk Hueffner

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