All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Burton, Ross" <ross.burton@intel.com>
To: Bryan Evenson <bevenson@melinkcorp.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Errors building with Windows Subsystem for Linux (aka Bash on Ubuntu on Windows)
Date: Wed, 27 Sep 2017 14:05:35 +0100	[thread overview]
Message-ID: <CAJTo0LavAJr8D+kuQ_6FkjA-D-XotT7BcrCA3W7bv_HL2EpuxA@mail.gmail.com> (raw)
In-Reply-To: <DM5PR05MB2954E471F11F1ADF08E544CABB780@DM5PR05MB2954.namprd05.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]

On 27 September 2017 at 13:57, Bryan Evenson <bevenson@melinkcorp.com>
wrote:

>
> Feel free to compress and email it directly to me, but simply grepping for
> EINVAL (invalid argument error) might be enough.
>
>
>
> I did a search on EINVAL and I got a bunch of entries of that look like
> this:
>
>
>
>   linkat(AT_FDCWD, “<source_full_path>”, AT_FDCWD, “<dest_full_path>”, 0)
> = -1 EINVAL (Invalid argument)
>
>
>
> I checked a few entries by doing a stat on the source and destination.  In
> each case, the source file exists at the specified path, was owned by the
> user account with which I’m doing the build, and had access rights of
> 0644.  Also in each case, the destination file did not exist but the
> destination directory did exist, the destination directory was owned by the
> user account with which I’m doing the build, and the destination directory
> had access rights of 0755.  From reading the man page for linkat, linkat
> should only return EINVAL if the flags argument is invalid, and 0 should be
> a valid value for flags.
>
>
>
> I think there may be something missing from WSL’s implementation of
> linkat.  I am doing OPKG packages, so I’m guessing there is something
> different about the resulting function calls in the libc-package class as
> opposed to the package_ipk class.  I think I may enable the other package
> types to see if it is as successfully with RPMs and DEB packages.  I’m also
> going to see if there is an easier way to reproduce the problem to report
> the issue to Microsoft.
>

Good digging.  At least you can replicate it on demand, and have a strace
showing it.  This bit of packaging happens before the rpm/opkg/deb specific
code, so changing the packaging format won't help.

Ross

[-- Attachment #2: Type: text/html, Size: 3215 bytes --]

  reply	other threads:[~2017-09-27 13:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-26 17:16 Errors building with Windows Subsystem for Linux (aka Bash on Ubuntu on Windows) Bryan Evenson
2017-09-26 19:12 ` Burton, Ross
2017-09-26 21:01   ` Bryan Evenson
2017-09-26 22:15     ` Burton, Ross
2017-09-27 12:57       ` Bryan Evenson
2017-09-27 13:05         ` Burton, Ross [this message]
2017-09-27 20:59           ` Bryan Evenson
2017-09-27 22:42             ` Burton, Ross
2017-09-28 13:28               ` Bryan Evenson
2017-09-29 15:48                 ` Mark Hatle
2017-09-26 20:31 ` Josef Holzmayr
2017-09-29 10:07   ` Josef Holzmayr
2017-09-29 10:43     ` Systemd Journal log persistence Ayoub Zaki
2017-09-29 14:01 ` Errors building with Windows Subsystem for Linux (aka Bash on Ubuntu on Windows) Dominig ar Foll (Intel Open Source)
2017-10-01  8:20   ` Alexander Kanavin
2017-10-01  8:30     ` Alex Lennon
2017-10-01  8:52       ` Alex Lennon
2017-10-02 20:48     ` Bryan Evenson

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=CAJTo0LavAJr8D+kuQ_6FkjA-D-XotT7BcrCA3W7bv_HL2EpuxA@mail.gmail.com \
    --to=ross.burton@intel.com \
    --cc=bevenson@melinkcorp.com \
    --cc=yocto@yoctoproject.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.