Skip to contentSkip to conversation

kernel-devsrc: restructure for out of tree (and on target) module builds

PATCH Superseded Bruce Ashfield 4 participants 18 messages Jul 9, 2018 – Jul 31, 2018

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kernel-devsrc: restructure for out of tree (and on target) module builds

The existing kernel-devsrc package starts with a full copy of the kernel source and then starts to strip out elements that are not required.

This results in extra time (I/O) and extra space being taken up in the final package. The main purpose of the kernel-devsrc package has been to build modules against the running kernel, not to include a full copy of the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.

This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus a mass copy of the entire kernel.

The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.

The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.

Along with the changes to the copying of the infrascture, we also have the following changes:

- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"

- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code

- There is also a symlink from /lib/modules/<version>/source -> build to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.

---

v2: drop DEPENDS on perf. We no longer need to depend on perf since the source
is copied before modification.

 meta/recipes-kernel/linux/kernel-devsrc.bb | 199 ++++++++++++++++++++++-------
 1 file changed, 152 insertions(+), 47 deletions(-)
meta/recipes-kernel/linux/kernel-devsrc.bb +152 -47
index 8bbfa23e4b86..1bfc011a906d 100644
@@ -30,57 +30,162 @@ do_populate_sysroot[noexec] = "1"
 S = "${STAGING_KERNEL_DIR}"
 B = "${STAGING_KERNEL_BUILDDIR}"
 
