Problem building poky

David Regan <[email protected]> Thu, 6 Nov 2025 11:17:50 +0000
Newsgroups org.yoctoproject.lists.poky
Message-ID <CAHzZjuM04xDPTVo2u4p4wDv+HEAzGSd4mp0gNSoLU_QrO6AYfw@mail.gmail.com>
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_64-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_64-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_64-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_64-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_64-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_64-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_64-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_64-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