qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-0.7.0 Solaris Host patch (Real)


From: Nardmann, Heiko
Subject: Re: [Qemu-devel] [PATCH] qemu-0.7.0 Solaris Host patch (Real)
Date: Mon, 2 May 2005 12:51:02 +0200
User-agent: KMail/1.7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So ... I now get over this first point of trouble. The reason for not finding 
fenv.h ist that I can only find this file 
as /opt/SUNWspro/prod/include/cc/fenv.h.

Adding this path to DEFINES solved this one.

Now another thing:



gcc-3.4.2 -Wall -O2 -g -fno-strict-aliasing -m32 -ffixed-g1 -ffixed-g2 
- -ffixed-g3 -ffixed-g6 -fno-delayed-branch -ffixed-i0 -fno-reorder-blocks 
- -fno-optimize-sibling-calls -I. -I/home/nardmann/qemu-0.7.0/target-i386 
- -I/home/nardmann/qemu-0.7.0 -I/opt/SUNWspro/prod/include/cc -D_GNU_SOURCE 
- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/nardmann/qemu-0.7.0/fpu 
- -I/home/nardmann/qemu-0.7.0/slirp -c -o 
op.o /home/nardmann/qemu-0.7.0/target-i386/op.c
In file included from /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:7,
                 from /home/nardmann/qemu-0.7.0/fpu/softfloat.h:394,
                 from /home/nardmann/qemu-0.7.0/target-i386/cpu.h:41,
                 from /home/nardmann/qemu-0.7.0/target-i386/exec.h:143,
                 from /home/nardmann/qemu-0.7.0/target-i386/op.c:22:
/opt/SUNWspro/prod/include/cc/fenv.h:8: warning: ignoring #pragma ident
In file included from /home/nardmann/qemu-0.7.0/fpu/softfloat.h:394,
                 from /home/nardmann/qemu-0.7.0/target-i386/cpu.h:41,
                 from /home/nardmann/qemu-0.7.0/target-i386/exec.h:143,
                 from /home/nardmann/qemu-0.7.0/target-i386/op.c:22:
/home/nardmann/qemu-0.7.0/fpu/softfloat-native.h: In function `float32_abs':
/home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:164: warning: implicit 
declaration of function `fabsf'
In file included from /home/nardmann/qemu-0.7.0/target-i386/op.c:724:
/home/nardmann/qemu-0.7.0/target-i386/ops_template.h: In function 
`op_jb_subb':
/home/nardmann/qemu-0.7.0/target-i386/ops_template.h:278: warning: implicit 
declaration of function `GOTO_LABEL_PARAM'
../dyngen -o op.h op.o
dyngen: Found bogus save at the start of op_pavgw_xmm



I found that GOTO_LABEL_PARAM ist not defined for sparc in dyngen-exec.h; any 
reason for this?

