• Strange build failures on mips64el

    From Olek Wojnar@21:1/5 to olek@debian.org on Mon Jan 11 07:20:01 2021
    XPost: linux.debian.ports.mips

    Greetings MIPS porters, (and adding Java Team as well)

    On Thu, Dec 24, 2020 at 11:31 PM Olek Wojnar <olek@debian.org> wrote:

    Hello again MIPS porters,

    On Wed, Nov 11, 2020 at 8:35 PM YunQiang Su <wzssyqa@gmail.com> wrote:

    Olek Wojnar <olek@debian.org> 于2020年11月12日周四 上午3:57写道: >> >
    Dear MIPS porters,

    I've had my bazel-bootstrap package fail to build twice on mips64el
    [1]. The error I'm seeing is: "The system is out of resources." This has
    happened on two different buildds so it seems more than a coincidence. Do
    any of you have an idea of what might be causing this? The package *should* >> build on all 64-bit architectures and it builds successfully on all other
    64-bit architectures in Debian.


    Let me have a try on my Loongson machines.


    Any luck figuring out what's going on? I just had another strange failure
    for gRPC-java [2] and I don't really know what to make of it either.


    Good news, the grpc-java issue is now fixed.


    I'd appreciate any advice. If this is a bug, which package should I file
    it against? Thanks!


    Unfortunately, I'm still not able to build bazel-bootstrap on this architecture. I added memory to the Java build [3] so it no longer fails
    from running out of heap space. However, it now fails with an exception (Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1).

    I created a Dockerfile [4] that will allow for an easy demonstration of the problem from any host architecture.

    [2]
    https://buildd.debian.org/status/fetch.php?pkg=grpc-java&arch=mips64el&ver=1.26.0%2Bds-1&stamp=1608806312&raw=0



    Thanks in advance for any insights!

    -Olek

    PS I'm not subscribed to this list, please copy me on replies.

    [1]
    https://buildd.debian.org/status/logs.php?pkg=bazel-bootstrap&ver=3.4.0%2Bds-2&arch=mips64el


    I'd appreciate any insights. Thanks!

    -Olek (subscribed to both Bazel and Java lists so no need to copy me if
    you're copying either of those lists)

    [3] https://salsa.debian.org/bazel-team/bazel-bootstrap/-/commit/7ddf230cc1e68caadacfc7bc6b9401f8bff3588e
    [4] https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv/debian/mips64el.Dockerfile

    <div dir="ltr"><div>Greetings MIPS porters, (and adding Java Team as well)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 24, 2020 at 11:31 PM Olek Wojnar &lt;<a href="mailto:olek@debian.org">olek@debian.org</a>&gt; wrote:
    <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello again MIPS porters,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">
    On Wed, Nov 11, 2020 at 8:35 PM YunQiang Su &lt;<a href="mailto:wzssyqa@gmail.com" target="_blank">wzssyqa@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-
    left:1ex">Olek Wojnar &lt;<a href="mailto:olek@debian.org" target="_blank">olek@debian.org</a>&gt; 于2020年11月12日周四 上午3:57写道:<br>
    &gt;<br>
    &gt; Dear MIPS porters,<br>
    &gt;<br>
    &gt; I&#39;ve had my bazel-bootstrap package fail to build twice on mips64el [1]. The error I&#39;m seeing is: &quot;The system is out of resources.&quot; This has happened on two different buildds so it seems more than a coincidence. Do any of you have
    an idea of what might be causing this? The package *should* build on all 64-bit architectures and it builds successfully on all other 64-bit architectures in Debian.<br>
    &gt;<br>

    Let me have a try on my Loongson machines.<br></blockquote><div><br></div><div>Any luck figuring out what&#39;s going on? I just had another strange failure for gRPC-java [2] and I don&#39;t really know what to make of it either.</div></div></div></
    blockquote><div><br></div><div>Good news, the grpc-java issue is now fixed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote">
    <div>I&#39;d appreciate any advice. If this is a bug, which package should I file it against? Thanks!<br></div></div></div></blockquote><div><br></div><div>Unfortunately, I&#39;m still not able to build bazel-bootstrap on this architecture. I added
    memory to the Java build [3] so it no longer fails from running out of heap space. However, it now fails with an exception (Exception in thread &quot;main&quot; java.lang.ArrayIndexOutOfBoundsException: -1).</div><div><br></div><div>I created a
    Dockerfile [4] that will allow for an easy demonstration of the problem from any host architecture.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"
    <div class="gmail_quote"><div></div><div>[2] <a href="https://buildd.debian.org/status/fetch.php?pkg=grpc-java&amp;arch=mips64el&amp;ver=1.26.0%2Bds-1&amp;stamp=1608806312&amp;raw=0" target="_blank">https://buildd.debian.org/status/fetch.php?pkg=grpc-
    java&amp;arch=mips64el&amp;ver=1.26.0%2Bds-1&amp;stamp=1608806312&amp;raw=0</a> <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

    &gt; Thanks in advance for any insights!<br>
    &gt;<br>
    &gt; -Olek<br>
    &gt;<br>
    &gt; PS I&#39;m not subscribed to this list, please copy me on replies.<br> &gt;<br>
    &gt; [1] <a href="https://buildd.debian.org/status/logs.php?pkg=bazel-bootstrap&amp;ver=3.4.0%2Bds-2&amp;arch=mips64el" rel="noreferrer" target="_blank">https://buildd.debian.org/status/logs.php?pkg=bazel-bootstrap&amp;ver=3.4.0%2Bds-2&amp;arch=mips64el</
    </blockquote></div></div></blockquote><div><br></div><div> I&#39;d appreciate any insights. Thanks!</div><div><br></div><div>-Olek (subscribed to both Bazel and Java lists so no need to copy me if you&#39;re copying either of those lists)</div><div><
    </div><div>[3] <a href="https://salsa.debian.org/bazel-team/bazel-bootstrap/-/commit/7ddf230cc1e68caadacfc7bc6b9401f8bff3588e">https://salsa.debian.org/bazel-team/bazel-bootstrap/-/commit/7ddf230cc1e68caadacfc7bc6b9401f8bff3588e</a></div><div>[4] <a
    href="https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv/debian/mips64el.Dockerfile">https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv/debian/mips64el.Dockerfile</a></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Olek Wojnar@21:1/5 to olek@debian.org on Fri Jan 22 07:50:01 2021
    XPost: linux.debian.ports.mips

    Hello MIPS and Java teams,

    On Mon, Jan 11, 2021 at 12:57 AM Olek Wojnar <olek@debian.org> wrote:

    Greetings MIPS porters, (and adding Java Team as well)

    I created a Dockerfile [4] that will allow for an easy demonstration of
    the problem from any host architecture.


    Ok, despite some great help from upstream, we're a bit stumped. We've
    solved all the previous problems but we're now seeing the following error:
    [5]
    Exception in thread "main" java.io.IOException: Cannot clean output
    directory 'bazel-out/mips64-dbg/bin/src/main/java/com/google/devtools/build/lib/bazel/_javac/BazelServer/BazelServer_temp/native_headers'
    <snip>
    Caused by: java.nio.file.FileSystemException: bazel-out/mips64-dbg/bin/src/main/java/com/google/devtools/build/lib/bazel/_javac/BazelServer/BazelServer_temp/native_headers:
    failed to delete one or more files; see suppressed exceptions for details <snip>
    Suppressed: java.nio.file.FileSystemException: native_headers: Is a
    directory
    <snip> java.base/sun.nio.fs.UnixSecureDirectoryStream.implDelete(UnixSecureDirectoryStream.java:207)

    So it sounds like it does not want to delete the directory because it's a directory...??? Is this a Java bug on the mips64el platform? Or is there something else we're missing here. As much as I'd love to get this working
    on mips for bullseye, I'm out of my depth here and would really love some
    help!

    Thanks in advance!

    -Olek


    [4] https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv-2/debian/mips64el.Dockerfile

    [5] https://gist.githubusercontent.com/olekw/d46a31af43912e995ab50356dd39c7f8/raw/827a9c3ca1bf6e22bd62ed58d8b2e4a6fcad38d1/mips64el-bazel-fail

    <div dir="ltr"><div dir="ltr">Hello MIPS and Java teams,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 11, 2021 at 12:57 AM Olek Wojnar &lt;<a href="mailto:olek@debian.org" target="_blank">olek@debian.org</a>&gt; wrote:<
    </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Greetings MIPS porters, (and adding Java Team as well)</div><div class="gmail_quote"><div dir="ltr"
    class="gmail_attr"><br></div><div>I created a Dockerfile [4] that will allow for an easy demonstration of the problem from any host architecture.</div></div></div></blockquote><div><br></div><div>Ok, despite some great help from upstream, we&#39;re a bit
    stumped. We&#39;ve solved all the previous problems but we&#39;re now seeing the following error: [5]</div><div>Exception in thread &quot;main&quot; java.io.IOException: Cannot clean output directory &#39;bazel-out/mips64-dbg/bin/src/main/java/com/google/
    devtools/build/lib/bazel/_javac/BazelServer/BazelServer_temp/native_headers&#39;</div><div>&lt;snip&gt;</div><div>Caused by: java.nio.file.FileSystemException: bazel-out/mips64-dbg/bin/src/main/java/com/google/devtools/build/lib/bazel/_javac/BazelServer/
    BazelServer_temp/native_headers: failed to delete one or more files; see suppressed exceptions for details<br></div><div>&lt;snip&gt;</div><div>Suppressed: java.nio.file.FileSystemException: native_headers: Is a directory</div><div>&lt;snip&gt;</div><div>
    java.base/sun.nio.fs.UnixSecureDirectoryStream.implDelete(UnixSecureDirectoryStream.java:207)</div><div><br></div><div>So it sounds like it does not want to delete the directory because it&#39;s a directory...??? Is this a Java bug on the mips64el
    platform? Or is there something else we&#39;re missing here. As much as I&#39;d love to get this working on mips for bullseye, I&#39;m out of my depth here and would really love some help!</div><div><br></div><div>Thanks in advance!</div><div><br></div><
    -Olek</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;
    border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div></div></div></blockquote><div>[4] <a href="https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv-2/debian/mips64el.Dockerfile"
    https://salsa.debian.org/bazel-team/bazel-bootstrap/-/blob/olek-mips-riscv-2/debian/mips64el.Dockerfile</a></div></div></div></blockquote><div>[5] <a href="https://gist.githubusercontent.com/olekw/d46a31af43912e995ab50356dd39c7f8/raw/
    827a9c3ca1bf6e22bd62ed58d8b2e4a6fcad38d1/mips64el-bazel-fail">https://gist.githubusercontent.com/olekw/d46a31af43912e995ab50356dd39c7f8/raw/827a9c3ca1bf6e22bd62ed58d8b2e4a6fcad38d1/mips64el-bazel-fail</a></div><div> </div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)