-KERNEL_VERSION = "${@get_kernelversion_headers('${S}')}"
-
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+KERNEL_BUILD_ROOT="/lib/modules/"
+
 do_install() {
-        kerneldir=${D}${KERNEL_SRC_PATH}
-        install -d $kerneldir
-
-        #
-        # Copy the staging dir source (and module build support) into the devsrc structure.
-        # We can keep this copy simple and take everything, since a we'll clean up any build
-        # artifacts afterwards, and the extra i/o is not significant
-        #
-        cd ${B}
-        find . -type d -name '.git*' -prune -o -path '.debug' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir
-        cd ${S}
-	find . -type d -name '.git*' -prune -o -type d -name '.kernel-meta' -prune -o -type f -print0 | cpio --null -pdlu $kerneldir
-
-        # Explicitly set KBUILD_OUTPUT to ensure that the image directory is cleaned and not
-        # The main build artifacts. We clean the directory to avoid QA errors on mismatched
-        # architecture (since scripts and helpers are native format).
-        KBUILD_OUTPUT="$kerneldir"
-        oe_runmake -C $kerneldir CC="${KERNEL_CC}" LD="${KERNEL_LD}" clean _mrproper_scripts
-        # make clean generates an absolute path symlink called "source"
-        # in $kerneldir points to $kerneldir, which doesn't make any
-        # sense, so remove it.
-        if [ -L $kerneldir/source ]; then
-            bbnote "Removing $kerneldir/source symlink"
-            rm -f $kerneldir/source
-        fi
-
-        # As of Linux kernel version 3.0.1, the clean target removes
-        # arch/powerpc/lib/crtsavres.o which is present in
-        # KBUILD_LDFLAGS_MODULE, making it required to build external modules.
-        if [ ${ARCH} = "powerpc" ]; then
-                mkdir -p $kerneldir/arch/powerpc/lib/
-                cp ${B}/arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
-        fi
-
-        # Remove fixdep/objtool as they won't be target binaries
-        for i in fixdep objtool; do
-                if [ -e $kerneldir/tools/objtool/$i ]; then
-                        rm -rf $kerneldir/tools/objtool/$i
-                fi
-        done
-
-        chown -R root:root ${D}
+    kerneldir=${D}${KERNEL_BUILD_ROOT}${KERNEL_VERSION}
+    install -d $kerneldir
+
+    # create the directory structure
+    rm -f $kerneldir/build
+    rm -f $kerneldir/source
+    mkdir -p $kerneldir/build
+
+    # for compatibility with some older variants of this package, we
+    # create  a /usr/src/kernel symlink to /lib/modules/<version>/source
+    mkdir -p ${D}/usr/src
+    (
+	cd ${D}/usr/src
+	ln -s ${KERNEL_BUILD_ROOT}${KERNEL_VERSION}/source kernel
+    )
+
+    # for on target purposes, we unify build and source
+    (
+	cd $kerneldir
+	ln -s build source
+    )
+
+    # first copy everything
+    (
+	cd ${S}
+	cp --parents $(find  -type f -name "Makefile*" -o -name "Kconfig*") $kerneldir/build
+    )
+
+    # then drop all but the needed Makefiles/Kconfig files
+    rm -rf $kerneldir/build/Documentation
+    rm -rf $kerneldir/build/scripts
+    rm -rf $kerneldir/build/include
+
+    # now copy in parts from the build that we'll need later
+    (
+	cd ${B}
+
+	cp Module.symvers $kerneldir/build
+	cp System.map* $kerneldir/build
+	if [ -s Module.markers ]; then
+	    cp Module.markers $kerneldir/build
+	fi
+
+	cp .config $kerneldir/build
+
+	# This scripts copy blow up QA, so for now, we require a more
+	# complex 'make scripts' to restore these, versus copying them
+	# here. Left as a reference to indicate that we know the scripts must
+	# be dealt with.
+	# cp -a scripts $kerneldir/build
+	# if [ -f tools/objtool/objtool ]; then
+	#     cp -a tools/objtool/objtool $kerneldir/build/tools/objtool/
+	# fi
+
+        if [ -d arch/${ARCH}/scripts ]; then
+	    cp -a arch/${ARCH}/scripts $kerneldir/build/arch/${ARCH}
+	fi
+	if [ -f arch/${ARCH}/*lds ]; then
+	    cp -a arch/${ARCH}/*lds $kerneldir/build/arch/${ARCH}
+	fi
+
+	rm -f $kerneldir/build/scripts/*.o
+	rm -f $kerneldir/build/scripts/*/*.o
+
+	if [ "${ARCH}" = "powerpc" ]; then
+	    if [ -e arch/powerpc/lib/crtsavres.S ] ||
+		   [ -e arch/powerpc/lib/crtsavres.o ]; then
+		cp -a --parents arch/powerpc/lib/crtsavres.[So] $kerneldir/build/
+	    fi
+	fi
+
+	cp -a include $kerneldir/build/include
+    )
+
+    # now grab the chunks from the source tree that we need
+    (
+	cd ${S}
+
+	cp -a scripts $kerneldir/build
+	if [ "${ARCH}" = "arm64" ]; then
+	    # arch/arm64/include/asm/xen references arch/arm
+	    cp -a --parents arch/arm/include/asm/xen $kerneldir/build/
+	    # arch/arm64/include/asm/opcodes.h references arch/arm
+	    cp -a --parents arch/arm/include/asm/opcodes.h $kerneldir/build/
+	fi
+
+	# include the machine specific headers for ARM variants, if available.
+	if [ "${ARCH}" = "arm" ]; then
+	    cp -a --parents arch/${ARCH}/mach-*/include $kerneldir/build/
+
+	    # include a few files for 'make prepare'
+	    cp -a --parents arch/arm/tools/gen-mach-types $kerneldir/build/
+	    cp -a --parents arch/arm/tools/mach-types $kerneldir/build/
+	fi
+
+	if [ -d arch/${ARCH}/include ]; then
+	    cp -a --parents arch/${ARCH}/include $kerneldir/build/
+	fi
+
+	cp -a include $kerneldir/build
+
+	cp -a --parents tools/include/tools/le_byteshift.h $kerneldir/build/
+	cp -a --parents tools/include/tools/be_byteshift.h $kerneldir/build/
+
+	if [ "${ARCH}" = "x86" ]; then
+	    # files for 'make prepare' to succeed with kernel-devel
+	    cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl $kerneldir/build/
+	    cp -a --parents arch/x86/entry/syscalls/syscalltbl.sh $kerneldir/build/
+	    cp -a --parents arch/x86/entry/syscalls/syscallhdr.sh $kerneldir/build/
+	    cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl $kerneldir/build/
+	    cp -a --parents arch/x86/tools/relocs_32.c $kerneldir/build/
+	    cp -a --parents arch/x86/tools/relocs_64.c $kerneldir/build/
+	    cp -a --parents arch/x86/tools/relocs.c $kerneldir/build/
+	    cp -a --parents arch/x86/tools/relocs_common.c $kerneldir/build/
+	    cp -a --parents arch/x86/tools/relocs.h $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/purgatory.c $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/sha256.h $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/sha256.c $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/stack.S $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/string.c $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/setup-x86_64.S $kerneldir/build/
+	    cp -a --parents arch/x86/purgatory/entry64.S $kerneldir/build/
+	    cp -a --parents arch/x86/boot/string.h $kerneldir/build/
+	    cp -a --parents arch/x86/boot/string.c $kerneldir/build/
+	    cp -a --parents arch/x86/boot/ctype.h $kerneldir/build/
+	fi
+
+	if [ "${ARCH}" = "mips" ]; then
+	    cp -a --parents arch/mips/Kbuild.platforms $kerneldir/build/
+	    cp --parents $(find  -type f -name "Platform") $kerneldir/build
+	fi
+    )
+
+    # Make sure the Makefile and version.h have a matching timestamp so that
+    # external modules can be built
+    touch -r $kerneldir/build/Makefile $kerneldir/build/include/generated/uapi/linux/version.h
+
+    # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
+    cp $kerneldir/build/.config $kerneldir/build/include/config/auto.conf
+
+    chown -R root:root ${D}
 }
+
 # Ensure we don't race against "make scripts" during cpio
 do_install[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
 
-PACKAGES = "kernel-devsrc"
-FILES_${PN} = "${KERNEL_SRC_PATH}"
-RDEPENDS_${PN} = "bc"
+FILES_${PN} = "${KERNEL_BUILD_ROOT} ${KERNEL_SRC_PATH}"
+FILES_${PN}-dbg += "${KERNEL_BUILD_ROOT}*/build/scripts/*/.debug/*"
+
+RDEPENDS_${PN} = "bc python ${TCLIBC}-utils"
+# 4.15+ needs these next two RDEPENDS
+RDEPENDS_${PN} += "openssl-dev util-linux"
+# and x86 needs a bit more for 4.15+
+RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}"
Signature · 1 line
2.5.0
#1 lore raw
Quoted 43 lines · Bruce Ashfield

The existing kernel-devsrc package starts with a full copy of the kernel
source and then starts to strip out elements that are not required.

This results in extra time (I/O) and extra space being taken up in the
final package. The main purpose of the kernel-devsrc package has been to
build modules against the running kernel, not to include a full copy of
the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.

This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus
a mass copy of the entire kernel.

The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.

The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.

Along with the changes to the copying of the infrascture, we also have the following changes:

- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"

- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code

- There is also a symlink from /lib/modules/<version>/source ->
build
to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.

Quoted 6 lines

---

v2: drop DEPENDS on perf. We no longer need to depend on perf since the source
is copied before modification.

It probably won't surprise you to know there were some issues with this patch, sadly.

The main recurring issue (on all arches and poky+poky-lsb) is failure of the kernelmodule.KernelModuleTest.test_kernel_module test. The exact failure varies by arch, for x86-64:

https://autobuilder.yocto.io/builders/nightly-x86-64/builds/1154/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/utsrelease.h
|   DESCEND  objtool
| /lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.build:37: /lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include: No such file or directory
| make[4]: *** No rule to make target '/lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include'.  Stop.
| make[3]: *** [Makefile:43: /lib/modules/4.14.48-yocto-standard/build/tools/objtool/fixdep-in.o] Error 2
| make[2]: *** [/lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.include:4: fixdep] Error 2
| make[1]: *** [Makefile:62: objtool] Error 2
| make: *** [Makefile:1647: tools/objtool] Error 2

For mips:

https://autobuilder.yocto.io/builders/nightly-mips/builds/1115

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/mips/boot/tools/relocs_32.c', needed by 'arch/mips/boot/tools/relocs_32.o'.  Stop.
| make: *** [arch/mips/Makefile:16: archscripts] Error 2

(same for mips64)

For arm:

https://autobuilder.yocto.io/builders/nightly-arm/builds/1187/

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'.  Stop.
| make: *** [arch/arm/Makefile:319: archheaders] Error 2

For arm64:

https://autobuilder.yocto.io/builders/nightly-arm64/builds/1101/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
| make[1]: *** No rule to make target 'arch/arm64/kernel/vdso/vdso.lds', needed by 'arch/arm64/kernel/vdso/vdso.so.dbg'.  Stop.
| make: *** [arch/arm64/Makefile:160: vdso_prepare] Error 2

There was also a failure in building the build-appliance image:

https://autobuilder.yocto.io/builders/build-appliance/builds/1110

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/steps/BuildImages_4/logs/stdio

Error: Transaction check error:
file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64 file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

I'll retest with this patch removed just so we can unblock the other patches.

Cheers,

Richard

#2 lore raw
Quoted 47 lines · Richard Purdie
Quoted 46 lines · Bruce Ashfield

The existing kernel-devsrc package starts with a full copy of the kernel
source and then starts to strip out elements that are not required.

This results in extra time (I/O) and extra space being taken up in the
final package. The main purpose of the kernel-devsrc package has been to
build modules against the running kernel, not to include a full copy of
the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.

This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus
a mass copy of the entire kernel.

The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.

The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.

Along with the changes to the copying of the infrascture, we also have the following changes:

- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"

- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code

- There is also a symlink from /lib/modules/<version>/source ->
build
to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.

---

Quoted 7 lines
Quoted 3 lines

v2: drop DEPENDS on perf. We no longer need to depend on perf since the source
is copied before modification.

It probably won't surprise you to know there were some issues with this patch, sadly.

heh. No problem. These are just things I didn't have the configs to test.

Outside of the multilib issue, I can fix things up. For the multlib, I have no idea .. since this:

file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586
conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

is greek to me :D

I'll look at these one by one, and see if anyone with more bitbake knowledge wants to help out with that last one.

Bruce

Quoted 62 lines

The main recurring issue (on all arches and poky+poky-lsb) is failure of the kernelmodule.KernelModuleTest.test_kernel_module test. The exact failure varies by arch, for x86-64:

https://autobuilder.yocto.io/builders/nightly-x86-64/builds/1154/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/utsrelease.h
|   DESCEND  objtool
| /lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.build:37: /lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include: No such file or directory
| make[4]: *** No rule to make target '/lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include'.  Stop.
| make[3]: *** [Makefile:43: /lib/modules/4.14.48-yocto-standard/build/tools/objtool/fixdep-in.o] Error 2
| make[2]: *** [/lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.include:4: fixdep] Error 2
| make[1]: *** [Makefile:62: objtool] Error 2
| make: *** [Makefile:1647: tools/objtool] Error 2

For mips:

https://autobuilder.yocto.io/builders/nightly-mips/builds/1115

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/mips/boot/tools/relocs_32.c', needed by 'arch/mips/boot/tools/relocs_32.o'.  Stop.
| make: *** [arch/mips/Makefile:16: archscripts] Error 2

(same for mips64)

For arm:

https://autobuilder.yocto.io/builders/nightly-arm/builds/1187/

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'.  Stop.
| make: *** [arch/arm/Makefile:319: archheaders] Error 2

For arm64:

https://autobuilder.yocto.io/builders/nightly-arm64/builds/1101/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
| make[1]: *** No rule to make target 'arch/arm64/kernel/vdso/vdso.lds', needed by 'arch/arm64/kernel/vdso/vdso.so.dbg'.  Stop.
| make: *** [arch/arm64/Makefile:160: vdso_prepare] Error 2

There was also a failure in building the build-appliance image:

https://autobuilder.yocto.io/builders/build-appliance/builds/1110

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/steps/BuildImages_4/logs/stdio

Error: Transaction check error:
file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64 file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

I'll retest with this patch removed just so we can unblock the other patches.

Cheers,

Richard

#3 lore raw
In reply to Richard Purdie
Quoted 60 lines · Richard Purdie
Quoted 43 lines · Bruce Ashfield

The existing kernel-devsrc package starts with a full copy of the kernel
source and then starts to strip out elements that are not required.

This results in extra time (I/O) and extra space being taken up in the
final package. The main purpose of the kernel-devsrc package has been to
build modules against the running kernel, not to include a full copy of
the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.

This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus
a mass copy of the entire kernel.

The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.

The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.

Along with the changes to the copying of the infrascture, we also have the following changes:

- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"

- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code

- There is also a symlink from /lib/modules/<version>/source ->
build
to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.

Quoted 6 lines

---

v2: drop DEPENDS on perf. We no longer need to depend on perf since the source
is copied before modification.

It probably won't surprise you to know there were some issues with this patch, sadly.

The main recurring issue (on all arches and poky+poky-lsb) is failure of the kernelmodule.KernelModuleTest.test_kernel_module test. The exact failure varies by arch, for x86-64:

https://autobuilder.yocto.io/builders/nightly-x86-64/builds/1154/steps/Running%20Sanity%20Tests/logs/stdio

Quoted 8 lines
|   CHK     include/generated/utsrelease.h
|   DESCEND  objtool
| /lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.build:37: /lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include: No such file or directory
| make[4]: *** No rule to make target '/lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include'.  Stop.
| make[3]: *** [Makefile:43: /lib/modules/4.14.48-yocto-standard/build/tools/objtool/fixdep-in.o] Error 2
| make[2]: *** [/lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.include:4: fixdep] Error 2
| make[1]: *** [Makefile:62: objtool] Error 2
| make: *** [Makefile:1647: tools/objtool] Error 2

I'll try the other configs, but clearly I have something different in my x86-64 build.

I can't run the self tests directly, but am copying the files onto my qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make ARCH=x86 scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CHK     scripts/mod/devicetable-offsets.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints kernel.
[  419.212586] Hello world!

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

Bruce

Quoted 48 lines

For mips:

https://autobuilder.yocto.io/builders/nightly-mips/builds/1115

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/mips/boot/tools/relocs_32.c', needed by 'arch/mips/boot/tools/relocs_32.o'.  Stop.
| make: *** [arch/mips/Makefile:16: archscripts] Error 2

(same for mips64)

For arm:

https://autobuilder.yocto.io/builders/nightly-arm/builds/1187/

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'.  Stop.
| make: *** [arch/arm/Makefile:319: archheaders] Error 2

For arm64:

https://autobuilder.yocto.io/builders/nightly-arm64/builds/1101/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
| make[1]: *** No rule to make target 'arch/arm64/kernel/vdso/vdso.lds', needed by 'arch/arm64/kernel/vdso/vdso.so.dbg'.  Stop.
| make: *** [arch/arm64/Makefile:160: vdso_prepare] Error 2

There was also a failure in building the build-appliance image:

https://autobuilder.yocto.io/builders/build-appliance/builds/1110

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/steps/BuildImages_4/logs/stdio

Error: Transaction check error:
file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64 file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

I'll retest with this patch removed just so we can unblock the other patches.

Cheers,

Richard

#4 lore raw
Quoted 45 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in my x86-64 build.

I can't run the self tests directly, but am copying the files onto my qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86 
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install 
libelf-dev, libelf-devel or elfutils-libelf-devel"
   CHK     scripts/mod/devicetable-offsets.h
   SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
   SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
   SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
   SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
   SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
   SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
   SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
   HOSTCC  arch/x86/tools/relocs_32.o
   HOSTCC  arch/x86/tools/relocs_64.o
   HOSTCC  arch/x86/tools/relocs_common.o
   HOSTLD  arch/x86/tools/relocs
   CHK     include/config/kernel.release
   CHK     include/generated/uapi/linux/version.h
   CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install 
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install 
libelf-dev, libelf-devel or elfutils-libelf-devel"
   Building modules, stage 2.
   MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu graphics piece? You can't have a dummy vncserver or something to direct them at?

The image is a core-image-sato-sdk...

Cheers,

Richard

#5 lore raw
Quoted 46 lines · Richard Purdie
Quoted 45 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in my x86-64 build.

I can't run the self tests directly, but am copying the files onto my qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    CHK     scripts/mod/devicetable-offsets.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
    HOSTCC  arch/x86/tools/relocs_32.o
    HOSTCC  arch/x86/tools/relocs_64.o
    HOSTCC  arch/x86/tools/relocs_common.o
    HOSTLD  arch/x86/tools/relocs
    CHK     include/config/kernel.release
    CHK     include/generated/uapi/linux/version.h
    CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    Building modules, stage 2.
    MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints kernel.
[  419.212586] Hello world!
Quoted 8 lines
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu graphics piece? You can't have a dummy vncserver or something to direct them at?

My config never seems to build and run the tests that I need, I had it work once, and then never again. So I prefer to just build, boot and run tests manually.

Regardless of the automation, I can easily do "make scripts prepare" on the kernel-devsrc package, so that is extremely odd that it doesn't work with that image. I'll try and add devsrc to a sato build and see of objtool goes nuts.

I'm also unable to build lttng-modules for mips at the moment, so at least mips is untestable for me.

Bruce

Quoted 7 lines

The image is a core-image-sato-sdk...

Cheers,

Richard

#6 lore raw
In reply to Richard Purdie
Quoted 49 lines · Richard Purdie
Quoted 48 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in my x86-64 build.

I can't run the self tests directly, but am copying the files onto my qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    CHK     scripts/mod/devicetable-offsets.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
    HOSTCC  arch/x86/tools/relocs_32.o
    HOSTCC  arch/x86/tools/relocs_64.o
    HOSTCC  arch/x86/tools/relocs_common.o
    HOSTLD  arch/x86/tools/relocs
    CHK     include/config/kernel.release
    CHK     include/generated/uapi/linux/version.h
    CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    Building modules, stage 2.
    MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints kernel.
[  419.212586] Hello world!

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

Quoted 7 lines
Quoted 1 line

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu graphics piece? You can't have a dummy vncserver or something to direct them at?

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Bruce

Quoted 5 lines

Cheers,

Richard

#7 lore raw
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    CHK     scripts/mod/devicetable-offsets.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
    SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
    SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
    SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
    HOSTCC  arch/x86/tools/relocs_32.o
    HOSTCC  arch/x86/tools/relocs_64.o
    HOSTCC  arch/x86/tools/relocs_common.o
    HOSTLD  arch/x86/tools/relocs
    CHK     include/config/kernel.release
    CHK     include/generated/uapi/linux/version.h
    CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
    Building modules, stage 2.
    MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

Cheers,

Richard

#8 lore raw
Quoted 66 lines · Richard Purdie
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
     CHK     scripts/mod/devicetable-offsets.h
     SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
     SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
     SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
     SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
     HOSTCC  arch/x86/tools/relocs_32.o
     HOSTCC  arch/x86/tools/relocs_64.o
     HOSTCC  arch/x86/tools/relocs_common.o
     HOSTLD  arch/x86/tools/relocs
     CHK     include/config/kernel.release
     CHK     include/generated/uapi/linux/version.h
     CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
     Building modules, stage 2.
     MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

It is. I have extra toolchain elements being installed in core-image-kernel-dev that hold things together (i.e. the kernel's objtool doesn't need to be built).

The obvious fix is to just add an RDEPENDS, but I'm being stubborn and trying to make it build on target, since the build of objtool from the kernel source is showing me some sort of include path issue that I'd like to sort out:

CC
/lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-cmd.o
exec-cmd.c: In function 'get_pwd_cwd':
exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration]

    strlcpy(cwd, pwd, PATH_MAX);
    ^~~~~~~
    strncpy

exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' [-Werror=nested-externs]
cc1: all warnings being treated as errors

Cheers,

Bruce

Quoted 5 lines

Cheers,

Richard

#9 lore raw
Quoted 85 lines · Bruce Ashfield
Quoted 66 lines · Richard Purdie
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
     CHK     scripts/mod/devicetable-offsets.h
     SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
     SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
     SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
     SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
     SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
     HOSTCC  arch/x86/tools/relocs_32.o
     HOSTCC  arch/x86/tools/relocs_64.o
     HOSTCC  arch/x86/tools/relocs_common.o
     HOSTLD  arch/x86/tools/relocs
     CHK     include/config/kernel.release
     CHK     include/generated/uapi/linux/version.h
     CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
     Building modules, stage 2.
     MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

It is. I have extra toolchain elements being installed in core-image-kernel-dev
that hold things together (i.e. the kernel's objtool doesn't need to be built).

The obvious fix is to just add an RDEPENDS, but I'm being stubborn and trying to make it build on target, since the build of objtool from the kernel source is showing me some sort of include path issue that I'd like to sort out:

Quoted 11 lines

  CC /lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-cmd.o exec-cmd.c: In function 'get_pwd_cwd':
exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration] strlcpy(cwd, pwd, PATH_MAX);
    ^~~~~~~
    strncpy
exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' [-Werror=nested-externs]
cc1: all warnings being treated as errors

Kernel has this function defined in tools/include/linux/string.h so

however it has it like this

#if defined(__GLIBC__) && !defined(__UCLIBC__)
extern size_t strlcpy(char *dest, const char *src, size_t size); #endif

Which means it will not work for musl and we need to ensure that we use -D_GNU_SOURCE for it to be included from standard musl headers

Quoted 10 lines

Cheers,

Bruce

Quoted 5 lines

Cheers,

Richard

#10 lore raw
Quoted 98 lines · Khem Raj
Quoted 85 lines · Bruce Ashfield
Quoted 66 lines · Richard Purdie
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
      CHK     scripts/mod/devicetable-offsets.h
      SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
      SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
      SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
      SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
      HOSTCC  arch/x86/tools/relocs_32.o
      HOSTCC  arch/x86/tools/relocs_64.o
      HOSTCC  arch/x86/tools/relocs_common.o
      HOSTLD  arch/x86/tools/relocs
      CHK     include/config/kernel.release
      CHK     include/generated/uapi/linux/version.h
      CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
      Building modules, stage 2.
      MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

It is. I have extra toolchain elements being installed in core-image-kernel-dev
that hold things together (i.e. the kernel's objtool doesn't need to be built).

