* Bitbake build fails because of a python function
@ 2021-11-03 20:26 Maksym Iliev
2021-11-03 20:39 ` [bitbake-devel] " Alexander Kanavin
0 siblings, 1 reply; 2+ messages in thread
From: Maksym Iliev @ 2021-11-03 20:26 UTC (permalink / raw)
To: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 2909 bytes --]
Hello guys. I am brand new to obenembedded and bitbake and I am looking for any help/advice/hints I can get. I have inherited someone else's code for building 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
> 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:do_package_rpm(d)
> 0003:
> File:
> '/srv/yocto/poky/meta/classes/package_rpm.bbclass', lineno: 712, function:
> do_package_rpm
> 0708:
> 0709: # Build the rpm package!
> 0710: d.setVar('BUILDSPEC', cmd + \"\\n\" + cleanupcmd + \"\\n\")
> 0711: d.setVarFlag('BUILDSPEC', 'func', '1')
> 0712:
> bb.build.exec_func('BUILDSPEC', d)
> 0713:
> 0714: if
> d.getVar('RPM_SIGN_PACKAGES') == '1':
> 0715:
> bb.build.exec_func(\"sign_rpm\", d)
> 0716:}
> File:
> '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 254, function:
> exec_func
> 0250: with bb.utils.fileslocked(lockfiles):
> 0251:
> if ispython:
> 0252: exec_func_python(func, d, runfile,
> cwd=adir)
> 0253: else: ***
> 0254: exec_func_shell(func,
> d, runfile, cwd=adir)
> 0255:
> 0256: try:
> 0257:
> curcwd = os.getcwd()
> 0258: except:
> File:
> '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 455, function:
> exec_func_shell
> 0451: with open(fifopath, 'r+b', buffering=0) as
> fifo:
> 0452: try:
> 0453: bb.debug(2, \"Executing
> shell function %s\" % func)
> 0454: with open(os.devnull,
> 'r+') as stdin, logfile: ***
> 0455: bb.process.run(cmd,
> shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
> 0456: finally:
> 0457: os.unlink(fifopath)
> 0458:
> 0459: bb.debug(2, \"Shell function %s finished\" % func)
> File:
> '/srv/yocto/poky/bitbake/lib/bb/process.py', lineno: 184, function: run
> 0180:
> 0181: if pipe.returncode != 0:
> 0182: if log:
> 0183: # Don't duplicate the output in the exception if logging
> it ***
> 0184: raise ExecutionError(cmd, pipe.returncode, None,
> None)
> 0185: raise ExecutionError(cmd, pipe.returncode, stdout,
> stderr)
> 0186: return stdout, stderr Exception:
> bb.process.ExecutionError: Execution 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
[-- Attachment #2: Type: text/html, Size: 3482 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [bitbake-devel] Bitbake build fails because of a python function
2021-11-03 20:26 Bitbake build fails because of a python function Maksym Iliev
@ 2021-11-03 20:39 ` Alexander Kanavin
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Kanavin @ 2021-11-03 20:39 UTC (permalink / raw)
To: maksym.iliev; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 3288 bytes --]
Please use the yocto@lists.yoctoproject.org mailing list, or #yocto on
libera.chat IRC.
Alex
On Wed, 3 Nov 2021 at 21:26, Maksym Iliev via lists.openembedded.org
<maksym.iliev=litmus.io@lists.openembedded.org> wrote:
> Hello guys. I am brand new to obenembedded and bitbake and I am looking
> for any help/advice/hints I can get. I have inherited someone else's code
> for building 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 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:do_package_rpm(d)
> 0003:
> File: '/srv/yocto/poky/meta/classes/package_rpm.bbclass', lineno: 712, function: do_package_rpm
> 0708:
> 0709: # Build the rpm package!
> 0710: d.setVar('BUILDSPEC', cmd + \"\\n\" + cleanupcmd + \"\\n\")
> 0711: d.setVarFlag('BUILDSPEC', 'func', '1')
> 0712: bb.build.exec_func('BUILDSPEC', d)
> 0713:
> 0714: if d.getVar('RPM_SIGN_PACKAGES') == '1':
> 0715: bb.build.exec_func(\"sign_rpm\", d)
> 0716:}
> File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 254, function: exec_func
> 0250: with bb.utils.fileslocked(lockfiles):
> 0251: if ispython:
> 0252: exec_func_python(func, d, runfile, cwd=adir)
> 0253: else: ***
> 0254: exec_func_shell(func, d, runfile, cwd=adir)
> 0255:
> 0256: try:
> 0257: curcwd = os.getcwd()
> 0258: except:
> File: '/srv/yocto/poky/bitbake/lib/bb/build.py', lineno: 455, function: exec_func_shell
> 0451: with open(fifopath, 'r+b', buffering=0) as fifo:
> 0452: try:
> 0453: bb.debug(2, \"Executing shell function %s\" % func)
> 0454: with open(os.devnull, 'r+') as stdin, logfile: ***
> 0455: bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
> 0456: finally:
> 0457: os.unlink(fifopath)
> 0458:
> 0459: bb.debug(2, \"Shell function %s finished\" % func)
> File: '/srv/yocto/poky/bitbake/lib/bb/process.py', lineno: 184, function: run
> 0180:
> 0181: if pipe.returncode != 0:
> 0182: if log:
> 0183: # Don't duplicate the output in the exception if logging it ***
> 0184: raise ExecutionError(cmd, pipe.returncode, None, None)
> 0185: raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
> 0186: return stdout, stderr Exception: bb.process.ExecutionError: Execution 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
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#12873):
> https://lists.openembedded.org/g/bitbake-devel/message/12873
> Mute This Topic: https://lists.openembedded.org/mt/86801315/1686489
> Group Owner: bitbake-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 4977 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-03 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 20:26 Bitbake build fails because of a python function Maksym Iliev
2021-11-03 20:39 ` [bitbake-devel] " Alexander Kanavin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).