Hello NXP,
i am using "8MPLUSLPD4-EVK" . I am trying build the BSP but i am facing some build issue. Please help on this issue. Please let me know if you need more information.
error logs:
dasmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/project/imx-yocto-bsp/build$ bitbake core-image-minimal
ERROR: Attempting to set server environment: Unable to update the server configuration with local parameters: Traceback (most recent call last):
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/command.py", line 91, in runCommand
result = command_method(self, commandline)
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/command.py", line 291, in updateConfig
command.cooker.updateConfigOpts(options, environment, cmdline)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/cooker.py", line 471, in updateConfigOpts
self.reset()
~~~~~~~~~~^^
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/cooker.py", line 1741, in reset
self.handlePRServ()
~~~~~~~~~~~~~~~~~^^
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/cooker.py", line 337, in handlePRServ
self.hashserv.serve_as_process(log_level=logging.WARNING)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dasmiddepogu/NXP/project/imx-yocto-bsp/sources/poky/bitbake/lib/bb/asyncrpc/serv.py", line 402, in serve_as_process
self.process.start()
~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
~~~~~~~~~~~^^^^^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 230, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/context.py", line 306, in _Popen
return Popen(process_obj)
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
super().__init__(process_obj)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
self._launch(process_obj)
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 47, in _launch
reduction.dump(process_obj, buf)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
_pickle.PicklingError: Can't pickle local object
when serializing dict item '_target'
when serializing multiprocessing.context.Process state
when serializing multiprocessing.context.Process object
repo details:
$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap
-m imx-6.6.36-2.1.0.xml
$ repo sync
$ DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build
Linux host PC details:
PRETTY_NAME="Ubuntu 26.04 LTS"
NAME="Ubuntu"
VERSION_ID="26.04"
VERSION="26.04 (Resolute Raccoon)"
VERSION_CODENAME=resolute
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=resolute
LOGO=ubuntu-logo
Host PC configuration:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 42 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: GenuineIntel
Model name: Intel(R) Core(TM) Ultra 7 255H
CPU family: 6
Model: 197
Thread(s) per core: 1
Core(s) per socket: 16
Socket(s): 1
Stepping: 2
CPU(s) scaling MHz: 17%
CPU max MHz: 5100.0000
CPU min MHz: 400.0000
DDR size : 32GB
Hello @middepogudas
Hope you are doing very well.
The imx-linux-scarthgap BSP was validated on supported in Ubuntu 22.04 and Ubuntu 24.04.
Ubuntu 26.04 uses Python 3.14 by default and seems the Bitbake version in that BSP is not fully compatible with Python 3.14.
I recommend to you to compile using Ubuntu 24.04 LTS or Ubuntu 22.04 LTS until Ubuntu 26.04 LTS is fully supported.
Also, you can try using a virtual environment with python 3.12.
Best regards,
Salas.
Hello NXP,
i flashed Ubuntu to 24.04 still i am facing build issue.. Please find build error logs. Please help on this build issue.
OS info:
asmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/DOC$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.4 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
dasmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/DOC$
build error logs:
You can now run 'bitbake
Common targets are:
core-image-minimal
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support
Your build environment has been configured with:
MACHINE=imx8mp-lpddr4-evk
SDKMACHINE=i686
DISTRO=fsl-imx-xwayland
EULA=
BSPDIR=
BUILD_DIR=.
dasmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/DOC$ DISTRO=fsl-imx-xwayland MACHINE=imx8mp-lpddr4-evk source imx-setup-release.sh -b build
dasmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/imx-yocto-bsp/build$ bitbake core-image-minimal
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Host distribution "ubuntu-24.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##################################################################################################################################################################################################################| Time: 0:00:55
Parsing of 3643 .bb files complete (0 cached, 3643 parsed). 5719 targets, 375 skipped, 17 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.8.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-24.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mp-lpddr4-evk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "6.6-scarthgap"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:f43f393ef0246b7bee6eed8bcf8271cf2b8cdf40"
meta-oe
meta-multimedia
meta-python = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-freescale = "HEAD:0f8091c63dd8805610c09b08409bc58492a3b16f"
meta-freescale-3rdparty = "HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
meta-imx-v2x = "HEAD:92ad51ef3cc7f132238f1ae6c8e81432f2a69cc7"
meta-nxp-demo-experience = "HEAD:8fd7154c05b716e9635279047f65785399432d88"
meta-nxp-matter-baseline
meta-nxp-openthread = "HEAD:783becb4b5716d989f50db95b7133d38eae5b47b"
meta-arm
meta-arm-toolchain = "HEAD:1b85bbb4cab9658da3cd926c62038b8559c5c64e"
meta-clang = "HEAD:fe561f41aef0cff9e6f96730ab59f28dca2eb682"
meta-gnome
meta-networking
meta-filesystems = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-qt6 = "HEAD:dc13e1bfda4a4757a08c2d6673bc4bac012c4a80"
meta-parsec
meta-tpm = "HEAD:11ea91192d43d7c2b0b95a93aa63ca7e73e38034"
meta-virtualization = "HEAD:6a80f140e387621f62964209a2e07d3bcfb125ce"
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.5/x86_64-nativesdk-libc-4.5.tar.xz;sha256sum=... (will check PREMIRRORS first)
Sstate summary: Wanted 2656 Local 0 Mirrors 0 Missed 2656 Current 0 (0% match, 0% complete)######################################################################################################################## | ETA: 0:00:00
Initialising tasks: 100% |###############################################################################################################################################################################################################| Time: 0:00:04
NOTE: Executing Tasks
ERROR: PermissionError: [Errno 1] Operation not permitted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/bitbake/bin/bitbake-worker", line 278, in child
bb.utils.disable_network(uid, gid)
File "/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network
with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted
ERROR: Task (/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack) failed with exit code '1'
ERROR: PermissionError: [Errno 1] Operation not permitted
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/bitbake/bin/bitbake-worker", line 278, in child
bb.utils.disable_network(uid, gid)
File "/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/bitbake/lib/bb/utils.py", line 1696, in disable_network
with open("/proc/self/uid_map", "w") as f:
PermissionError: [Errno 1] Operation not permitted
ERROR: Task (/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 34 tasks of which 0 didn't need to be rerun and 2 failed.
Summary: 2 tasks failed:
/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_unpack
/home/dasmiddepogu/NXP/imx-yocto-bsp/sources/poky/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy-native.bb:do_prepare_recipe_sysroot
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
dasmiddepogu@dasmiddepogu-ThinkPad-P14s-Gen-6:~/NXP/imx-yocto-bsp/build$
Thank you,,
Das Middepogu