The obvious fix is to just add an RDEPENDS, but I'm being stubborn and trying to make it build on target, since the build of objtool from the kernel source is showing me some sort of include path issue that I'd like to sort out:

Quoted 11 lines

  CC /lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-cmd.o
exec-cmd.c: In function 'get_pwd_cwd':
exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration]
    strlcpy(cwd, pwd, PATH_MAX);
    ^~~~~~~
    strncpy
exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' [-Werror=nested-externs]
cc1: all warnings being treated as errors

Quoted 2 lines

Kernel has this function defined in tools/include/linux/string.h so

Well yes, a grep locates that :D

Quoted 8 lines

however it has it like this

#if defined(__GLIBC__) && !defined(__UCLIBC__)
extern size_t strlcpy(char *dest, const char *src, size_t size); #endif

Which means it will not work for musl and we need to ensure that we use -D_GNU_SOURCE for it to be included from standard musl headers

I've never built or supported musl, and since this is using the in kernel Makefiles, etc, it isn't something I can patch or fix outside of linux-yocto.

I'm just worried about the glibc cases, we can do follow up patches later.

Bruce

Quoted 14 lines
Quoted 12 lines

Cheers,

Bruce

Quoted 5 lines

Cheers,

Richard

#11 lore raw
Quoted 114 lines · Bruce Ashfield
Quoted 98 lines · Khem Raj
Quoted 85 lines · Bruce Ashfield
Quoted 66 lines · Richard Purdie
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
      CHK     scripts/mod/devicetable-offsets.h
      SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
      SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
      SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
      SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
      SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
      HOSTCC  arch/x86/tools/relocs_32.o
      HOSTCC  arch/x86/tools/relocs_64.o
      HOSTCC  arch/x86/tools/relocs_common.o
      HOSTLD  arch/x86/tools/relocs
      CHK     include/config/kernel.release
      CHK     include/generated/uapi/linux/version.h
      CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
      Building modules, stage 2.
      MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

