Skip to content

abicheck failure: Job Failed #69816

The module affected

Job #69816 failed for ffeb05bb:

What is the action to reproduce the bug?

(Steps to reproduce)

What is the result you see?


ERROR: cni-v1.0.1+git35efaabf93d23a28fb2fb01dccbe80caed196d19-r0 do_abicheck: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_abicheck(d)
     0003:
File: '/tmp/workspace.pGAz0470Kn/meta-binaryaudit/classes/abicheck.bbclass', lineno: 10, function: do_abicheck
     0006:IMG_DIR="${WORKDIR}/image"
     0007:
     0008:python do_abicheck() {
     0009:       if "class-target" == d.getVar("CLASSOVERRIDE"):
 *** 0010:           binary_audit_gather_abixml(d)
     0011:           binary_audit_abixml_compare_to_ref(d)
     0012:}
     0013:
     0014:addtask abicheck after do_install before do_package
File: '/tmp/workspace.pGAz0470Kn/meta-binaryaudit/classes/abicheck.bbclass', lineno: 48, function: binary_audit_gather_abixml
     0044:        with open(out_fn, "w") as f:
     0045:            f.write(out)
     0046:            f.close()
     0047:    else:
 *** 0048:        for out, out_fn in abicheck.serialize_artifacts(abixml_dir, artifact_dir, warn):
     0049:            with open(out_fn, "w") as f:
     0050:                f.write(out)
     0051:                f.close()
     0052:
File: '/tmp/workspace.pGAz0470Kn/build/../meta-binaryaudit/lib/binaryaudit/abicheck.py', lineno: 121, function: serialize_artifacts
     0117:            if not out:
     0118:                util.warn("Empty dump output for '{}'".format(fn))
     0119:                return
     0120:
 *** 0121:            sn = get_soname_from_xml(out)
     0122:
     0123:            out_fn = util.create_path_to_xml(sn, adir, fn)
     0124:
     0125:            yield out, out_fn
File: '/tmp/workspace.pGAz0470Kn/build/../meta-binaryaudit/lib/binaryaudit/abicheck.py', lineno: 18, function: get_soname_from_xml
     0014:    return head == exp
     0015:
     0016:
     0017:def get_soname_from_xml(xml):
 *** 0018:    r = ElementTree.fromstring(xml)
     0019:    try:
     0020:        return r.attrib["soname"]
     0021:    except (AttributeError, KeyError):
     0022:        return ""
File: '/usr/lib/python3.8/xml/etree/ElementTree.py', lineno: 1320, function: XML
     1316:
     1317:    """
     1318:    if not parser:
     1319:        parser = XMLParser(target=TreeBuilder())
 *** 1320:    parser.feed(text)
     1321:    return parser.close()
     1322:
     1323:
     1324:def XMLID(text, parser=None):
Exception: xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 11922, column 52

NOTE: recipe cni-v1.0.1+git35efaabf93d23a28fb2fb01dccbe80caed196d19-r0: task do_abicheck: Failed
ERROR: Logfile of failure stored in: /tmp/workspace.pGAz0470Kn/build/tmp/work/core2-64-oniro-linux-musl/cni/v1.0.1+git35efaabf93d23a28fb2fb01dccbe80caed196d19-r0/temp/log.do_abicheck.1559863
ERROR: Task (/tmp/workspace.pGAz0470Kn/oe-core/../meta-virtualization/recipes-networking/cni/cni_git.bb:do_abicheck) failed with exit code '1'

Tested version

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "x86_64-oniro-linux-musl"
MACHINE              = "qemux86-64"
DISTRO               = "oniro-linux"
DISTRO_VERSION       = "2.0.0-alpha"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta-oniro-staging   = "HEAD:ffeb05bb96dc787129d016e56d81bdd6e3031747"
meta                 = "HEAD:a4bfb5ceb5cf8c0c6d27225b27ef10c0b9dceccb"
meta-arm             
meta-arm-toolchain   = "HEAD:78fce73c3803aba82149a3a03fde1b708f5424fa"
meta-clang           = "HEAD:d43df79361a8cdee6f1c16f072411f13005ca5c3"
meta-zephyr-bsp      
meta-zephyr-core     = "HEAD:7574ff040e5d8fc2c7cbc8c78ac05a14006760b4"
meta-oniro-core      = "HEAD:ffeb05bb96dc787129d016e56d81bdd6e3031747"
meta-openharmony     = "HEAD:9fbbf1d2250f05abc64606c2433758ad29db0b95"
meta-freertos        = "HEAD:98a6838261d36b8f79c5fbae1736492169727a1e"
meta-intel           = "HEAD:ef3aa3064b9bbfa19f600eafb1e7d3473f62af74"
meta-seco-intel      = "HEAD:65a673560211b11986db5785c70254fad190785f"
meta-freescale       = "HEAD:2e785f257ad98581b684f0e32f6d4bb96faefb10"
meta-seco-imx        = "HEAD:b6976d806dad5cff6e071cfdb59ab45c4210604b"
meta-oe              
meta-filesystems     
meta-networking      
meta-perl            
meta-python          = "HEAD:a47ef046619d639dfbd3be2a13ef6d5b40fd40a1"
meta-raspberrypi     = "HEAD:0135a02ea577bd39dd552236ead2c5894d89da1d"
meta-security        = "HEAD:c79262a30bd385f5dbb009ef8704a1a01644528e"
meta-riscv           = "HEAD:70e099d7ceca52a1dde2c978713012f6b20a9891"
meta-rauc            = "HEAD:ea4236412dc4449eff4d52d3ef6b6d230355f936"
meta-java            = "HEAD:1a8059f6b257ebe6fcae6416e499784d976afd24"
meta-virtualization  = "HEAD:90f42b34fd79ae37c4395da11f31a96ad4aeff97"
meta-binaryaudit     = "HEAD:e6b084e14b78360687e0aeafcf0e570847d9875e"

Do you know any workaround of this issue?

Disable abicheck

Do you have a fix for this issue?

No

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information