On 07/04/20 11:57, Philippe Mathieu-Daudé wrote:
Odd...

Assuming you are using gcc, have you tried 'configure --host-cc=gcc'?
OK, so I changed it from

# /opt/csw/bin/bash ./configure --cc=gcc  --extra-cflags="-m32"


to

# /opt/csw/bin/bash ./configure --cc=gcc  --extra-cflags="-m32" --host-cc=gcc

and then reran gmake -j16.   That seems to have fixed it.  ppc64 is there now:

root@hemlock:~/qemu-5.0.0# ppc64-softmmu/qemu-system-ppc64 -machine help
Supported machines are:
40p                  IBM RS/6000 7020 (40p)
bamboo               bamboo
g3beige              Heathrow based PowerMAC
mac99                Mac99 based PowerMAC
mpc8544ds            mpc8544ds
... and a bunch more ...
root@hemlock:~/qemu-5.0.0#


And I also have the right stuff in x86_64-softmmu.  So I tried running my Win XP image and it started up OK, opening the QEMU window and displaying the XP logo.  But unfortunately it's really really slow, like 20 minutes just to get to the XP desktop appearing.  That takes about 2 minutes in QEMU 2.12 on the same host hardware.  I had been hoping 5.0 would be faster.  Is there a reason for it to be an order of magnitude slower?  I'm saying:

root@hemlock:~/qemu-5.0.0/x86_64-softmmu# ./qemu-system-x86_64  -m 2047  -usb -device usb-tablet -smp 3 -device rtl8139,netdev=net0 -netdev user,id=net0 -boot d -hda  /bkpool/qemuimages/XP.img -cdrom /bkpool/qemuimages/xp.iso &

But in any case, I will now cautiously claim  that I have succeeded in building QEMU 5.0 in Solaris 11.4 SPARC.  Thanks very much to everyone for all your help.

            - Michele