Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2677EC433F5 for ; Wed, 3 Nov 2021 20:45:23 +0000 (UTC) Subject: Bitbake build fails because of a python function To: yocto@lists.yoctoproject.org From: "Maksym Iliev" X-Originating-Location: Montreal, Quebec, CA (66.22.161.94) X-Originating-Platform: Windows Chrome 95 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 03 Nov 2021 13:45:22 -0700 Message-ID: Content-Type: multipart/alternative; boundary="r7F06pUfoMgG02XwAAH9" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 03 Nov 2021 20:45:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/55234 --r7F06pUfoMgG02XwAAH9 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello guys. I am brand new to yocto and bitbake and I am looking for any he= lp/advice/hints I can get. I have inherited someone else's code for buildin= g yocto project images, but the bitbake fails with the following error: ERROR: perl-5.30.1-r0 do_package_write_rpm: Error executing a python functi= on in exec_func_python()=20 autogenerated:The stack trace of python calls that resulted in this excepti= on/failure was: File: 'exec_func_python() autogenerated', lineno: 2, functi= on: 0001: ***=20 0002:do_package_rpm(d) =20 0003: File: '/srv/yocto/poky/meta/classes/package_rpm.bbclass', lineno: 712, func= tion: do_package_rpm =20 0708: =20 0709: # Build the rpm package! =20 0710: d.setVar('BUILDSPEC', cmd + \"\\n\" + cleanupcmd + \"\\n\") =20 0711: d.setVarFlag('BUILDSPEC', 'func', '1') 0712: bb.build.exec_func('BUILDSPEC', d) =20 0713: =20 0714: if d.getVar('RPM_SIGN_PACKAGES') =3D=3D '1': 0715: bb.build.exec_func(\"sign_rpm\", d) =20 0716:} File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 254, function: exe= c_func =20 0250: with bb.utils.fileslocked(lockfiles): =20 0251: if ispython: =20 0252: exec_func_python(func, d, runfile, cwd=3Dadir) =20 0253: else: ***=20 0254: exec_func_shell(func, d, runfile, cwd=3Dadir) =20 0255: =20 0256: try: =20 0257: curcwd =3D os.getcwd() =20 0258: except: File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 455, function: exe= c_func_shell =20 0451: with open(fifopath, 'r+b', buffering=3D0) as fifo: =20 0452: try: =20 0453: bb.debug(2, \"Executing shell function %s\" % func) =20 0454: with open(os.devnull, 'r+') as stdin, logfile: ***=20 0455: bb.process.run(cmd, shell=3DFalse, stdin=3Dstdin, log= =3Dlogfile, extrafiles=3D[(fifo,readfifo)]) =20 0456: finally: =20 0457: os.unlink(fifopath) =20 0458: =20 0459: bb.debug(2, \"Shell function %s finished\" % func) File: '/srv/yocto/poky/bitbake/lib/bb/process.py', lineno: 184, function: r= un =20 0180: =20 0181: if pipe.returncode !=3D 0: =20 0182: if log: =20 0183: # Don't duplicate the output in the exception if logging i= t ***=20 0184: raise ExecutionError(cmd, pipe.returncode, None, None) = =20 0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr) = =20 0186: return stdout, stderr Exception: bb.process.ExecutionError: Execut= ion of '/srv/yocto/build/tmp/work/corei7-64-poky-linux/perl/5.30.1-r0/temp/= run.BUILDSPEC.35372' failed with exit code 1 Would anyone be able to point = me in the right direction as to what could be potentially causing this issu= e? Thanks in advance, Maksym --r7F06pUfoMgG02XwAAH9 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hello guys. I am brand new to yocto and bitbake and I am looking for any= help/advice/hints I can get. I have inherited someone else's code for buil= ding yocto project images, but the bitbake fails with the following error:<= /p>

ERROR: perl-5.30.1-r0 do_package_write_rpm: Error executing a python =
function in exec_func_python()=20
autogenerated:The stack trace of python calls that resulted in this excepti=
on/failure was: File: 'exec_func_python() autogenerated', lineno: 2, functi=
on: <module>
0001: ***=20
0002:do_package_rpm(d)    =20
0003:
File: '/srv/yocto/poky/meta/classes/package_rpm.bbclass', lineno: 712, func=
tion: do_package_rpm    =20
0708:    =20
0709:    # Build the rpm package!    =20
0710:    d.setVar('BUILDSPEC', cmd + \"\\n\" + cleanupcmd + \"\\n\")    =20
0711:    d.setVarFlag('BUILDSPEC', 'func', '1')
0712:    bb.build.exec_func('BUILDSPEC', d)    =20
0713:    =20
0714:    if d.getVar('RPM_SIGN_PACKAGES') =3D=3D '1':
0715:        bb.build.exec_func(\"sign_rpm\", d)    =20
0716:}
File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 254, function: exe=
c_func    =20
0250:    with bb.utils.fileslocked(lockfiles):    =20
0251:    if ispython:    =20
0252:            exec_func_python(func, d, runfile, cwd=3Dadir)    =20
0253:    else: ***=20
0254:            exec_func_shell(func, d, runfile, cwd=3Dadir)    =20
0255:    =20
0256:    try:    =20
0257:        curcwd =3D os.getcwd()    =20
0258:    except:
File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 455, function: exe=
c_func_shell    =20
0451:    with open(fifopath, 'r+b', buffering=3D0) as fifo:    =20
0452:        try:    =20
0453:            bb.debug(2, \"Executing shell function %s\" % func)   =20
0454:            with open(os.devnull, 'r+') as stdin, logfile: ***=20
0455:                bb.process.run(cmd, shell=3DFalse, stdin=3Dstdin, log=
=3Dlogfile, extrafiles=3D[(fifo,readfifo)])    =20
0456:        finally:    =20
0457:            os.unlink(fifopath)   =20
0458:    =20
0459:    bb.debug(2, \"Shell function %s finished\" % func)
File: '/srv/yocto/poky/bitbake/lib/bb/process.py', lineno: 184, function: r=
un    =20
0180:    =20
0181:    if pipe.returncode !=3D 0:    =20
0182:        if log:    =20
0183:            # Don't duplicate the output in the exception if logging i=
t ***=20
0184:            raise ExecutionError(cmd, pipe.returncode, None, None)    =
=20
0185:        raise ExecutionError(cmd, pipe.returncode, stdout, stderr)    =
=20
0186:    return stdout, stderr Exception: bb.process.ExecutionError: Execut=
ion of '/srv/yocto/build/tmp/work/corei7-64-poky-linux/perl/5.30.1-r0/temp/=
run.BUILDSPEC.35372' failed with exit code 1
Would anyone be able to point me in = the right direction as to what could be potentially causing this issue?

Thanks in advance,
Maksym --r7F06pUfoMgG02XwAAH9--