Problem building gmp-5.0.2 on qemu-kvm

Torbjorn Granlund tg at
Thu Dec 8 14:47:58 CET 2011

Alexandros Kosiaris <alex at> writes:

  The arguments passed to qemu-kvm were definitely non processor specific.
  You can find them below in case it helps.
  /usr/bin/kvm -name snf-1119 -m 1024 -smp 1 -pidfile snf-1119 -daemonize
  -boot c -drive file=snf-1119:0,format=raw,if=virtio,boot=on,cache=none
  -usb -usbdevice tablet -monitor unix:snf-1119.monitor,server,nowait
  -serial none -netdev type=tap,id=netdev0,fd=10 -device
  Also the output of cpuid2 (I only attach it once since there is no
  difference in the output whether in freebsd or debian) is below.
  snf-1119:~$ gcc cpuid2.c -o cpuid2
  root at snf-1119:~$ ./cpuid2
  Highest value understood by CPUID: 4
  Highest extended value understood by CPUID: 8000000a
  Family   6
  Model    2
  Stepping 3

So qemu is telling GMP this is a 32bit processor.  GMP is DTRT.

You perhaps need to tell (your version of) qemu to emulate a 64-but
processor?  IIRC, the -M option can be used for that.

Please follow up to the list with the outcome.


More information about the gmp-bugs mailing list