All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Howard Spoelstra <hsp.cat7@gmail.com>
Cc: qemu-ppc <qemu-ppc@nongnu.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"qemu-devel qemu-devel" <qemu-devel@nongnu.org>
Subject: Re: qemu-system-ppc 5.0 rc1 crashing on Windows
Date: Thu, 02 Apr 2020 14:20:45 +0100	[thread overview]
Message-ID: <87h7y2dnwy.fsf@linaro.org> (raw)
In-Reply-To: <CABLmASEBUzdzu8wt-2YbcntOAfNbsVm7W=W-Uk85ieu1757pMA@mail.gmail.com>


Howard Spoelstra <hsp.cat7@gmail.com> writes:

> On Thu, Apr 2, 2020 at 12:47 PM Philippe Mathieu-Daudé <philmd@redhat.com>
> wrote:
>
>> Cc'ing the persons referenced in the commit you referred,
>> who happened to be chatting about this issue few hours ago on IRC.
>>
>>
> Thanks, adding --disable-pie to configure solves this issue, but I guess
> the default detection should work ;-)

Could you try the following patch:

  Subject: [PATCH for-5.0] configure: Add -Werror to PIE probe
  Date: Wed,  1 Apr 2020 14:47:56 -0700
  Message-Id: <20200401214756.6559-1-richard.henderson@linaro.org>

which fixed the win mxe cross compile failures.

>
> Best,
> Howard
>
>
>
>> On 4/2/20 11:28 AM, Howard Spoelstra wrote:
>> > Hi,
>> >
>> > I just compiled qemu-system-ppc for Windows, using native msys2 on
>> > Windows 10 64 bit and the 64 bit mingw cross compiler on Fedora 31. Both
>> > create executables that crash:
>> >
>> > qemu-system-ppc.exe -L pc-bios -boot c -m 512 -M mac99,via=pmu -h
>> > da C:\Mac-disks\9.2.img
>> > Exception code=0xc0000005 flags=0x0 at 0x00007FFB2A602078. Access
>> > violation - attempting to write data at address 0x00000000034C76EC
>> >
>> > I bisected this down to:
>> >
>> > d2cd29e30736afd4a1e8cac3cf4da360bbc65978 is the first bad commit
>> > commit d2cd29e30736afd4a1e8cac3cf4da360bbc65978
>> > Author: Richard Henderson <richard.henderson@linaro.org
>> > <mailto:richard.henderson@linaro.org>>
>> > Date:   Tue Dec 17 13:47:37 2019 -1000
>> >
>> >      configure: Do not force pie=no for non-x86
>> >
>> >      PIE is supported on many other hosts besides x86.
>> >
>> >      The default for non-x86 is now the same as x86: pie is used
>> >      if supported, and may be forced via --enable/--disable-pie.
>> >
>> >      The original commit (40d6444e91c) said:
>> >
>> >        "Non-x86 are not changed, as they require TCG changes"
>> >
>> >      but I think that's wrong -- there's nothing about PIE that
>> >      affects TCG one way or another.
>> >
>> >      Tested on aarch64 (bionic) and ppc64le (centos 7) hosts.
>> >
>> >      Tested-by: Alex Bennée <alex.bennee@linaro.org
>> > <mailto:alex.bennee@linaro.org>>
>> >      Reviewed-by: Alex Bennée <alex.bennee@linaro.org
>> > <mailto:alex.bennee@linaro.org>>
>> >      Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com
>> > <mailto:philmd@redhat.com>>
>> >      Signed-off-by: Richard Henderson <richard.henderson@linaro.org
>> > <mailto:richard.henderson@linaro.org>>
>> >
>> > Please note that I tried again after applying patch
>> > https://patchwork.ozlabs.org/patch/1265368/ However, this has not
>> solved
>> > my issue.
>> >
>> > Best,
>> > Howard
>> >
>> >
>>
>>


-- 
Alex Bennée


  reply	other threads:[~2020-04-02 13:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02  9:28 qemu-system-ppc 5.0 rc1 crashing on Windows Howard Spoelstra
2020-04-02 10:47 ` Philippe Mathieu-Daudé
2020-04-02 10:56   ` Howard Spoelstra
2020-04-02 13:20     ` Alex Bennée [this message]
2020-04-02 14:02       ` Howard Spoelstra
2020-04-02 14:58         ` Alex Bennée
2020-04-02 17:15           ` Howard Spoelstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h7y2dnwy.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=hsp.cat7@gmail.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.