<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14841</bug_id>
          
          <creation_ts>2022-06-16 14:36:01 +0000</creation_ts>
          <short_desc>AB-INT: arm-poky-linux-gnueabi-objcopy failure on kernel module while signing fit image</short_desc>
          <delta_ts>2022-11-03 14:50:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93517</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-06-16 14:36:01 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/3643/steps/14/logs/stdio

oe-selftest-debian debian11-ty-1


ERROR: linux-yocto-5.15.36+gitAUTOINC+947149960e_4c875cf137-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:split_kernel_module_packages(d)
     0003:
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/classes/kernel-module-split.bbclass&apos;, lineno: 178, function: split_kernel_module_packages
     0174:    module_pattern_prefix = d.getVar(&apos;KERNEL_MODULE_PACKAGE_PREFIX&apos;)
     0175:    module_pattern_suffix = d.getVar(&apos;KERNEL_MODULE_PACKAGE_SUFFIX&apos;)
     0176:    module_pattern = module_pattern_prefix + kernel_package_name + &apos;-module-%s&apos; + module_pattern_suffix
     0177:
 *** 0178:    modules = do_split_packages(d, root=&apos;${nonarch_base_libdir}/modules&apos;, file_regex=module_regex, output_pattern=module_pattern, description=&apos;%s kernel module&apos;, postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends=&apos;%s-%s&apos; % (kernel_package_name, kernel_version))
     0179:    if modules:
     0180:        d.appendVar(&apos;RDEPENDS:&apos; + metapkg, &apos; &apos;+&apos; &apos;.join(modules))
     0181:
     0182:    # If modules-load.d and modprobe.d are empty at this point, remove them to
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/classes/package.bbclass&apos;, lineno: 234, function: do_split_packages
     0230:            d.setVar(&apos;pkg_postinst:&apos; + pkg, postinst)
     0231:        if postrm:
     0232:            d.setVar(&apos;pkg_postrm:&apos; + pkg, postrm)
     0233:        if callable(hook):
 *** 0234:            hook(f, pkg, file_regex, output_pattern, m.group(1))
     0235:
     0236:    d.setVar(&apos;PACKAGES&apos;, &apos; &apos;.join(packages))
     0237:    return list(split_packages)
     0238:
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/classes/kernel-module-split.bbclass&apos;, lineno: 86, function: frob_metadata
     0082:            vals[m.group(1)] = m.group(2)
     0083:        return vals
     0084:
     0085:    def frob_metadata(file, pkg, pattern, format, basename):
 *** 0086:        vals = extract_modinfo(file)
     0087:
     0088:        dvar = d.getVar(&apos;PKGD&apos;)
     0089:
     0090:        # If autoloading is requested, output /etc/modules-load.d/&lt;name&gt;.conf and append
File: &apos;/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/classes/kernel-module-split.bbclass&apos;, lineno: 68, function: extract_modinfo
     0064:                raise msg
     0065:            cmd = &quot;%sobjcopy -j .modinfo -O binary %s %s&quot; % (d.getVar(&quot;HOST_PREFIX&quot;) or &quot;&quot;, tmpkofile, tmpfile)
     0066:        else:
     0067:            cmd = &quot;%sobjcopy -j .modinfo -O binary %s %s&quot; % (d.getVar(&quot;HOST_PREFIX&quot;) or &quot;&quot;, file, tmpfile)
 *** 0068:        subprocess.check_call(cmd, shell=True)
     0069:        # errors=&apos;replace&apos;: Some old kernel versions contain invalid utf-8 characters in mod descriptions (like 0xf6, &apos;ö&apos;)
     0070:        f = open(tmpfile, errors=&apos;replace&apos;)
     0071:        l = f.read().split(&quot;\000&quot;)
     0072:        f.close()
File: &apos;/usr/lib/python3.9/subprocess.py&apos;, lineno: 373, function: check_call
     0369:    if retcode:
     0370:        cmd = kwargs.get(&quot;args&quot;)
     0371:        if cmd is None:
     0372:            cmd = popenargs[0]
 *** 0373:        raise CalledProcessError(retcode, cmd)
     0374:    return 0
     0375:
     0376:
     0377:def check_output(*popenargs, timeout=None, **kwargs):
Exception: subprocess.CalledProcessError: Command &apos;arm-poky-linux-gnueabi-objcopy -j .modinfo -O binary /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-176364/tmp/work/beaglebone_yocto-poky-linux-gnueabi/linux-yocto/5.15.36+gitAUTOINC+947149960e_4c875cf137-r0/package/lib/modules/5.15.36-yocto-standard/kernel/fs/nls/nls_cp737.ko /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-176364/tmp/work/beaglebone_yocto-poky-linux-gnueabi/linux-yocto/5.15.36+gitAUTOINC+947149960e_4c875cf137-r0/tmpfwkn17wj&apos; returned non-zero exit status 1.
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-176364/tmp/work/beaglebone_yocto-poky-linux-gnueabi/linux-yocto/5.15.36+gitAUTOINC+947149960e_4c875cf137-r0/temp/log.do_package.3515822
NOTE: recipe linux-yocto-5.15.36+gitAUTOINC+947149960e_4c875cf137-r0: task do_package: Failed
ERROR: Task (/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-kernel/linux/linux-yocto_5.15.bb:do_package) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 801 tasks of which 764 didn&apos;t need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-176364/tmp/log/error-report/error_report_20220612015905.txt
You can send the errors to a reports server by running:
  send-error-report /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-176364/tmp/log/error-report/error_report_20220612015905.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.
Summary: 1 task failed:
  /home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/recipes-kernel/linux/linux-yocto_5.15.bb:do_package
Summary: There was 1 ERROR message, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93523</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-06-16 14:52:41 +0000</bug_when>
    <thetext>This system was behaving oddly and dropped itself out of the pool ~ 3 days  after this happened so perhaps that&apos;s related. It is still off-line to run diagnostic tests.

We should catch errors like this and get better logging for this type of failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94058</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-09-22 14:53:39 +0000</bug_when>
    <thetext>Leaving as we need to improve logging in this kind of failure case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94347</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-11-03 14:50:10 +0000</bug_when>
    <thetext>Re-open if seen again. -- YP bug review</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>