On Montag 02 Mai 2005 12:12, Nardmann, Heiko wrote:
> I get the following error after running
>
> ./configure --prefix=$HOME/qemu-0.7.0.install
>
> Install prefix    /home/nardmann/qemu-0.7.0.install
> BIOS directory    /home/nardmann/qemu-0.7.0.install/share/qemu
> binary directory  /home/nardmann/qemu-0.7.0.install/bin
> Manual directory  /home/nardmann/qemu-0.7.0.install/share/man
> ELF interp prefix /usr/gnemul/qemu-%M
> Source path       /home/nardmann/qemu-0.7.0
> C compiler        gcc
> make              gmake
> install           ginstall
> host CPU          sparc
> host big endian   yes
> target list       i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
> gprof enabled     no
> static build      no
> SDL support       yes
> SDL static link   yes
> mingw32 support   no
> Adlib support     no
> FMOD support      no
> OSS support       no
> kqemu support     no
>
>
>
> Then running make:
>
> for d in i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu; do \
> gmake -C $d all || exit 1 ; \
>         done
> gmake[1]: Entering directory `/home/nardmann/qemu-0.7.0/i386-softmmu'
> gcc -Wall -O2 -g -fno-strict-aliasing -m32 -ffixed-g1 -ffixed-g2 -ffixed-g3
> -ffixed-g6 -I. -I/home/nardmann/qemu-0.7.0/target-i386
> -I/home/nardmann/qemu-0.7.0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -I/home/nardmann/qemu-0.7.0/fpu
> -I/home/nardmann/qemu-0.7.0/slirp -c -o vl.o /home/nardmann/qemu-0.7.0/vl.c
> In file included from /home/nardmann/qemu-0.7.0/fpu/softfloat.h:394,
>                  from /home/nardmann/qemu-0.7.0/target-i386/cpu.h:41,
>                  from /home/nardmann/qemu-0.7.0/vl.h:73,
>                  from /home/nardmann/qemu-0.7.0/vl.c:24:
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:7:18: fenv.h: No such file
> or directory
> In file included from /home/nardmann/qemu-0.7.0/fpu/softfloat.h:394,
>                  from /home/nardmann/qemu-0.7.0/target-i386/cpu.h:41,
>                  from /home/nardmann/qemu-0.7.0/vl.h:73,
>                  from /home/nardmann/qemu-0.7.0/vl.c:24:
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:53: `FE_TONEAREST'
> undeclared here (not in a function)
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:53: enumerator value for
> `float_round_nearest_even' not integer constant
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:54: `FE_DOWNWARD'
> undeclared here (not in a function)
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:54: enumerator value for
> `float_round_down' not integer constant
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:55: `FE_UPWARD' undeclared
> here (not in a function)
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:55: enumerator value for
> `float_round_up' not integer constant
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:57: `FE_TOWARDZERO'
> undeclared here (not in a function)
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:57: enumerator value for
> `float_round_to_zero' not integer constant
> /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h: In function
> `float32_abs': /home/nardmann/qemu-0.7.0/fpu/softfloat-native.h:164:
> warning: implicit declaration of function `fabsf'
> /home/nardmann/qemu-0.7.0/vl.c: In function `init_timers':
> /home/nardmann/qemu-0.7.0/vl.c:986: warning: label `use_itimer' defined but
> not used
> /home/nardmann/qemu-0.7.0/vl.c: In function `net_slirp_smb':
> /home/nardmann/qemu-0.7.0/vl.c:1561: warning: int format, pid_t arg (arg 4)
> /home/nardmann/qemu-0.7.0/vl.c: In function `create_pidfile':
> /home/nardmann/qemu-0.7.0/vl.c:1759: warning: int format, pid_t arg (arg 3)
> /home/nardmann/qemu-0.7.0/vl.c: At top level:
> /home/nardmann/qemu-0.7.0/vl.c:914: warning: `start_rtc_timer' defined but
> not used
> gmake[1]: *** [vl.o] Error 1
> gmake[1]: Leaving directory `/home/nardmann/qemu-0.7.0/i386-softmmu'
> make: *** [all] Error 1
>
> Anyone with the same problem and already having a solution for it?
>
> On Donnerstag 28 April 2005 16:24, Ben Taylor wrote:
> > Please ignore the first post. A webmail annomally sent
> > the message before it was cooked. :-)
> >
> > This patch is mostly a collation of several sets of Solaris
> > host patches that have been around.  Thanks to Juergen
> > and a few others for actually having done the hard work
> > of debugging and making things work.
> >
> > What the patch does:
> >
> > 1) deal with the fact that bash is not /bin/sh in Solaris
> > 2) Add defaults for Solaris in configure, and deal with
> >    specific behaviors that Solaris doesn't support
> >    (like ln -sf not overwriting the target)
> > 3) add --install= option to configure.  Solaris's
> >    /usr/bin/install is not what qemu expects to see.
> >    Default is ginstall, but you can also use the full path
> >    to /usr/ucb/install if you don't have Gnu Fileutils
> >    installed. However, it's not a good ideas to put
> >    /usr/ucb in front of /usr/bin:/usr/sbin.  Modified
> >    the Makefiles to use $(INSTALL)
> > 4) Added --with-oss= and --oss-inc= to allow the use of the
> >    OSS audio driver in Solaris. It had been previosly
> >    disabled.  (SDL audio tends to stutter on Solaris)
> > 5) Add snippets of code in various place to make qemu
> >    compile cleanly under Solaris.
> >
> > Two enhancements:
> > 1) ability to run with user-net if you don't have
> >    a DNS server on the host
> > 2) some extra Samba features in vl.c, though I admit
> >    to just importing them since I don't run Samba.
> >
> > On solaris, from above the qemu-0.7.0 directory, type
> >
> > gpatch -p0 < qemu-0.7.0-solaris-patch
> >
> > Notes: all of the work has been done on Solaris 10 or
> > Solaris express, using the blastwave gcc-3.4.3 compiler
> > and libSDL-1.2.8 from blastwave.  I have seen reports
> > that gcc-3.4.3 in /usr/sfw/bin is broken for qemu
> > building.
> >
> > Ben

- -- 
Heiko Nardmann (Dipl.-Ing. Technische Informatik)
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCdgYfpm53PRScYygRAmxoAJ4nagjAY7m1BoLHcmpW1bcobfO+LgCgz2ym
NZDbtb8oqNGoTV73ccYH3WY=
=Y0z1
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]