pkgsrc-Users archive

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

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




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


Home | Main Index | Thread Index | Old Index