Hi,
I encountered an unusual issue when trying to compile BSP41. Bitbake is throwing 'permission denied' errors during every do_fetch process. It was working fine before the holiday, but now the issue occurs in both existing and newly created folders. It seems that a system change may have caused this issue. I've attached a screenshot below. Has anyone encountered a similar problem before?
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.3/x86_64-nativesdk-libc-4.3.tar.xz;sha256sum=1c35f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030 (will check PREMIRRORS first)
Initialising tasks: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 1090 Local 0 Mirrors 0 Missed 1090 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
ERROR: gettext-minimal-native-0.21-r0 do_fetch: Execution of event handler 'defaultrun_buildstats' failed
Traceback (most recent call last):
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 240, in defaultrun_buildstats(e=<bb.build.TaskSucceeded object at 0x7f8fa6a67e50>):
elif isinstance(e, bb.build.TaskSucceeded):
> write_task_data("passed", os.path.join(taskdir, e.task), e, d)
if e.task == "do_rootfs":
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 88, in write_task_data(status='passed', logfile='/home/xd/workspace/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/buildstats/20250102212637/gettext-minimal-native-0.21-r0/do_fetch', e=<bb.build.TaskSucceeded object at 0x7f8fa6a67e50>, d=<bb.data_smart.DataSmart object at 0x7f8fa6a4bf10>):
f.write(d.expand("Elapsed time: %0.2f seconds\n" % elapsedtime))
> cpu, iostats, resources, childres = get_process_cputime(os.getpid())
if cpu:
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 29, in get_process_cputime(pid=19814):
if os.path.isfile("/proc/%d/io" % pid):
> with open("/proc/%d/io" % pid, "r") as f:
while True:
PermissionError: [Errno 13] Permission denied: '/proc/19814/io'
ERROR: gettext-minimal-native-0.21-r0 do_fetch: Build of do_fetch failed
ERROR: gettext-minimal-native-0.21-r0 do_fetch: Traceback (most recent call last):
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/build.py", line 763, in exec_task
return _exec_task(fn, task, d, quieterr)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/build.py", line 737, in _exec_task
event.fire(TaskSucceeded(task, fn, logfn, localdata), localdata)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/event.py", line 222, in fire
fire_class_handlers(event, d)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/event.py", line 123, in fire_class_handlers
execute_handler(name, handler, event, d)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
ret = handler(event)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 240, in defaultrun_buildstats
write_task_data("passed", os.path.join(taskdir, e.task), e, d)
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 88, in write_task_data
cpu, iostats, resources, childres = get_process_cputime(os.getpid())
File "/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/classes/buildstats.bbclass", line 29, in get_process_cputime
with open("/proc/%d/io" % pid, "r") as f:
PermissionError: [Errno 13] Permission denied: '/proc/19814/io'
ERROR: Task (/home/xd/workspace/fsl-auto-yocto-bsp/sources/poky/meta/recipes-core/gettext/gettext-minimal-native_0.21.bb:do_fetch) failed with exit code '1'
ERROR: texinfo-dummy-native-1.0-r0 do_fetch: Execution of event handler 'defaultrun_buildstats' failed
Thanks,
XD