<div dir="ltr">Alpine Linux has hit this and they just build a custom getconf binary as part of their musl build;<div><br></div><div><a href="https://git.alpinelinux.org/cgit/aports/tree/main/musl">https://git.alpinelinux.org/cgit/aports/tree/main/musl</a><br></div><div><br></div><div>(also getent)</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 March 2018 at 14:23, Bruce Ashfield <span dir="ltr">&lt;<a href="mailto:bruce.ashfield@windriver.com" target="_blank">bruce.ashfield@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I worked through some problems to test with musl:<br>
<br>
  - uprev&#39;d linux-libc-headers --&gt; refresh / change of the musl ethhdr<br>
    patch<br>
<br>
  - worked around the binutils link issue and libsystemd<br>
<br>
So I was able to assemble kernel-devsrc on an image with musl, and now<br>
I&#39;m back to the problem that lead me to add glibc-utils to the RDEPENDS<br>
of kernel-devsrc:<br>
<br>
---------<br>
<br>
root@qemux86-64:/lib/modules/4<wbr>.14.19-yocto-standard/build# make ARCH=x86 scripts<br>
make: getconf: Command not found<br>
make: getconf: Command not found<br>
make: getconf: Command not found<br>
  HOSTCC  scripts/basic/fixdep<br>
  HOSTCC  scripts/basic/bin2c<br>
make[1]: getconf: Command not found<br>
make[1]: getconf: Command not found<br>
make[1]: getconf: Command not found<br>
  HOSTCC  scripts/kconfig/conf.o<br>
  SHIPPED scripts/kconfig/zconf.tab.c<br>
  SHIPPED scripts/kconfig/zconf.lex.c<br>
  HOSTCC  scripts/kconfig/zconf.tab.o<br>
  HOSTLD  scripts/kconfig/conf<br>
scripts/kconfig/conf  --silentoldconfig Kconfig<br>
  WRAP    arch/x86/include/generated/asm<wbr>/clkdev.h<br>
  WRAP    arch/x86/include/generated/asm<wbr>/dma-contiguous.h<br>
  WRAP    arch/x86/include/generated/asm<wbr>/early_ioremap.h<br>
  WRAP    arch/x86/include/generated/asm<wbr>/mcs_spinlock.h<br>
  WRAP    arch/x86/include/generated/asm<wbr>/mm-arch-hooks.h<br>
  CC      scripts/mod/empty.o<br>
  HOSTCC  scripts/mod/mk_elfconfig<br>
  MKELF   scripts/mod/elfconfig.h<br>
  HOSTCC  scripts/mod/modpost.o<br>
  CC      scripts/mod/devicetable-offset<wbr>s.s<br>
  CHK     scripts/mod/devicetable-offse<wbr>ts.h<br>
  UPD     scripts/mod/devicetable-offse<wbr>ts.h<br>
  HOSTCC  scripts/mod/file2alias.o<br>
  HOSTCC  scripts/mod/sumversion.o<br>
  HOSTLD  scripts/mod/modpost<br>
  HOSTCC  scripts/kallsyms<br>
  HOSTCC  scripts/conmakehash<br>
  HOSTCC  scripts/recordmcount<br>
  HOSTCC  scripts/sortextable<br>