It is. I have extra toolchain elements being installed in core-image-kernel-dev
that hold things together (i.e. the kernel's objtool doesn't need to be built).

The obvious fix is to just add an RDEPENDS, but I'm being stubborn and trying to make it build on target, since the build of objtool from the kernel source is showing me some sort of include path issue that I'd like to sort out:

Quoted 11 lines

   CC /lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-cmd.o exec-cmd.c: In function 'get_pwd_cwd':
exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration] strlcpy(cwd, pwd, PATH_MAX);
     ^~~~~~~
     strncpy
exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' [-Werror=nested-externs]
cc1: all warnings being treated as errors

Quoted 2 lines

Kernel has this function defined in tools/include/linux/string.h so

Well yes, a grep locates that :D

Quoted 8 lines

however it has it like this

#if defined(__GLIBC__) && !defined(__UCLIBC__)
extern size_t strlcpy(char *dest, const char *src, size_t size); #endif

Which means it will not work for musl and we need to ensure that we use -D_GNU_SOURCE for it to be included from standard musl headers

Quoted 7 lines

I've never built or supported musl, and since this is using the in kernel Makefiles, etc, it isn't something I can patch or fix outside of linux-yocto.

I'm just worried about the glibc cases, we can do follow up patches later.

you dont have to defer since you are already touching this area you might very well address this too.
Once the -I path is figured out. All we need is ensure -D_GNU_SOURCE is added to CFLAGS in same place.

Quoted 17 lines

Bruce

Quoted 14 lines
Quoted 12 lines

Cheers,

Bruce

Quoted 5 lines

Cheers,

Richard

#12 lore raw
Quoted 119 lines · Khem Raj
Quoted 118 lines · Bruce Ashfield
Quoted 98 lines · Khem Raj
Quoted 85 lines · Bruce Ashfield
Quoted 66 lines · Richard Purdie
Quoted 65 lines · Bruce Ashfield
Quoted 64 lines · Richard Purdie
Quoted 52 lines · Bruce Ashfield
Quoted 1 line · Richard Purdie

On Mon, 2018-07-09 at 11:53 -0400, Bruce Ashfield wrote:

I'll try the other configs, but clearly I have something different in
my x86-64 build.

I can't run the self tests directly, but am copying the files onto my
qemu session and running things myself:

root@qemux86-64:/lib/modules/4.14.48-yocto-standard/build# make
ARCH=x86
scripts prepare
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
       CHK     scripts/mod/devicetable-offsets.h
       SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
       SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
       SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
       SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
       SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
       SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
       SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
       HOSTCC  arch/x86/tools/relocs_32.o
       HOSTCC  arch/x86/tools/relocs_64.o
       HOSTCC  arch/x86/tools/relocs_common.o
       HOSTLD  arch/x86/tools/relocs
       CHK     include/config/kernel.release
       CHK     include/generated/uapi/linux/version.h
       CHK     include/generated/utsrelease.h
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
root@qemux86-64:/tmp# make
make -C /usr/src/kernel M=/tmp modules
make[1]: Entering directory '/lib/modules/4.14.48-yocto-
standard/build'
Makefile:950: "Cannot use CONFIG_STACK_VALIDATION=y, please
install
libelf-dev, libelf-devel or elfutils-libelf-devel"
       Building modules, stage 2.
       MODPOST 1 modules
make[1]: Leaving directory '/lib/modules/4.14.48-yocto-
standard/build'
root@qemux86-64:/tmp# insmod hellomod.ko
[  419.211616] hellomod: loading out-of-tree module taints
kernel.
[  419.212586] Hello world!
Quoted 4 lines

This is on the core-image-kernel-dev image, which is the one that I created to test all this.

What image is that using ? some sato sdk one ?

We really need to find you a way to run these. The problem is the qemu
graphics piece? You can't have a dummy vncserver or something to direct
them at?

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

The image is a core-image-sato-sdk...

I was able to trigger the objtool issue with this image, looking at fixing it and the other arches now.

Since its image related, is it a missing package dependency? Just curious why its happening with some images but not your test ones...

It is. I have extra toolchain elements being installed in core-image-kernel-dev
that hold things together (i.e. the kernel's objtool doesn't need to be built).

The obvious fix is to just add an RDEPENDS, but I'm being stubborn and trying to make it build on target, since the build of objtool from the kernel source is showing me some sort of include path issue that I'd like to sort out:

Quoted 11 lines

   CC /lib/modules/4.14.48-yocto-standard/build/tools/objtool/exec-cmd.o
exec-cmd.c: In function 'get_pwd_cwd':
exec-cmd.c:49:4: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Werror=implicit-function-declaration]
     strlcpy(cwd, pwd, PATH_MAX);
     ^~~~~~~
     strncpy
exec-cmd.c:49:4: error: nested extern declaration of 'strlcpy' [-Werror=nested-externs]
cc1: all warnings being treated as errors

Quoted 2 lines

Kernel has this function defined in tools/include/linux/string.h so

Well yes, a grep locates that :D

Quoted 8 lines

however it has it like this

#if defined(__GLIBC__) && !defined(__UCLIBC__)
extern size_t strlcpy(char *dest, const char *src, size_t size); #endif

Which means it will not work for musl and we need to ensure that we use -D_GNU_SOURCE for it to be included from standard musl headers

I've never built or supported musl, and since this is using the in kernel Makefiles, etc, it isn't something I can patch or fix outside of linux-yocto.

Quoted 7 lines
Quoted 3 lines

I'm just worried about the glibc cases, we can do follow up patches later.

you dont have to defer since you are already touching this area you might very well address this too.
Once the -I path is figured out. All we need is ensure -D_GNU_SOURCE is added to CFLAGS in same place.

