On Tue, Apr 13, 2021 at 3:49 AM Bertrand Marquis
<[email protected]> wrote:
>
> Hi Christopher,
>
> > On 13 Apr 2021, at 07:43, Christopher Clark via lists.yoctoproject.org
> > <[email protected]> wrote:
> >
>
> Very nice feature, we are working on adding support for arm on XTF and this
> will be really usefull.
>
> On my test I have some errors during the packing of XTF:
>
> ERROR: xtf-0+gitAUTOINC+8ab1513972-r0 do_package_write_rpm: Error executing a
> python function in exec_python_func() autogenerated:
oh wow! - thanks for trying it and for this bug report. I've been
building with ipk packaging rather than rpm, so maybe that's why I
haven't encountered this - I'm not sure - I will take a look.
Christopher
>
> The stack trace of python calls that resulted in this exception/failure was:
> File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
> 0001:
> *** 0002:do_package_rpm(d)
> 0003:
> File:
> '/home/bermar01/Development/xen-dev/yocto-master/poky/meta/classes/package_rpm.bbclass',
> lineno: 718, function: do_package_rpm
> 0714:
> 0715: # Build the rpm package!
> 0716: d.setVar('BUILDSPEC', cmd + "\n" + cleanupcmd + "\n")
> 0717: d.setVarFlag('BUILDSPEC', 'func', '1')
> *** 0718: bb.build.exec_func('BUILDSPEC', d)
> 0719:
> 0720: if d.getVar('RPM_SIGN_PACKAGES') == '1':
> 0721: bb.build.exec_func("sign_rpm", d)
> 0722:}
> File:
> '/home/bermar01/Development/xen-dev/yocto-master/poky/bitbake/lib/bb/build.py',
> lineno: 256, function: exec_func
> 0252: with bb.utils.fileslocked(lockfiles):
> 0253: if ispython:
> 0254: exec_func_python(func, d, runfile, cwd=adir)
> 0255: else:
> *** 0256: exec_func_shell(func, d, runfile, cwd=adir)
> 0257:
> 0258: try:
> 0259: curcwd = os.getcwd()
> 0260: except:
> File:
> '/home/bermar01/Development/xen-dev/yocto-master/poky/bitbake/lib/bb/build.py',
> lineno: 503, function: exec_func_shell
> 0499: with open(fifopath, 'r+b', buffering=0) as fifo:
> 0500: try:
> 0501: bb.debug(2, "Executing shell function %s" % func)
> 0502: with open(os.devnull, 'r+') as stdin, logfile:
> *** 0503: bb.process.run(cmd, shell=False, stdin=stdin,
> log=logfile, extrafiles=[(fifo,readfifo)])
> 0504: except bb.process.ExecutionError as exe:
> 0505: # Find the backtrace that the shell trap generated
> 0506: backtrace_marker_regex = re.compile(r"WARNING:
> Backtrace \(BB generated script\)")
> 0507: stdout_lines = (exe.stdout or "").split("\n")
> File:
> '/home/bermar01/Development/xen-dev/yocto-master/poky/bitbake/lib/bb/process.py',
> lineno: 184, function: run
> 0180: if not stderr is None:
> 0181: stderr = stderr.decode("utf-8")
> 0182:
> 0183: if pipe.returncode != 0:
> *** 0184: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
> 0185: return stdout, stderr
> Exception: bb.process.ExecutionError: Execution of
> '/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/temp/run.BUILDSPEC.25424'
> failed with exit code 1:
>
> Processing files: xtf-0+git0+8ab1513972-r0.core2_64
> error: Recognition of file
> "/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/package/usr/libexec/xtf/tests/xsa-170/test-hvm64-xsa-170"
> failed: mode 100755 Bad magic format `, bad note description size %#lx' (bad
> format char: #)
> error: Recognition of file
> "/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/package/usr/libexec/xtf/tests/fpu-exception-emulation/test-hvm64-fpu-exception-emulation"
> failed: mode 100755 Bad magic format `, bad note description size %#lx' (bad
> format char: #)
> error: Recognition of file
> "/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/package/usr/libexec/xtf/tests/xsa-269/test-hvm64-xsa-269"
> failed: mode 100755 Bad magic format `, bad note description size %#lx' (bad
> format char: #)
> error: Recognition of file
> "/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/package/usr/libexec/xtf/tests/xsa-188/test-hvm64-xsa-188"
> failed: mode 100755 Bad magic format `, bad note description size %#lx' (bad
> format char: #)
> error: Recognition of file
> "/home/bermar01/Development/xen-dev/build-master/metavirt-host-x86_64-4.14-release.prj/tmp/work/core2-64-poky-linux/xtf/0+gitAUTOINC+8ab1513972-r0/package/usr/libexec/xtf/tests/xsa-221/test-hvm64-xsa-221"
> failed: mode 100755 Bad magic format `, bad note description size %#lx' (bad
> format char: #)
>
> I cannot really confirm where this is coming from and it can really be that
> this is a consequence of something changed in poky or oe.
>
> Cheers
> Bertrand
>
> > Signed-off-by: Christopher Clark <[email protected]>
> > ---
> > recipes-extended/xen/xtf_git.bb | 61 +++++++++++++++++++++++++++++++++
> > 1 file changed, 61 insertions(+)
> > create mode 100644 recipes-extended/xen/xtf_git.bb
> >
> > diff --git a/recipes-extended/xen/xtf_git.bb
> > b/recipes-extended/xen/xtf_git.bb
> > new file mode 100644
> > index 0000000..6dc0f8d
> > --- /dev/null
> > +++ b/recipes-extended/xen/xtf_git.bb
> > @@ -0,0 +1,61 @@
> > +SUMMARY = "Xen Test Framework"
> > +HOMEPAGE = "https://xenbits.xenproject.org/docs/xtf/"
> > +LICENSE = "BSD-2-Clause"
> > +
> > +SRC_URI = "git://xenbits.xen.org/xtf"
> > +SRCREV = "8ab15139728a8efd3ebbb60beb16a958a6a93fa1"
> > +
> > +COMPATIBLE_HOST = '(x86_64.*).*-linux'
> > +
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=a5680865974e05cf0510615ee1d745d8"
> > +
> > +PV = "0+git${SRCPV}"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +inherit python3native
> > +
> > +# To build 32-bit binaries some files from 32-bit glibc are needed.
> > +# To enable multilib, please add the following to your local.conf -:
> > +#
> > +# require conf/multilib.conf
> > +# MULTILIBS = "multilib:lib32"
> > +# DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
> > +
> > +# Use this multilib prefix for x86 32-bit to match local.conf:
> > +MLPREFIX32 = "lib32-"
> > +# Add the multilib 32-bit glibc to DEPENDS only when necessary:
> > +# The DEPENDS on a multilib 32-bit glibc is only added when target is
> > x86-64
> > +# This x86-64 override is never intended for native use, so clear that.
> > +GLIBC32 = ""
> > +GLIBC32_x86-64 = "${MLPREFIX32}glibc"
> > +GLIBC32_class-native = ""
> > +DEPENDS += "${GLIBC32}"
> > +
> > +PACKAGES = "${PN}"
> > +
> > +FILES_${PN} = " \
> > + ${libexecdir}/* \
> > + "
> > +
> > +RDEPENDS_${PN} = " \
> > + xen-tools-xl \
> > + python3 \
> > + "
> > +
> > +do_compile() {
> > + oe_runmake CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}
> > -I${RECIPE_SYSROOT}/../${MLPREFIX32}recipe-sysroot/usr/include" \
> > + CPP="${CPP}" \
> > + OBJCOPY="${OBJCOPY}" \
> > + PYTHON="${PYTHON}"
> > + # switch the shebang to python3
> > + sed 's,^\(#!/usr/bin/env python\)$,\13,' -i "${B}/xtf-runner"
> > +}
> > +
> > +do_install() {
> > + oe_runmake install DESTDIR="${D}" xtfdir="${libexecdir}/${BPN}"
> > PYTHON="${PYTHON}"
> > +}
> > +
> > +INSANE_SKIP = "arch"
> > +INHIBIT_PACKAGE_STRIP = "1"
> > +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> > --
> > 2.25.1
> >
> >
> >
> >
>
> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6362):
https://lists.yoctoproject.org/g/meta-virtualization/message/6362
Mute This Topic: https://lists.yoctoproject.org/mt/82058828/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-