e2fsprogs 1.47 do package Exception: KeyError: 'getpwuid(): uid not found: 1000'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

e2fsprogs 1.47 do package Exception: KeyError: 'getpwuid(): uid not found: 1000'

Jump to solution
590 Views
gufengzi
Contributor III

jt@kylin:~/src/yocto_imx/build-qpxwayland$ bitbake -c package e2fsprogs
Loading cache: 100% |########################################################################################################################################| Time: 0:00:00
Loaded 5303 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6qpsabresd"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "6.1-mickledore"
TUNE_FEATURES = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:0a98281d37b0bd8dc1548c390216cb3978e36e0e"
meta-oe
meta-multimedia
meta-python = "HEAD:75cf318cef3b4ee81fad2782cf063ecd69ba8842"
meta-freescale = "HEAD:9b00d40b787c2b7105ce209f5635cc1a0cab81ca"
meta-freescale-3rdparty = "HEAD:93ba05e3a16a028b770fa1e813b13eb87a59ac63"
meta-freescale-distro = "HEAD:b09c18a3f649f0cf1b40432bb39e76ba16fe94e2"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:6efe87f014c5bdcbda30f06156ee11d8bc3dc7fe"
meta-nxp-demo-experience = "HEAD:7f34a32c7877e55e87b6a99e90da4128ed632bf2"
meta-arm
meta-arm-toolchain = "HEAD:0e043288fd0b17fbf31cf00ae33045107a991144"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:af4dcba009ba98250315520f3003fde4ee164cce"
meta-gnome
meta-networking
meta-filesystems = "HEAD:75cf318cef3b4ee81fad2782cf063ecd69ba8842"
meta-qt6 = "HEAD:1406d0a85525a71fe5d7892d7f915404290a78ad"
meta-parsec
meta-tpm = "HEAD:d7db0a3bd1a8639df7570483f003ce00cbe274a2"
meta-virtualization = "HEAD:56593e277a377157944a6676e57497066b770a35"

Initialising tasks: 100% |###################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 1 Local 0 Mirrors 0 Missed 1 Current 226 (0% match, 99% complete)
NOTE: Executing Tasks
WARNING: e2fsprogs-1.47.0-r0 do_package: KeyError in ./package/usr/lib/e2fsprogs
ERROR: e2fsprogs-1.47.0-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: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:sstate_report_unihash(d)
0003:
File: '/home/tjt/src/yocto_imx/sources/poky/meta/classes-global/sstate.bbclass', lineno: 903, function: sstate_report_unihash
0899: report_unihash = getattr(bb.parse.siggen, 'report_unihash', None)
0900:
0901: if report_unihash:
0902: ss = sstate_state_fromvars(d)
*** 0903: report_unihash(os.getcwd(), ss['task'], d)
0904:}
0905:
0906:#
0907:# Shell function to decompress and prepare a package for installation
File: '/home/tjt/src/yocto_imx/sources/poky/bitbake/lib/bb/siggen.py', lineno: 649, function: report_unihash
0645:
0646: if "." in self.method:
0647: (module, method) = self.method.rsplit('.', 1)
0648: locs['method'] = getattr(importlib.import_module(module), method)
*** 0649: outhash = bb.utils.better_eval('method(path, sigfile, task, d)', locs)
0650: else:
0651: outhash = bb.utils.better_eval(self.method + '(path, sigfile, task, d)', locs)
0652:
0653: try:
File: '/home/tjt/src/yocto_imx/sources/poky/bitbake/lib/bb/utils.py', lineno: 434, function: better_eval
0430: if extraglobals:
0431: ctx = copy.copy(ctx)
0432: for g in extraglobals:
0433: ctx[g] = extraglobals[g]
*** 0434: return eval(source, ctx, locals)
0435:
0436:@contextmanager
0437:def fileslocked(files, *args, **kwargs):
0438: """Context manager for locking and unlocking file locks."""
File: '<string>', lineno: 1, function: <module>
File "<string>", line 1, in <module>

File: '/home/tjt/src/yocto_imx/sources/poky/meta/lib/oe/sstatesig.py', lineno: 650, function: OEOuthashBasic
0646: update_hash("\n")
0647:
0648: # Process this directory and all its child files
0649: if include_root or root != ".":
*** 0650: process(root)
0651: for f in files:
0652: if f == 'fixmepath':
0653: continue
0654: process(os.path.join(root, f))
File: '/home/tjt/src/yocto_imx/sources/poky/meta/lib/oe/sstatesig.py', lineno: 593, function: process
0589: except KeyError as e:
0590: bb.warn("KeyError in %s" % path)
0591: msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
0592: "any user/group on target. This may be due to host contamination." % (e, path, s.st_uid, s.st_gid))
*** 0593: raise Exception(msg).with_traceback(e.__traceback__)
0594:
0595: if include_timestamps:
0596: update_hash(" %10d" % s.st_mtime)
0597:
File: '/home/tjt/src/yocto_imx/sources/poky/meta/lib/oe/sstatesig.py', lineno: 587, function: process
0583: else:
0584: add_perm(stat.S_IXOTH, 'x')
0585:
0586: try:
*** 0587: update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
0588: update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
0589: except KeyError as e:
0590: bb.warn("KeyError in %s" % path)
0591: msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
Exception: Exception: KeyError: 'getpwuid(): uid not found: 1000'
Path ./package/usr/lib/e2fsprogs is owned by uid 1000, gid 1000, which doesn't match any user/group on target. This may be due to host contamination.

ERROR: Logfile of failure stored in: /home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/e2fsprogs/1.47.0-r0/temp/log.do_package.847333
ERROR: Task (/home/tjt/src/yocto_imx/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 922 tasks of which 921 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/tjt/src/yocto_imx/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_package
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
tjt@kylin:~/src/yocto_imx/build-qpxwayland$

0 Kudos
1 Solution
556 Views
gufengzi
Contributor III

clean up the package

download and compile again

success

View solution in original post

0 Kudos
1 Reply
557 Views
gufengzi
Contributor III

clean up the package

download and compile again

success

0 Kudos