I'll see how nasty it looks, but yah, if I'm in modifying things anyway, I'll make sure that is added.

Bruce

Quoted 20 lines
Quoted 18 lines

Bruce

Quoted 14 lines
Quoted 12 lines

Cheers,

Bruce

Quoted 5 lines

Cheers,

Richard

#13 lore raw
In reply to Richard Purdie
Quoted 51 lines · Richard Purdie
Quoted 43 lines · Bruce Ashfield

The existing kernel-devsrc package starts with a full copy of the kernel
source and then starts to strip out elements that are not required.

This results in extra time (I/O) and extra space being taken up in the
final package. The main purpose of the kernel-devsrc package has been to
build modules against the running kernel, not to include a full copy of
the source code for re-building the kernel. The end result was a 600M kernel-devsrc package.

This restructuring of the package uses an approach similar to other distros, where the kernel-devsrc package is for building against the running kernel and uses a curated set of copied infrastructure, versus
a mass copy of the entire kernel.

The differences in this approach versus other is largely due to the architecture support and the split build/source directory of the kernel.

The result is a kernel-devsrc package of about 10M, which is capable of running "make scripts" and compiling kernel modules against the running kernel.

Along with the changes to the copying of the infrascture, we also have the following changes:

- a better/more explicit listing of dependencies for on-target builds of "make scripts" or "make modules_prepare"

- The kernel source is installed into /lib/modules/<version>/build and a symlink created from /usr/src/kernel to the new location. This aligns with the standard location for module support code

- There is also a symlink from /lib/modules/<version>/source ->
build
to reserve a spot for a new package that is simply the kernel source. That package is not part of this update.

Quoted 6 lines

---

v2: drop DEPENDS on perf. We no longer need to depend on perf since the source
is copied before modification.

Quoted 6 lines

It probably won't surprise you to know there were some issues with this patch, sadly.

The main recurring issue (on all arches and poky+poky-lsb) is failure of the kernelmodule.KernelModuleTest.test_kernel_module test. The exact failure varies by arch, for x86-64:

FYI. I have fixed all of these errors, and will submit a v2 shortly. See a few more comments below.

Quoted 12 lines

https://autobuilder.yocto.io/builders/nightly-x86-64/builds/1154/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/utsrelease.h
|   DESCEND  objtool
| /lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.build:37: /lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include: No such file or directory
| make[4]: *** No rule to make target '/lib/modules/4.14.48-yocto-standard/build/tools/build/Build.include'.  Stop.
| make[3]: *** [Makefile:43: /lib/modules/4.14.48-yocto-standard/build/tools/objtool/fixdep-in.o] Error 2
| make[2]: *** [/lib/modules/4.14.48-yocto-standard/build/tools/build/Makefile.include:4: fixdep] Error 2
| make[1]: *** [Makefile:62: objtool] Error 2
| make: *** [Makefile:1647: tools/objtool] Error 2
Quoted 8 lines

For mips:

https://autobuilder.yocto.io/builders/nightly-mips/builds/1115

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/mips/boot/tools/relocs_32.c', needed by 'arch/mips/boot/tools/relocs_32.o'.  Stop.
| make: *** [arch/mips/Makefile:16: archscripts] Error 2

I still can't build lttng-modules for mips, but I have fixed the missing file and ensured that I can make scripts/prepare on the qemu targets.

Quoted 24 lines

(same for mips64)

For arm:

https://autobuilder.yocto.io/builders/nightly-arm/builds/1187/

|   HOSTCC  scripts/sortextable
| make[1]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/unistd-common.h'.  Stop.
| make: *** [arch/arm/Makefile:319: archheaders] Error 2

For arm64:

https://autobuilder.yocto.io/builders/nightly-arm64/builds/1101/steps/Running%20Sanity%20Tests/logs/stdio

|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
| make[1]: *** No rule to make target 'arch/arm64/kernel/vdso/vdso.lds', needed by 'arch/arm64/kernel/vdso/vdso.so.dbg'.  Stop.
| make: *** [arch/arm64/Makefile:160: vdso_prepare] Error 2

There was also a failure in building the build-appliance image:

https://autobuilder.yocto.io/builders/build-appliance/builds/1110

Quoted 9 lines

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/steps/BuildImages_4/logs/stdio

Error: Transaction check error:
file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64 file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586 conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

And that leaves this error.

I've not been able to reproduce it, and I've been looking at the elfutils RDEPENDS that is part of kernel devsrc, since that is what pulls in libtool as a DEPENDS.

I'm not seeing any difference in the way that it is pulled in, versus the other uses.

In particular, perf also has elfutils as a REDEPENDS, but yet it builds in the same configuration. Can you spot the difference in how it is used ?

elfutils is potentially required at tools build time, hence why it is a RDEPENDS in devsrc, but a DEPENDS in the main linux-yocto recipes. If there's another way to express this, let me know and I can switch to that.

And finally, I did build the old reproducing configuration for multlib that you mentioned before .. can you point me at this config, so I can try again ?

Bruce

Quoted 6 lines

I'll retest with this patch removed just so we can unblock the other patches.

Cheers,

Richard

#14 lore raw
Quoted 28 lines · Bruce Ashfield
Quoted 12 lines · Richard Purdie

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/
steps/BuildImages_4/logs/stdio

Error: Transaction check error:

   file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586

conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64
file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586
conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

And that leaves this error.

I've not been able to reproduce it, and I've been looking at the elfutils RDEPENDS that is part of kernel devsrc, since that is what pulls in libtool as a DEPENDS.

I'm not seeing any difference in the way that it is pulled in, versus the other uses.

In particular, perf also has elfutils as a REDEPENDS, but yet it builds
in the same configuration. Can you spot the difference in how it is used ?

