pkgsrc-Users archive

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

Re: qemu build error on netbsd-5: can't find a register in class 'GENERAL_REGS' while reloading 'asm'



Hubert Feyrer wrote:

> 
> Trying to build pkgsrc/emulators/qemu on NetBSD 5.0_BETA, I get:
> 
>       ...
>       gmake -C i386-softmmu all
>       gmake[1]: Entering directory
>       `/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/i386-softmmu'
>       gcc -Wall -O2 -g -fno-strict-aliasing -mpreferred-stack-boundary=2
>       -fomit-frame-pointer -falign-functions=0 -fno-gcse -fno-reorder-blocks
>       -fno-optimize-sibling-calls  -I. -I..
>       -I/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/target-i386
>       -I/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0 -D_GNU_SOURCE
>       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>       -I/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/fpu -DHAS_AUDIO
>       -I/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/slirp -c -o op.o
>       /tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/target-i386/op.c
>       
> /tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/target-i386/ops_template_mem.h:
>       In function 'op_shlb_user_T0_T1_cc':
> ===>  ../softmmu_header.h:207: error: can't find a register in class 
> 'GENERAL_REGS' while reloading 'asm'
>       gmake[1]: *** [op.o] Error 1
>       gmake[1]: Leaving directory 
> `/tmp/pkgsrc/emulators/qemu/work.vmnetbsd/qemu-0.9.0/i386-softmmu'
>       gmake: *** [subdir-i386-softmmu] Error 2
>       *** Error code 2
> 
> The code in softmmu_header.h around line 207 is:
> 
>     205  static inline void glue(glue(st, SUFFIX), MEMSUFFIX)(target_ulong 
> ptr, R
> ES_TYPE v)
>     206  {
>     207      asm volatile ("movl %0, %%edx\n"
>     208                    "movl %0, %%eax\n"
>     209                    "shrl %3, %%edx\n"
>     210                    "andl %4, %%eax\n"
>     211                    "andl %2, %%edx\n"
> 
> Anyone got a clue what'swrong here, and how to fix?
> 
> 
>   - Hubert

Does this help?

===================================================================
RCS file: /cvsroot/pkgsrc/emulators/qemu/Makefile,v
retrieving revision 1.51
diff -u -r1.51 Makefile
--- Makefile    4 Aug 2008 06:55:39 -0000       1.51
+++ Makefile    16 Dec 2008 23:41:38 -0000
@@ -24,7 +24,7 @@
 
 GCC_REQD+=             3.0
 
-.if !empty(MACHINE_PLATFORM:MNetBSD-4*)
+.if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*)
 USE_PKGSRC_GCC=        yes
 .endif
 

--
When in doubt, use brute force.

Adam Hoka <ahoka%NetBSD.org@localhost>
Adam Hoka <ahoka%MirBSD.de@localhost>
Adam Hoka <adam.hoka%gmail.com@localhost>

Attachment: pgpxHwgMwCne_.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index