Skip to contentSkip to conversation

do_kernel_configcheck error after upgrading to release 2.10.0-rc1

DISCUSSION Heyi Guo 1 participant 1 message Oct 13, 2021

lore
Share & tools
lore

Heyi Guo

author
#0 lore raw

Hi all,

After upgrading to openbmc 2.10.0-rc1, I got below error when building linux-aspeed:

ERROR: linux-aspeed-5.10.36+gitAUTOINC+992ac74129-r0 do_kernel_configcheck: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_kernel_configcheck(d)
     0003:
File: '/home/gary/obmc-upstream/meta/classes/kernel-yocto.bbclass', lineno: 570, function: do_kernel_configcheck
     0566:    if analysis:
     0567:        outfile = "{}/{}/cfg/invalid.txt".format(s,kmeta)
     0568:        if os.path.isfile(outfile):
     0569:           os.remove(outfile)
 *** 0570:        with open(outfile, 'w+') as f:
     0571:            f.write( analysis )
     0572:
     0573:        if bsp_check_visibility and os.stat(outfile).st_size > 0:
     0574:            with open (outfile, "r") as myfile:
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/gary/obmc-upstream/build/ali2600/tmp/work-shared/ali2600/kernel-source/meta/cfg/invalid.txt'

ERROR: Logfile of failure stored in: /home/gary/obmc-upstream/build/ali2600/tmp/work/ali2600-openbmc-linux-gnueabi/linux-aspeed/5.10.36+gitAUTOINC+992ac74129-r0/temp/log.do_kernel_configcheck.11057
ERROR: Task (/home/gary/obmc-upstream/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb:do_kernel_configcheck) failed with exit code '1'

It seems no one creates the parent directory "meta/cfg" before trying to create the file "invalid.txt". The error could be got around by manually creating meta/cfg under the specific directory.

Is it a yocto bug or did I miss something?

Thanks,

Heyi