Gentoo Archives: gentoo-user

From: Rumen Yotov <rumen@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Qemu compilation fails
Date: Thu, 06 Sep 2007 05:53:29
Message-Id: 20070906054321.GA17865@qrypto.org
In Reply to: [gentoo-user] Qemu compilation fails by "Marco Antônio da Veiga"
1 On (06/09/07 01:36) Marco Antônio da Veiga wrote:
2 > Hi,
3 > I'm trying to have qemu running, but compiling qemu-softmmu with gcc-3.4.6fails.
4 >
5 > This is the error:
6 >
7 > i686-pc-linux-gnu-gcc -Wall -O2 -g -fno-strict-aliasing -I. -I..
8 > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386
9 > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0-D_GNU_SOURCE
10 > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
11 > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/fpu
12 > -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-
13 > 0.9.0/slirp -c -o fpu/softfloat-native.o/var/tmp/portage/app-emulation/qemu-
14 > softmmu-0.9.0/work/qemu-0.9.0/fpu/softfloat-native.c
15 > i686-pc-linux-gnu-gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer
16 > -I. -I.. -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386
17 > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0-D_GNU_SOURCE
18 > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
19 > -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/fpu
20 > -DHAS_AUDIO -I/var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-
21 > 0.9.0/slirp -c -o helper.o /var/tmp/portage/app-emulation/qemu-
22 > softmmu-0.9.0/work/qemu-0.9.0/target-i386/helper.c
23 > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386/ops_sse.h:
24 > In function `op_psrlq_mmx':
25 > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386/ops_sse.h:213:
26 > error: unable to find a register to spill in class `GENERAL_REGS'
27 > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386/ops_sse.h:213:
28 > error: this is the insn:
29 > (insn:HI 36 35 37 3 /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0
30 > /work/qemu-0.9.0/target-i386/ops_sse.h:207 (parallel [
31 > (set (reg:DI 63 [ <variable>.q ])
32 > (lshiftrt:DI (reg:DI 63 [ <variable>.q ])
33 > (subreg:QI (reg/v:SI 60 [ shift ]) 0)))
34 > (clobber (scratch:SI))
35 > (clobber (reg:CC 17 flags))
36 > ]) 309 {lshrdi3_1} (insn_list 33 (insn_list 35 (nil)))
37 > (expr_list:REG_DEAD (reg/v:SI 60 [ shift ])
38 > (expr_list:REG_UNUSED (reg:CC 17 flags)
39 > (expr_list:REG_UNUSED (scratch:SI)
40 > (nil)))))
41 > /var/tmp/portage/app-emulation/qemu-softmmu-0.9.0/work/qemu-0.9.0/target-i386/ops_sse.h:213:
42 > confused by earlier errors, bailing out
43 > make[1]: ** [op.o] Erro 1
44 > make[1]: ** Esperando que outros processos terminem.
45 > ../softmmu_template.h: In function `__stq_mmu':
46 > ../softmmu_template.h:260: error: unable to find a register to spill in
47 > class `GENERAL_REGS'
48 > ../softmmu_template.h:260: error: this is the insn:
49 > (insn:HI 333 332 334 13 ../softmmu_template.h:290 (parallel [
50 > (set (reg:DI 0 ax [210])
51 > (lshiftrt:DI (reg/v:DI 59 [ val ])
52 > (subreg:QI (reg:SI 0 ax [209]) 0)))
53 > (clobber (scratch:SI))
54 > (clobber (reg:CC 17 flags))
55 > ]) 309 {lshrdi3_1} (insn_list 332 (nil))
56 > (expr_list:REG_DEAD (reg:SI 0 ax [209])
57 > (expr_list:REG_UNUSED (reg:CC 17 flags)
58 > (expr_list:REG_UNUSED (scratch:SI)
59 > (nil)))))
60 > ../softmmu_template.h:260: confused by earlier errors, bailing out
61 > make[1]: ** [helper.o] Erro 1
62 > make[1]: Saindo do diretório `/var/tmp/portage/app-emulation/qemu-
63 > softmmu-0.9.0/work/qemu-0.9.0/i386-softmmu'
64 > make: ** [subdir-i386-softmmu] Erro 2
65 >
66 > !!! ERROR: app-emulation/qemu-softmmu-0.9.0 failed.
67 > Call stack:
68 > ebuild.sh, line 1638: Called dyn_compile
69 > ebuild.sh, line 985: Called qa_call 'src_compile'
70 > ebuild.sh, line 44: Called src_compile
71 > qemu-softmmu-0.9.0.ebuild, line 96: Called die
72 >
73 > !!! make failed
74 > !!! If you need support, post the topmost build error, and the call stack if
75 > relevant.
76 > !!! A complete build log is located at '/var/tmp/portage/app-emulation/qemu-
77 > softmmu-0.9.0/temp/build.log'.
78 >
79 >
80 > Can anyone help me?
81 Hi,
82 Try disabling both '-mmx -sse' USE flags.
83 They are not regular optional USE-flags (only 'alsa kqemu sdl' are).
84 So two ways to go:
85 1.make a custom ebuild (/usr/local/portage/...) and disable 'mmx sse'.
86 2.use bashrc (custom CFLAGS) - check ML, Google etc.
87 2a.use 'paludis' :-)
88 What's your 'march' (in /etc/make.conf) ?
89 HTH. Rumen
90 --
91 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Qemu compilation fails "Marco Antônio da Veiga" <maveiga@×××××.com>