[Top][All Lists]

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

Re: [Qemu-ppc] [Qemu-devel] Bugs when cross-compiling qemu for Windows w

From: Stefan Weil
Subject: Re: [Qemu-ppc] [Qemu-devel] Bugs when cross-compiling qemu for Windows with mingw 8.1, executable doesn't run
Date: Sun, 19 Aug 2018 10:49:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Am 18.08.2018 um 22:51 schrieb Howard Spoelstra:
> On Sat, Aug 18, 2018 at 9:09 PM, Stefan Weil <address@hidden> wrote:
>> Am 17.08.2018 um 09:32 schrieb David Hildenbrand:
>>> No being a win32/mingw expert, Stefan any idea?
>> I'd try a debug build (configure [...] --enable-debug).
>> My installers (https://qemu.weilnetz.de/w64/) were built with
>> x86_64-w64-mingw32-gcc (GCC) 6.3.0 20170516 (from Debian Stretch).
>> Howard, perhaps you can try whether they show the same runtime SIGSEGV.
>> When I run your command line with a dummy disk image, OpenBIOS boots fine.
>> Kind regards,
>> Stefan
> The error I reported already came from a debug build.
> Other builds with less recent mingw (7.3 in Fedora 28) do not SIGSEGV,
> neither do Stefan's.
> I can confirm the strncpy warnings are gone using Philippe's patches.
> Best,
> Howard

I can now reproduce the runtime problem (although I get a different error):

Debian experimental provides x86_64-w64-mingw32-gcc (GCC) 8.2-win32
20180726. I now used that compiler for my build. In addition to the
compiler errors reported by Howard, I also get similar errors for
hw/acpi/core.c and hw/acpi/aml-build.c.

The resulting binary starts running OpenBIOS, but then it fails (tested
with wine):

./configure --cross-prefix=x86_64-w64-mingw32- && make

dd if=/dev/zero of=9.2.qcow2 bs=1M count=32

wine ppc-softmmu/qemu-system-ppc.exe -L pc-bios -boot c -m 256 -M
"mac99,via=pmu" -prom-env "boot-args=-v" -prom-env "auto-boot?=true"
-prom-env "vga-ndrv?=true" -hda 9.2.qcow2 -netdev "user,id=network01"
-device "sungem,netdev=network01" -d int

*** stack smashing detected ***:  terminated
wine: Unhandled illegal instruction at address 0x68ac2fe0 (thread 002c),

QEMU for Linux with gcc 8.2 works fine.


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]