<div dir="ltr">Also fails on musl:<div><br>ERROR: Nothing RPROVIDES &#39;glibc-utils&#39; (but /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-musl/build/meta/recipes-kernel/linux/<a href="http://kernel-devsrc.bb">kernel-devsrc.bb</a> RDEPENDS on or otherwise requires it)</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 March 2018 at 08:28, Maxin B. John <span dir="ltr">&lt;<a href="mailto:maxin.john@intel.com" target="_blank">maxin.john@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><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 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 in the<br>
&gt; final package. The main purpose of the kernel-devsrc package has been to<br>
&gt; build modules against the running kernel, not to include a full 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, 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; 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">bruce.ashfield@windriver.com</a>&gt;<br>
&gt; ---<br>
&gt;<br>
&gt;  v2: fix arch/arm devsrc builds<br>
<br>
</div></div>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/<wbr>builders/nightly-arm/builds/<wbr>876/steps/BuildImages/logs/<wbr>stdio</a><br>
<span class=""><br>
ERROR: kernel-devsrc-1.0-r0 do_install: Function failed: do_install (log file is located at /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>temp/log.do_install.25822)<br>
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>temp/log.do_install.25822<br>
Log data follows:<br>
</span>| DEBUG: Executing python function extend_recipe_sysroot<br>
| NOTE: Direct dependencies are [&#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-devtools/binutils/<wbr>binutils-cross_2.30.bb:do_<wbr>populate_sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-extended/<wbr>xz/xz_5.2.3.bb:do_populate_<wbr>sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>pkgconfig/pkgconfig_git.bb:do_<wbr>populate_sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-support/<wbr>lzop/lzop_1.03.bb:do_populate_<wbr>sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-kernel/kern-tools/<wbr>kern-tools-native_git.bb:do_<wbr>populate_sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-devtools/gcc/gcc-<wbr>runtime_7.3.bb:do_populate_<wbr>sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-devtools/gcc/gcc-<wbr>cross_7.<br>
 3.bb:do_populate_sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>bison/bison_3.0.4.bb:do_<wbr>populate_sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-devtools/<wbr>pseudo/pseudo_1.8.2.bb:do_<wbr>populate_sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-core/glibc/glibc_2.26.<wbr>bb:do_populate_sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-kernel/kmod/kmod-<wbr>native_git.bb:do_populate_<wbr>sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-extended/<wbr>bc/bc_1.06.bb:do_populate_<wbr>sysroot&#39;, &#39;/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-devtools/quilt/quilt-<wbr>native_0.65.bb:do_populate_<wbr>sysroot&#39;, &#39;virtual:native:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/meta/recipes-<wbr>connectivity/openssl/openssl_<wbr>1.0.2n.bb:d<br>
 o_populate_sysroot&#39;]<br>
| NOTE: Installed into sysroot: [&#39;pkgconfig-native&#39;, &#39;lzop-native&#39;, &#39;kern-tools-native&#39;, &#39;pseudo-native&#39;, &#39;kmod-native&#39;, &#39;bc-native&#39;, &#39;openssl-native&#39;, &#39;gtk-doc-native&#39;, &#39;lzo-native&#39;, &#39;makedepend-native&#39;, &#39;cryptodev-linux-native&#39;, &#39;util-macros-native&#39;, &#39;xproto-native&#39;]<br>
| NOTE: Skipping as already exists in sysroot: [&#39;binutils-cross-arm&#39;, &#39;xz-native&#39;, &#39;gcc-runtime&#39;, &#39;gcc-cross-arm&#39;, &#39;bison-native&#39;, &#39;glibc&#39;, &#39;quilt-native&#39;, &#39;gettext-minimal-native&#39;, &#39;gnu-config-native&#39;, &#39;automake-native&#39;, &#39;autoconf-native&#39;, &#39;libtool-native&#39;, &#39;linux-libc-headers&#39;, &#39;libgcc&#39;, &#39;zlib-native&#39;, &#39;texinfo-dummy-native&#39;, &#39;flex-native&#39;, &#39;libmpc-native&#39;, &#39;gmp-native&#39;, &#39;mpfr-native&#39;, &#39;m4-native&#39;]<br>
| DEBUG: sed -e &#39;s:^[^/]*/:/home/pokybuild/<wbr>yocto-autobuilder/yocto-<wbr>worker/nightly-arm/build/<wbr>build/tmp/work/qemuarm-poky-<wbr>linux-gnueabi/kernel-devsrc/1.<wbr>0-r0/recipe-sysroot-native/:g&#39; /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>sysroots-components/x86_64/<wbr>pkgconfig-native/fixmepath /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>sysroots-components/x86_64/<wbr>openssl-native/fixmepath /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>sysroots-components/x86_64/<wbr>gtk-doc-native/fixmepath | xargs sed -i -e &#39;s:FIXMESTAGINGDIRTARGET:/<wbr>home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/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>native:g&#39; -e &#39;s:FIXME_COMPONENTS_DIR:/home/<wbr>pokybuild/yocto-autobuilder/y<br>
 octo-worker/nightly-arm/build/<wbr>build/tmp/sysroots-components:<wbr>g&#39; -e &#39;s:FIXME_HOSTTOOLS_DIR:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/build/tmp/hosttools:g&#39; -e &#39;s:FIXME_PKGDATA_DIR:/home/<wbr>pokybuild/yocto-autobuilder/<wbr>yocto-worker/nightly-arm/<wbr>build/build/tmp/pkgdata/<wbr>qemuarm:g&#39; -e &#39;s:FIXME_PSEUDO_LOCALSTATEDIR:<wbr>/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>pseudo/:g&#39; -e &#39;s:FIXME_LOGFIFO:/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/temp/fifo.25822:<wbr>g&#39;<br>
| DEBUG: Python function extend_recipe_sysroot finished<br>
<span class="">| 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: /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>temp/run.do_install.25822:1 exit 1 from &#39;rm -rf $kerneldir/build/include&#39;<br>
| ERROR: Function failed: do_install (log file is located at /home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/build/tmp/<wbr>work/qemuarm-poky-linux-<wbr>gnueabi/kernel-devsrc/1.0-r0/<wbr>temp/log.do_install.25822)<br>
</span>NOTE: recipe kernel-devsrc-1.0-r0: task do_install: Failed<br>
ERROR: Task (/home/pokybuild/yocto-<wbr>autobuilder/yocto-worker/<wbr>nightly-arm/build/meta/<wbr>recipes-kernel/linux/kernel-<wbr>devsrc.bb:do_install) failed with exit code &#39;1&#39;<br>
<br>
Best Regards,<br>
Maxin<br>
<div class="HOEnZb"><div class="h5">--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><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>
</div></div></blockquote></div><br></div>