root@qemux86-64:/lib/modules/4<wbr>.14.19-yocto-standard/build#<br>
<br>
----------------<br>
<br>
I&#39;ve added Khem to the cc .. Khem: what in the muslc world would<br>
provide &#39;getconf&#39; ? I didn&#39;t see it when glancing through the packaging.<br>
<br>
Bruce<span class=""><br>
<br>
On 2018-03-01 4:37 AM, Burton, Ross wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also fails on musl:<br>
<br>
ERROR: Nothing RPROVIDES &#39;glibc-utils&#39; (but /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-musl/<wbr>build/meta/recipes-kernel/<wbr>linux/<a href="http://kernel-devsrc.bb" rel="noreferrer" target="_blank">kernel-devsrc.bb</a> &lt;<a href="http://kernel-devsrc.bb" rel="noreferrer" target="_blank">http://kernel-devsrc.bb</a>&gt; RDEPENDS on or otherwise requires it)<br>
<br>
Ross<div><div class="h5"><br>
<br>
On 1 March 2018 at 08:28, Maxin B. John &lt;<a href="mailto:maxin.john@intel.com" target="_blank">maxin.john@intel.com</a> &lt;mailto:<a href="mailto:maxin.john@intel.com" target="_blank">maxin.john@intel.com</a>&gt;&gt; wrote:<br>
<br>
    Hi,<br>
