<?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>14069</bug_id>
          
          <creation_ts>2020-09-30 02:33:39 +0000</creation_ts>
          <short_desc>nativesdk-packagegroup-sdk-host-1.0-r12 do_package: Error executing a python function in exec_python_func() autogener</short_desc>
          <delta_ts>2020-10-01 08:44:11 +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>devtools / tool chain</component>
          <version>3.1.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>duziheng2010</reporter>
          <assigned_to>duziheng2010</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88271</commentid>
    <comment_count>0</comment_count>
    <who name="">duziheng2010</who>
    <bug_when>2020-09-30 02:33:39 +0000</bug_when>
    <thetext>dzh@zihengdu-nb:~/poky/poky/build$ bitbake meta-toolchain
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 1466 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = &quot;1.46.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;powerpc-poky-linux&quot;
MACHINE              = &quot;t1024rdb&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;3.1.3&quot;
TUNE_FEATURES        = &quot;m32 fpu-hard e5500 bigendian&quot;
TARGET_FPU           = &quot;hard&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;dunfell:012ad10a89a889c21e67c27dc37d22520212548f&quot;
meta-freescale       = &quot;dunfell:2da53ce8330d4bb0f7cb7a2ae186b7475ba02d52&quot;

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 291 Found 0 Missed 291 Current 1341 (0% match, 82% complete)
NOTE: Executing Tasks
ERROR: nativesdk-packagegroup-sdk-host-1.0-r12 do_package: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:fixup_perms(d)
     0003:
File: &apos;/home/dzh/poky/poky/meta/classes/package.bbclass&apos;, lineno: 878, function: fixup_perms
     0874:    for path in target_path_vars:
     0875:        dir = d.getVar(path) or &quot;&quot;
     0876:        if dir == &quot;&quot;:
     0877:            continue
 *** 0878:        fs_perms_table[dir] = fs_perms_entry(d.expand(&quot;%s 0755 root root false - - -&quot; % (dir)))
     0879:
     0880:    # Now we actually load from the configuration files
     0881:    for conf in get_fs_perms_list(d).split():
     0882:        if not os.path.exists(conf):
File: &apos;/home/dzh/poky/poky/meta/classes/package.bbclass&apos;, lineno: 750, function: __init__
     0746:            lsplit = line.split()
     0747:            if len(lsplit) == 3 and lsplit[1].lower() == &quot;link&quot;:
     0748:                self._setlink(lsplit[0], lsplit[2])
     0749:            elif len(lsplit) == 8:
 *** 0750:                self._setdir(lsplit[0], lsplit[1], lsplit[2], lsplit[3], lsplit[4], lsplit[5], lsplit[6], lsplit[7])
     0751:            else:
     0752:                msg = &quot;Fixup Perms: invalid config line %s&quot; % line
     0753:                package_qa_handle_error(&quot;perm-config&quot;, msg, d)
     0754:                self.path = None
File: &apos;/home/dzh/poky/poky/meta/classes/package.bbclass&apos;, lineno: 762, function: _setdir
     0758:            self.path = os.path.normpath(path)
     0759:            self.link = None
     0760:            self.mode = self._procmode(mode)
     0761:            self.uid  = self._procuid(uid)
 *** 0762:            self.gid  = self._procgid(gid)
     0763:            self.walk = walk.lower()
     0764:            self.fmode = self._procmode(fmode)
     0765:            self.fuid = self._procuid(fuid)
     0766:            self.fgid = self._procgid(fgid)
File: &apos;/home/dzh/poky/poky/meta/classes/package.bbclass&apos;, lineno: 793, function: _procgid
     0789:                return -1
     0790:            elif gid.isdigit():
     0791:                return int(gid)
     0792:            else:
 *** 0793:                return grp.getgrnam(gid).gr_gid
     0794:
     0795:        # Use for debugging the entries
     0796:        def __str__(self):
     0797:            if self.link:
Exception: KeyError: &apos;getgrnam(): name not found: root&apos;

ERROR: Logfile of failure stored in: /home/dzh/poky/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-packagegroup-sdk-host/1.0-r12/temp/log.do_package.24741
ERROR: Task (/home/dzh/poky/poky/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb:do_package) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88279</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-10-01 07:39:54 +0000</bug_when>
    <thetext>This:
  KeyError: &apos;getgrnam(): name not found: root&apos;
is a pretty odd error. Is there anything unusual about your build environment?
Please provide details.

Also try building without the meta-freescale layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88284</commentid>
    <comment_count>2</comment_count>
    <who name="">duziheng2010</who>
    <bug_when>2020-10-01 08:44:11 +0000</bug_when>
    <thetext>thanks you , i known why,Because when solving another compilation problem, the group file in tmp build dir was deleted by mistake，copy the linux /etc/group ，then it worked.sorry i forgot to close this bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>