Re: [poky] Problem building poky
Randy MacLeod <[email protected]> Thu, 13 Nov 2025 15:42:00 -0500
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <[email protected]> |
On 2025-11-06 11:04 a.m., Yogesh Tyagi via lists.yoctoproject.org wrote: > 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 Did that help David? If not, please tell us about your HW. You might also try to build core-image-minimal since it will be less demanding but it does only produce an cli-based image rather than poky's X11 UI. ../Randy >> -----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 >>> >>> -=-=-=-=-=-=-=-=-=-=-=- >>> Links: You receive all messages sent to this group. >>> View/Reply Online (#13781):https://lists.yoctoproject.org/g/poky/message/13781 >>> Mute This Topic:https://lists.yoctoproject.org/mt/116150887/3616765 >>> Group Owner:[email protected] >>> Unsubscribe:https://lists.yoctoproject.org/g/poky/unsub [[email protected]] >>> -=-=-=-=-=-=-=-=-=-=-=- >>> -- # Randy MacLeod # Wind River Linux