<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Based on forum discussion at
<a class="moz-txt-link-freetext" href="https://forum.openwrt.org/t/errors-when-using-image-builder-for-ipq806x/39992">https://forum.openwrt.org/t/errors-when-using-image-builder-for-ipq806x/39992</a></p>
    <p>I looked at the packages buildbot faillogs for OpenWrt master and
      the package download directories, and noticed that quite a lot of
      the core OpenWrt packages fail to build in the buildbot at the
      moment, like ubox, ubus, firewall, uci, netifd... and they are
      also missing from the snapshot download directories.</p>
    <p>Example failllogs:</p>
    <p><a class="moz-txt-link-freetext" href="http://downloads.openwrt.org/snapshots/faillogs/arm_cortex-a15_neon-vfpv4/base/">http://downloads.openwrt.org/snapshots/faillogs/arm_cortex-a15_neon-vfpv4/base/</a></p>
    <p><a class="moz-txt-link-freetext" href="http://downloads.openwrt.org/snapshots/faillogs/mips_24kc/base/">http://downloads.openwrt.org/snapshots/faillogs/mips_24kc/base/</a></p>
    <br>
    <p>Many of the error are CMake errors referrefing into ubox related
      stuff, like:<br>
    </p>
    <pre>UBUS:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
blob_library
    linked by target "cli" in directory /builder/mips_24kc/build/sdk/build_dir/target-mips_24kc_musl/ubus-2018-10-06-221ce7e7
    linked by target "ubusd" in directory /builder/mips_24kc/build/sdk/build_dir/target-mips_24kc_musl/ubus-2018-10-06-221ce7e7
    linked by target "server" in directory /builder/mips_24kc/build/sdk/build_dir/target-mips_24kc_musl/ubus-2018-10-06-221ce7e7/examples
ubox_include_dir
</pre>
    <p><br>
    </p>
    <p>Netifd has a somewhat clear reason for failure:</p>
    <pre>In file included from /builder/mips_24kc/build/sdk/build_dir/target-mips_24kc_musl/netifd-2019-06-15-9932ed02/main.c:22:0:
/builder/mips_24kc/build/sdk/build_dir/target-mips_24kc_musl/netifd-2019-06-15-9932ed02/netifd.h:23:10: fatal error: libubox/uloop.h: No such file or directory
 #include <libubox/uloop.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
</pre>
    <p><br>
    </p>
    <p>The single-package errors are non-fatal in the phase2 buildbot,
      so these have not surfaced earlier. And this apparently does not
      impact the phase1 buildbot, which apaprently seems to compile the
      packages ok and include them in the firmware images.</p>
    <p>Based on that I am unsure if this is about phase2 buildbot trying
      to build packages that it shouldn't, or something else.</p>
    <p>I can't see anything obvious in the commit logs in the past few
      days that could have caused this. One possibiility is still the
      scripts/config change two weeks ago, which affected dependency
      calculations.</p>
    <p>Hmmm. <br>
    </p>
    <p>While writing this, I noticed that while other packages seem to
      fail mainly for ubox related reasons, libubox itself seems to fail
      due to lua related stuff. Maybe the lua / lua5.1 rename and
      version inclusion in the packaged file names is causing havoc.
      cc'ing rmilecki<br>
    </p>
    <p>
<a class="moz-txt-link-freetext" href="http://downloads.openwrt.org/snapshots/faillogs/arm_cortex-a15_neon-vfpv4/base/libubox/compile.txt">http://downloads.openwrt.org/snapshots/faillogs/arm_cortex-a15_neon-vfpv4/base/libubox/compile.txt</a></p>
    <p>Reference to commit:</p>
    <p><a class="moz-txt-link-freetext" href="https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4">https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=fe59b46ca7e0716e030a5d7cb0da9b4b6a79a8f4</a></p>
    <p><br>
    </p>
  </body>
</html>