From: Struan Bartlett <struan@praguespringpeople.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Error during compilation
Date: Wed, 16 Mar 2005 00:03:17 +0100 [thread overview]
Message-ID: <423769B5.2000701@praguespringpeople.org> (raw)
In-Reply-To: <20050315220901.GA24612@nic-nac-project.de>
[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]
Thomas Schwinge wrote:
>On Tue, Mar 15, 2005 at 07:57:55AM -0800, Peter Federighi wrote:
>
>
>>gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
>>-I/usr/src/qemu-0.6.1/target-i386 -I/usr/src/qemu-0.6.1 -D_GNU_SOURCE
>>-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/src/qemu-0.6.1/slirp -c
>>-o helper.o /usr/src/qemu-0.6.1/target-i386/helper.c
>>/usr/src/qemu-0.6.1/softmmu_template.h: In function `__stq_mmu':
>>/usr/src/qemu-0.6.1/softmmu_template.h:223: error: unable to find a
>>register to spill in class `GENERAL_REGS'
>>/usr/src/qemu-0.6.1/softmmu_template.h:223: error: this is the insn:
>>(insn:HI 315 314 316 13 /usr/src/qemu-0.6.1/softmmu_template.h:252
>>(parallel [
>> (set (reg:DI 0 ax [194])
>> (lshiftrt:DI (reg/v:DI 59 [ val ])
>> (subreg:QI (reg:SI 0 ax [193]) 0)))
>> (clobber (scratch:SI))
>> (clobber (reg:CC 17 flags))
>> ]) 306 {lshrdi3_1} (insn_list 314 (nil))
>> (expr_list:REG_DEAD (reg:SI 0 ax [193])
>> (expr_list:REG_UNUSED (reg:CC 17 flags)
>> (expr_list:REG_UNUSED (scratch:SI)
>> (nil)))))
>>/usr/src/qemu-0.6.1/softmmu_template.h:223: confused by earlier errors,
>>bailing out
>>make[1]: *** [helper.o] Error 1
>>make[1]: Leaving directory `/usr/src/qemu-0.6.1/i386'
>>make: *** [all] Error 1
>>
>>
>
>I'm getting the same error when having '-march=athlon-xp' in my $CFLAGS
>(and forcing qemu to use those). Replacing that with '-march=pentium'
>fixes the issue for me.
>
I got the same error compiling QEMU with -march=pentium3, but only on
op.c and helper.c. All other files compiled fine with that option. Those
two files compiled fine with -march=pentium.
Is it a bug? I idly speculated that the register selection method might
be different for different archs and that, because these files might
demand certain registers be used for certain purposes, the compiler
might simple be "unable to find a register" for its needs.
Struan
[-- Attachment #2: Type: text/html, Size: 2405 bytes --]
prev parent reply other threads:[~2005-03-15 23:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 15:58 [Qemu-devel] Error during compilation Peter Federighi
2005-03-15 16:21 ` John R. Hogerhuis
2005-03-15 18:16 ` Derek Fawcus
2005-03-15 22:09 ` Thomas Schwinge
2005-03-15 23:03 ` Struan Bartlett [this message]
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=423769B5.2000701@praguespringpeople.org \
--to=struan@praguespringpeople.org \
--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).