qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "C.W. Betts" <computers57@hotmail.com>
To: qemu-devel@nongnu.org
Cc: Blue Swirl <blauwirbel@gmail.com>
Subject: Re: [Qemu-devel] build failure on x86, any suggestions?
Date: Wed, 19 Mar 2008 14:36:44 -0600	[thread overview]
Message-ID: <BAY133-DAV173EA767A7166DB42B4F13B9070@phx.gbl> (raw)
Message-ID: <200803191436.55827.computers57@hotmail.com> (raw)
In-Reply-To: <f43fc5580803160920g44ba0400h1be8861f2363242a@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3332 bytes --]

On Sunday 16 March 2008 10:20:30 am Blue Swirl wrote:
> On 3/16/08, Peter Volkov <pva@gentoo.org> wrote:
> > В Вск, 16/03/2008 в 00:01 -0600, C.W. Betts пишет:
> > > Try setting the compiler flags to use -march=pentium-mmx . That is the
> > > max
> > >
> >  > setting for -march that qemu compiles on.  also, make sure that the
> >  > compiler isn't sending any of the -msse functions.
> >  >
> >  > I tried to build qemu using -msse -march=pentium3 and it spat out the
> >  > same thing.
> >
> > Well with -march=pentium-mmx it works, although it occurs that
> >  $ export CFLAGS="-march=pentium-mmx"
> >  is not enough. I have to path CFLAGS to make with
> >  $ emake OS_CFLAGS="${CFLAGS}"
> >  CFLAGS are prefixed at the beginning of the compilation command ands
> >  seems that -g -O2 which will go later redefine something which in turn
> >  cause the build to fail and OS_CFLAGS passes -march after -g -O2.
> >
> >  Also strange thing is that if I try to disable all sse thing in compiler
> >  appending -mno-sse{,2,3} -mfpmath=387 qemu does not builds. Either I
> >  miss something or sse is not the only problem.
> >
> >  Two patches suggested here by Alexander and Blue did no difference here.
>
> Please try this patch and if it fails, report also the compiler error
> message.
>
> I'm trying to find the range of instructions that need to be converted
> to TCG helpers.

Okay, the patch makes op.c and translate.c compile.  I did have a problem with trying to get the makefile to compile op.c with the additional flags, but I worked around it.  
However, now the helper.c file spits out:
gcc-3.4  -fomit-frame-pointer -I. -I.. -I/home/test/makestuff/qemu-patched/target-i386 -I/home/test/makestuff/qemu-patched -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/test/makestuff/qemu-patched/tcg -I/home/test/makestuff/qemu-patched/tcg/i386 -I/home/test/makestuff/qemu-patched/fpu  -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/test/makestuff/qemu-patched/slirp -mfpmath=sse -march=pentium3 -msse -Wall -O2 -g -fno-strict-aliasing -mfpmath=sse -march=pentium3 -msse -m32 -c -o helper.o /home/test/makestuff/qemu-patched/target-i386/helper.c
/home/test/makestuff/qemu-patched/target-i386/helper.c: In function `svm_check_intercept_param':
/home/test/makestuff/qemu-patched/target-i386/helper.c:4375: error: unable to find a register to spill in class `GENERAL_REGS'
/home/test/makestuff/qemu-patched/target-i386/helper.c:4375: error: this is the insn:
(insn:HI 353 352 354 39 /home/test/makestuff/qemu-patched/target-i386/helper.c:4368 (parallel [
            (set (reg:DI 167 [ <variable>.intercept ])
                (lshiftrt:DI (reg:DI 167 [ <variable>.intercept ])
                    (subreg:QI (reg:SI 166) 0)))
            (clobber (scratch:SI))
            (clobber (reg:CC 17 flags))
        ]) 309 {lshrdi3_1} (insn_list 351 (insn_list 352 (nil)))
    (expr_list:REG_DEAD (reg:SI 166)
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (expr_list:REG_UNUSED (scratch:SI)
                (nil)))))
/home/test/makestuff/qemu-patched/target-i386/helper.c:4375: confused by earlier errors, bailing out
make: *** [helper.o] Error 1
This is only on the i386 target.  When I compile the x86_64 target, it works just fine.

[-- Attachment #1.2: Type: text/html, Size: 6167 bytes --]

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2008-03-19 20:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-15 14:01 [Qemu-devel] build failure on x86, any suggestions? Peter Volkov
2008-03-15 14:20 ` Paul Brook
2008-03-15 15:13   ` Peter Volkov
2008-03-15 19:45     ` Alexander Graf
     [not found]     ` <200803151150.06813.computers57@hotmail.com>
     [not found]       ` <200803160001.52124.computers57@hotmail.com>
2008-03-16  6:01         ` C.W. Betts
2008-03-16 13:11         ` Peter Volkov
2008-03-16 16:20           ` Blue Swirl
     [not found]             ` <200803191436.55827.computers57@hotmail.com>
2008-03-19 20:36               ` C.W. Betts [this message]
2008-03-15 18:25   ` Stefan Weil
2008-03-15 20:35 ` Blue Swirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY133-DAV173EA767A7166DB42B4F13B9070@phx.gbl \
    --to=computers57@hotmail.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).