Am 18.08.2018 um 22:51 schrieb Howard Spoelstra: > On Sat, Aug 18, 2018 at 9:09 PM, Stefan Weil <s...@weilnetz.de> 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. Stefan
signature.asc
Description: OpenPGP digital signature