<br>
    On Wed, Feb 28, 2018 at 02:20:45PM -0500, Bruce Ashfield wrote:<br>
     &gt; The existing kernel-devsrc package starts with a full copy of the<br>
    kernel<br>
     &gt; source and then starts to strip out elements that are not required.<br>
     &gt;<br>
     &gt; This results in extra time (I/O) and extra space being taken up<br>
    in the<br>
     &gt; final package. The main purpose of the kernel-devsrc package has<br>
    been to<br>
     &gt; build modules against the running kernel, not to include a full<br>
    copy of<br>
     &gt; the source code for re-building the kernel. The end result was a<br>
     &gt; 600M kernel-devsrc package.<br>
     &gt;<br>
     &gt; This restructuring of the package uses an approach similar to other<br>
     &gt; distros, where the kernel-devsrc package is for building against the<br>
     &gt; running kernel and uses a curated set of copied infrastructure,<br>
    versus<br>
     &gt; a mass copy of the entire kernel.<br>
     &gt;<br>
     &gt; The differences in this approach versus other is largely due to the<br>
     &gt; architecture support and the split build/source directory of the<br>
     &gt; kernel.<br>
     &gt;<br>
     &gt; The result is a kernel-devsrc package of about 10M, which is capable<br>
     &gt; of running &quot;make scripts&quot; and compiling kernel modules against the<br>
     &gt; running kernel.<br>
     &gt;<br>
     &gt; Along with the changes to the copying of the infrascture, we also<br>
     &gt; have the following changes:<br>
     &gt;<br>
     &gt;  - a better/more explicit listing of dependencies for on-target<br>
     &gt;    builds of &quot;make scripts&quot; or &quot;make modules_prepare&quot;<br>
     &gt;<br>
     &gt;  - The kernel source is installed into /lib/modules/&lt;version&gt;/build<br>
     &gt;    and a symlink created from /usr/src/kernel to the new location.<br>
     &gt;    This aligns with the standard location for module support<br>
     &gt;    code<br>
     &gt;<br>
     &gt;  - There is also a symlink from /lib/modules/&lt;version&gt;/source -&gt;<br>
    build<br>
     &gt;    to reserve a spot for a new package that is simply the kernel<br>
     &gt;    source. That package is not part of this update.<br>
     &gt;<br>
     &gt; [YOCTO #12535]<br>
     &gt;<br>
     &gt; Signed-off-by: Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@windriver.com" target="_blank">bruce.ashfield@windriver.com</a><br></div></div>
    &lt;mailto:<a href="mailto:bruce.ashfield@windriver.com" target="_blank">bruce.ashfield@windriv<wbr>er.com</a>&gt;&gt;<div><div class="h5"><br>
     &gt; ---<br>
     &gt;<br>
     &gt;  v2: fix arch/arm devsrc builds<br>
<br>
    Noticed one kernel-devsrc build failure in autobuilder (qemuarm) :<br>
<br>
    <a href="https://autobuilder.yocto.io/builders/nightly-arm/builds/876/steps/BuildImages/logs/stdio" rel="noreferrer" target="_blank">https://autobuilder.yocto.io/b<wbr>uilders/nightly-arm/builds/876<wbr>/steps/BuildImages/logs/stdio</a><br>
    &lt;<a href="https://autobuilder.yocto.io/builders/nightly-arm/builds/876/steps/BuildImages/logs/stdio" rel="noreferrer" target="_blank">https://autobuilder.yocto.io/<wbr>builders/nightly-arm/builds/87<wbr>6/steps/BuildImages/logs/stdio</a><wbr>&gt;<br>
<br>
    ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install<br>
    (log file is located at<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/temp/log.do_<wbr>install.25822)<br>
    ERROR: Logfile of failure stored in:<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/temp/log.do_<wbr>install.25822<br>
    Log data follows:<br>
    | DEBUG: Executing python function extend_recipe_sysroot<br>
    | NOTE: Direct dependencies are<br>
    [&#39;/home/pokybuild/yocto-autobu<wbr>ilder/yocto-worker/nightly-<wbr>arm/build/meta/recipes-<wbr>devtools/binutils/binutils-<wbr>cross_2.30.bb:do_populate_<wbr>sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-extended/xz/xz_5.2.3.<wbr>bb:do_populate_sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-devtools/pkgconfig/<wbr>pkgconfig_git.bb:do_populate_<wbr>sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-support/lzop/lzop_1.<wbr>03.bb:do_populate_sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-kernel/<wbr>kern-tools/kern-tools-native_<wbr>git.bb:do_populate_sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>gcc/gcc-runtime_7.3.bb:do_<wbr>populate_sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>gcc/gcc-cross_7.<br>
      3.bb:do_populate_sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-devtools/bison/bison_<wbr>3.0.4.bb:do_populate_sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-devtools/pseudo/<wbr>pseudo_1.8.2.bb:do_populate_<wbr>sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-core/glibc/<wbr>glibc_2.26.bb:do_populate_<wbr>sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-kernel/<wbr>kmod/kmod-native_git.bb:do_<wbr>populate_sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-extended/bc/bc_1.06.<wbr>bb:do_populate_sysroot&#39;,<br>
    &#39;/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>quilt/quilt-native_0.65.bb:do_<wbr>populate_sysroot&#39;,<br>
    &#39;virtual:native:/home/pokybuil<wbr>d/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/meta/<wbr>recipes-connectivity/openssl/<wbr>openssl_1.0.2n.bb:d<br>
      o_populate_sysroot&#39;]<br>
    | NOTE: Installed into sysroot: [&#39;pkgconfig-native&#39;, &#39;lzop-native&#39;,<br>
    &#39;kern-tools-native&#39;, &#39;pseudo-native&#39;, &#39;kmod-native&#39;, &#39;bc-native&#39;,<br>
    &#39;openssl-native&#39;, &#39;gtk-doc-native&#39;, &#39;lzo-native&#39;,<br>
    &#39;makedepend-native&#39;, &#39;cryptodev-linux-native&#39;, &#39;util-macros-native&#39;,<br>
    &#39;xproto-native&#39;]<br>
    | NOTE: Skipping as already exists in sysroot:<br>
    [&#39;binutils-cross-arm&#39;, &#39;xz-native&#39;, &#39;gcc-runtime&#39;, &#39;gcc-cross-arm&#39;,<br>
    &#39;bison-native&#39;, &#39;glibc&#39;, &#39;quilt-native&#39;, &#39;gettext-minimal-native&#39;,<br>
    &#39;gnu-config-native&#39;, &#39;automake-native&#39;, &#39;autoconf-native&#39;,<br>
    &#39;libtool-native&#39;, &#39;linux-libc-headers&#39;, &#39;libgcc&#39;, &#39;zlib-native&#39;,<br>
    &#39;texinfo-dummy-native&#39;, &#39;flex-native&#39;, &#39;libmpc-native&#39;,<br>
    &#39;gmp-native&#39;, &#39;mpfr-native&#39;, &#39;m4-native&#39;]<br>
    | DEBUG: sed -e<br>
    &#39;s:^[^/]*/:/home/pokybuild/yoc<wbr>to-autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>recipe-sysroot-native/:g&#39;<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/sysroots-<wbr>components/x86_64/pkgconfig-<wbr>native/fixmepath<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/sysroots-<wbr>components/x86_64/openssl-<wbr>native/fixmepath<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/sysroots-<wbr>components/x86_64/gtk-doc-<wbr>native/fixmepath<br>
    | xargs sed -i -e<br>
    &#39;s:FIXMESTAGINGDIRTARGET:/home<wbr>/pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/recipe-sysroot:<wbr>g;<br>
    s:FIXMESTAGINGDIRHOST:/home/po<wbr>kybuild/yocto-autobuilder/yoct<wbr>o-worker/nightly-arm/build/<wbr>build/tmp/work/qemuarm-poky-<wbr>linux-gnueabi/kernel-devsrc/1.<wbr>0-r0/recipe-sysroot-native:g&#39;<br>
    -e &#39;s:FIXME_COMPONENTS_DIR:/home/<wbr>pokybuild/yocto-autobuilder/y<br>
      octo-worker/nightly-arm/buil<wbr>d/build/tmp/sysroots-component<wbr>s:g&#39; -e<br>
    &#39;s:FIXME_HOSTTOOLS_DIR:/home/p<wbr>okybuild/yocto-autobuilder/yoc<wbr>to-worker/nightly-arm/build/<wbr>build/tmp/hosttools:g&#39;<br>
    -e<br>
    &#39;s:FIXME_PKGDATA_DIR:/home/pok<wbr>ybuild/yocto-autobuilder/yocto<wbr>-worker/nightly-arm/build/<wbr>build/tmp/pkgdata/qemuarm:g&#39;<br>
    -e<br>
    &#39;s:FIXME_PSEUDO_LOCALSTATEDIR:<wbr>/home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/pseudo/:g&#39;<br>
    -e<br>
    &#39;s:FIXME_LOGFIFO:/home/pokybui<wbr>ld/yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/<wbr>build/tmp/work/qemuarm-poky-<wbr>linux-gnueabi/kernel-devsrc/1.<wbr>0-r0/temp/fifo.25822:g&#39;<br>
    | DEBUG: Python function extend_recipe_sysroot finished<br>
    | DEBUG: Executing shell function do_install<br>
    | cp: with --parents, the destination must be a directory<br>
    | Try &#39;cp --help&#39; for more information.<br>
    | WARNING:<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/temp/run.do_<wbr>install.25822:1<br>
    exit 1 from &#39;rm -rf $kerneldir/build/include&#39;<br>
    | ERROR: Function failed: do_install (log file is located at<br>
    /home/pokybuild/yocto-autobuil<wbr>der/yocto-worker/nightly-arm/<wbr>build/build/tmp/work/qemuarm-<wbr>poky-linux-gnueabi/kernel-<wbr>devsrc/1.0-r0/temp/log.do_<wbr>install.25822)<br>
    NOTE: recipe kernel-devsrc-1.0-r0: task do_install: Failed<br>
    ERROR: Task<br>
    (/home/pokybuild/yocto-autobui<wbr>lder/yocto-worker/nightly-arm/<wbr>build/meta/recipes-kernel/<wbr>linux/kernel-devsrc.bb:do_<wbr>install)<br>
    failed with exit code &#39;1&#39;<br>
<br>
    Best Regards,<br>
    Maxin<br>
    --<br>
    ______________________________<wbr>_________________<br>
    Openembedded-core mailing list<br>
    <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br></div></div>
    &lt;mailto:<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@list<wbr>s.openembedded.org</a>&gt;<br>
    <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
    &lt;<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org<wbr>/mailman/listinfo/openembedded<wbr>-core</a>&gt;<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>