RE: [poky] Problem building poky

"Tyagi, Yogesh" <[email protected]> Thu, 6 Nov 2025 16:04:41 +0000
Newsgroups org.yoctoproject.lists.poky
Message-ID <IA3PR11MB8987CD1BE4FBDEE6FD120D068CC2A@IA3PR11MB8987.namprd11.prod.outlook.com>
Also you can limit the parallel builds as per the resources available on your system e.g.

BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"

Thanks,
Yogesh

> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf
> Of Peter Marko via lists.yoctoproject.org
> Sent: Thursday, November 6, 2025 5:09 PM
> To: [email protected]; [email protected]
> Subject: Re: [poky] Problem building poky
> 
> Most probably you PC run out of memory, some essential process got killed
> and your object files are incomplete/corrupted.
> I'd suggest looking at your CPU count vs available RAM and tweaking the
> concurrency settings.
> I'd recommend to have at least 2GB RAM for each available CPU you give to
> the build.
> 
> Then you should delete the build directory (as it contains corrupted files) and
> run the build again.
> 
> Peter
> 
> > -----Original Message-----
> > From: [email protected] <[email protected]> On
> > Behalf Of David Regan via lists.yoctoproject.org
> > Sent: Thursday, November 6, 2025 12:18
> > To: [email protected]
> > Subject: [poky] Problem building poky
> >
> > Hi
> > I am completely new to linux and so will make rookie mistakes. Apologies
> for that.
> > I have set up my pc as a dual boot and am running ubunutu 24.04.3.
> >
> > Due to limited hard disk size I have connected an external drive which
> > has been formatted as ext4 and have installed poky on it.
> >
> > I have followed the Quick Build instructions for poky on scarthgap
> > branch using bitbake core-image-sato to build
> >
> > After a while it errors. Here are the last few lines of the log. There
> > are quite a few undefined references reported.
> >
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:175:(.text+0x4b0): undefined reference to
> > `PyEval_RestoreThread'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:175:(.text+0x56a): undefined reference to
> > `PyEval_RestoreThread'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> > Modules/pwdmodule.o: in function `pwd_getpwnam_impl':
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:219:(.text+0x5cd): undefined reference to
> > `PyUnicode_EncodeFSDefault'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:230:(.text+0x5f6): undefined reference to
> > `PyEval_SaveThread'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:258:(.text+0x687): undefined reference to
> > `PyEval_RestoreThread'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> > Modules/pwdmodule.o: in function `pwd_getpwnam':
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/clinic/pwdmodule.c.h:43:(.text+0x71c): undefined
> > reference to `_PyArg_BadArgument'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> > Modules/pwdmodule.o: in function `pwd_getpwnam_impl':
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:258:(.text+0x751): undefined reference to
> > `PyEval_RestoreThread'
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/hosttools/ld:
> >
> /media/<me>/linux_extdsk/dr_ext/yocto_build/poky/build/tmp/work/x86_6
> 4
> > -
> > linux/python3-native/3.12.12/build/../Python-
> > 3.12.12/Modules/pwdmodule.c:258:(.text+0x7a2): undefined reference to
> > `PyEval_RestoreThread'
> > collect2: error: ld returned 1 exit status
> > make: *** [Makefile:1316: Programs/_freeze_module] Error 1
> > ERROR: oe_runmake failed
> > WARNING: exit code 1 from a shell command.
> >
> > I would have expected this to build without any errors as I have not
> > modified anything. Part way through the build my session became
> > unresponsive (mouse not moving - I was using it to keep the terminal
> > alive) and the terminal stopped and returned me to the desktop.
> >
> > Could somebody advise on how this can be resolved.
> >
> > Kind regards
> > Dave Regan