[yocto] meta-mingw: unable to run executables on Windows

Burton, Ross ross.burton at intel.com
Thu Nov 15 01:16:56 PST 2018


Good work!

Can we have a patch from someone please?

Ross

On Thu, 15 Nov 2018 at 08:35, Samuli Piippo <samuli.piippo at gmail.com> wrote:

> On Thu, 15 Nov 2018 at 07:01, Khem Raj <raj.khem at gmail.com> wrote:
> >
> > On Wed, Nov 14, 2018 at 8:08 PM Joshua Watt <jpewhacker at gmail.com>
> wrote:
> > >
> > > On Wed, Nov 14, 2018 at 8:41 PM Mark Hatle <mark.hatle at windriver.com>
> wrote:
> > > >
> > > > On 11/14/18 9:54 AM, Mark Hatle wrote:
> > > > > On 11/13/18 3:56 AM, Samuli Piippo wrote:
> > > > >> Hi,
> > > > >>
> > > > >> I've just upgraded poky and meta-mingw layers from sumo to thud
> and as a result
> > > > >> a lot of the executables in the toolchain no longer run correctly
> on Windows.
> > > > >
> > > > > Which version of windows?
> > > > >
> > > > >> I've built meta-toolchain for SDKMACHINE=x86_64-mingw32. From
> that, gcc/g++ work
> > > > >> fine on Windows 10, but ar, as, objdumb, and others hang for ~30
> seconds and
> > > > >> exit without any output.
> > > > >>
> > > > >> Has anyone else seen this?
> > > > >
> > > > > I've run a toolchain made on mingw after sumo, but before thud's
> release.  I'll
> > > > > see if I can find a VM and give it a try later today.
> > > >
> > > > I'm running on Windows 7 for my testing (ya, I know old.. but it's
> what I got.)
> > > >
> > > > Can you try adding the following to your conf/local.conf:
> GCCPIE_mingw32 = ""
> >
> > this will be effective just for SDK and native versions I hope, but in
> > cases if we
> > have this override also applicable for target then this fix is not
> > correct. We have
> > to keep using it for target builds.
> >
> > > >
> > > > I found that the SDK was not working properly here as well, but only
> binutils.
> > > > The above seems to fix the issue.  (You do have to rebuild your SDK.)
> > >
> > > I also saw this issue on Windows 7, and your described fix corrected
> > > it (Thanks!). On the plus side, the automated SDK testing that I'm
> > > working on discovered it as well (e.g. the tests failed because of
> > > it), which means that the tests are working and should help prevent
> > > issues like this in the future once I get it merged.
> > >
>
> bisect finished last night and the winner was: commit
> 491082c56ce34f3fd644f8d4457ccd52af951087
> poky.conf: Enable security flags+pie by defaultEnable security
> flags+pie by default
>
> Adding GCCPIE_mingw32 = "" fixes this also for Windows 10
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181115/56816bef/attachment.html>


More information about the yocto mailing list