Quoted 8 lines

elfutils is potentially required at tools build time, hence why it is a RDEPENDS in devsrc, but a DEPENDS in the main linux-yocto recipes. If there's another way to express this, let me know and I can switch to that.

And finally, I did build the old reproducing configuration for multlib that you mentioned before .. can you point me at this config, so I can try again ?

This is a timely reminder that I've been meaning to look at this. I think the config is:
t
MACHINE=qemux86
require conf/multilib.conf
MULTILIBS = "multilib:lib64" DEFAULTTUNE_virtclass-multilib-lib64 = "x86-64"

then bitbake lib64-core-image-sato-sdk

which seems like an odd mix of 64bit with a 32 bit kernel but is nonetheless what it appears to be building. I suspect it will fail the same way with the x86-64 machine too though.

I have a build running now to check if I can replicate and perhaps dig into it further.

Cheers,

Richard

#15 lore raw
Quoted 53 lines · On Thu, 2018-07-26 at 15:17 +0100, [email protected] wrote:
Quoted 39 lines · Bruce Ashfield
Quoted 7 lines · Richard Purdie

and also a failure in one of the multilib builds, probably from different dependencies pulled in by kernel-devsrc:

https://autobuilder.yocto.io/builders/nightly-multilib/builds/113
9/
steps/BuildImages_4/logs/stdio

Quoted 7 lines

Error: Transaction check error:

   file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586

conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64
file /usr/bin/libtoolize from install of libtool-2.4.6-
r0.0.i586
conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

And that leaves this error.

I've not been able to reproduce it, and I've been looking at the elfutils RDEPENDS that is part of kernel devsrc, since that is what pulls in libtool as a DEPENDS.

I'm not seeing any difference in the way that it is pulled in, versus
the other uses.

In particular, perf also has elfutils as a REDEPENDS, but yet it builds
in the same configuration. Can you spot the difference in how it is used ?

elfutils is potentially required at tools build time, hence why it is
a RDEPENDS in devsrc, but a DEPENDS in the main linux-yocto recipes.
If there's another way to express this, let me know and I can switch
to that.

Quoted 4 lines

And finally, I did build the old reproducing configuration for multlib that you mentioned before .. can you point me at this config,
so I can try again ?

This is a timely reminder that I've been meaning to look at this. I think the config is:
t
MACHINE=qemux86
require conf/multilib.conf
MULTILIBS = "multilib:lib64" DEFAULTTUNE_virtclass-multilib-lib64 = "x86-64"

Quoted 8 lines

then bitbake lib64-core-image-sato-sdk

which seems like an odd mix of 64bit with a 32 bit kernel but is nonetheless what it appears to be building. I suspect it will fail the same way with the x86-64 machine too though.

I have a build running now to check if I can replicate and perhaps dig into it further.

I've confirmed the above does reproduce the failure. The logs are also helpful and show that whilst it mostly installs lib64-* packages, it also installs a handful of "normal" ones.

What appears to happen is it installs kernel-devsrc, which depends on elfutils. Since its a "devel" image, it installs the corresponding -dev packages, which means elfutils-dev. elfutils-dev rrecommends libtool- dev.

Since there are other lib64-* packages, one is bound to have a -dev package which installs lib64-libtool-dev.

libtool-dev depends on libtool, lib64-libtool-dev on lib64-libtool.

Then we discover you can't install libtool and lib64-libtool onto the system at the same time as they're not compatible with each other, hence the error message.

I tried a quick hack to the elfutils recipe:

package_depchains_append () {
rreclist = bb.utils.explode_dep_versions2(d.getVar('RRECOMMENDS_elfutils-dev') or "") if "libtool-dev" in rreclist:
del rreclist["libtool-dev"]
d.setVar('RRECOMMENDS_elfutils-dev', bb.utils.join_deps(rreclist, commasep=False))
}

which is pretty evil but proves this is the only issue we have to solve since with the hack, the build completes.

So I'm not sure how to fix it but at least we can say why it breaks...

Cheers,

Richard

#16 lore raw
In reply to Bruce Ashfield
Quoted 10 lines · Bruce Ashfield
Quoted 9 lines

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/
steps/BuildImages_4/logs/stdio

Error: Transaction check error:

   file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586

conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64
file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586
conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

Quoted 5 lines

And that leaves this error.

I've not been able to reproduce it, and I've been looking at the elfutils RDEPENDS that is part of kernel devsrc, since that is what pulls in libtool as a DEPENDS.

I've just sent out two patches which together should fix this one, they did locally at least...

Cheers,

Richard

#17 lore raw
Quoted 11 lines · On Mon, Jul 30, 2018 at 7:26 PM, <[email protected]> wrote:
Quoted 10 lines · Bruce Ashfield
Quoted 9 lines

https://autobuilder.yocto.io/builders/nightly-multilib/builds/1139/
steps/BuildImages_4/logs/stdio

Error: Transaction check error:

   file /usr/bin/libtool from install of libtool-2.4.6-r0.0.i586

conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64
file /usr/bin/libtoolize from install of libtool-2.4.6-r0.0.i586
conflicts with file from package lib64-libtool-2.4.6-r0.0.x86_64

Quoted 8 lines
Quoted 5 lines

And that leaves this error.

I've not been able to reproduce it, and I've been looking at the elfutils RDEPENDS that is part of kernel devsrc, since that is what pulls in libtool as a DEPENDS.

I've just sent out two patches which together should fix this one, they did locally at least...

Nice. I see them!

I have a v2 of this patch ready to go, but am out of the office for the next few days. When I'm to my final vacation destination, I'll log into my build machine and send that patch.

Bruce

Quoted 9 lines

Cheers,

Richard
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"