Yocto zeux fsl-image-full build fail for i.MX8mm EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto zeux fsl-image-full build fail for i.MX8mm EVK

Jump to solution
6,214 Views
frk
Contributor III

Hello everyone,

I'm trying to build the yocto fsl-image-full image for the i.MX8mmini EVK following the i.MX Yocto Project User's Guide rev L5.4.70_2.3.0 and this one fail.

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf 

Is this target broken?

The error is the following one :

15:29:00 ✔ bsp@Ubuntu3:~/yocto/imx-yocto-bsp-zeus/build-wayland$ bitbake imx-image-full
WARNING: Host distribution "ubuntu-20.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% |#############################################################################################################################################################################| Time: 0:00:00
Loaded 4639 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################################################| Time: 0:00:01
Parsing of 3217 .bb files complete (3216 cached, 1 parsed). 4640 targets, 469 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mmevk"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "5.4-zeus"
TUNE_FEATURES        = "aarch64 cortexa53 crc crypto"
TARGET_FPU           = ""
meta
meta-poky            = "HEAD:d88d62c20d7d8da85f02edb170dae0280624ad7e"
meta-oe
meta-multimedia
meta-python          = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b"
meta-freescale       = "HEAD:14f1a630a47375432f93c556927b879b51d84c4e"
meta-freescale-3rdparty = "HEAD:dbcc686f52c3c84db8cb86aa8973a4e373651b98"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"
meta-bsp
meta-sdk
meta-ml              = "HEAD:c4620c1b711d180a3f93d69ec6ca416d886f9277"
meta-nxp-demo-experience = "HEAD:c7263d9f3cc7bbf44e7164ffeda494cf283d3dec"
meta-browser         = "HEAD:ee3be3b5986a4aa0e73df2204a625ae1fe5df37e"
meta-rust            = "HEAD:53bfa324891966a2daf5d36dc13d4a43725aebed"
meta-clang           = "HEAD:711e593d5984aad3bf35c51b7ac4482982bc16c7"
meta-gnome
meta-networking
meta-filesystems     = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b"
meta-qt5             = "HEAD:21ce4c124d9a972d9122f87c64ac2773bf04c284"
meta-python2         = "HEAD:4400f9155ec193d028208cf0c66aeed2ba2b00ab"

Initialising tasks: 100% |########################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 2308 Found 0 Missed 2308 Current 882 (0% match, 27% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
WARNING: libdrm-2.4.102.imx-r0 do_patch: Fuzz detected:

Applying patch drm-update-arm.patch
patching file xf86drm.h
Hunk #1 succeeded at 504 with fuzz 2 (offset 43 lines).

The context lines in the patches can be updated with devtool:

    devtool modify libdrm
    devtool finish --force-patch-refresh libdrm <layer_path>

Don't forget to review changes done by devtool!

WARNING: libdrm-2.4.102.imx-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
WARNING: ntp-4.2.8p13-r0 do_fetch: Checksum mismatch for local file /home/bspdownloads/ntp-4.2.8p13.tar.gz
Cleaning and trying again.
WARNING: ntp-4.2.8p13-r0 do_fetch: Renaming /home/bspdownloads/ntp-4.2.8p13.tar.gz to /home/bspdownloads/ntp-4.2.8p13.tar.gz_bad-checksum_19bb20214e0a88629e17a5b6c605d45d
WARNING: ntp-4.2.8p13-r0 do_fetch: Checksum failure encountered with download of http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p13.tar.gz - will attempt other sources if available
WARNING: lttng-modules-2.10.14-r0 do_package: lttng-modules: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel.
ERROR: python3-pybind11-native-2.5.0-r0 do_configure: Execution of '/home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/run.do_configure.3278769' failed with exit code 1:
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++
-- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.5")
CMake Error at tools/FindPythonLibsNew.cmake:96 (message):
  Python config failure:

  Traceback (most recent call last):

    File "<string>", line 4, in <module>
    File "/usr/lib/python3.8/distutils/sysconfig.py", line 117, in get_python_inc
      return sysconfig.get_path('platinclude')
    File "/usr/lib/python3.8/sysconfig.py", line 512, in get_path
      return get_paths(scheme, vars, expand)[name]
    File "/usr/lib/python3.8/sysconfig.py", line 502, in get_paths
      return _expand_vars(scheme, vars)
    File "/usr/lib/python3.8/sysconfig.py", line 172, in _expand_vars
      _extend_dict(vars, get_config_vars())
    File "/usr/lib/python3.8/sysconfig.py", line 550, in get_config_vars
      _init_posix(_CONFIG_VARS)
    File "/usr/lib/python3.8/sysconfig.py", line 421, in _init_posix
      _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)

  ModuleNotFoundError: No module named '_sysconfigdata'

Call Stack (most recent call first):
  tools/pybind11Tools.cmake:16 (find_package)
  CMakeLists.txt:33 (include)


-- Configuring incomplete, errors occurred!
See also "/home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/build/CMakeFiles/CMakeOutput.log".
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/log.do_configure.3278769
Log data follows:
| DEBUG: Executing shell function do_configure
| -- The CXX compiler identification is GNU 9.3.0
| -- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++
| -- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++ -- works
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.5")
| CMake Error at tools/FindPythonLibsNew.cmake:96 (message):
|   Python config failure:
|
|   Traceback (most recent call last):
|
|     File "<string>", line 4, in <module>
|     File "/usr/lib/python3.8/distutils/sysconfig.py", line 117, in get_python_inc
|       return sysconfig.get_path('platinclude')
|     File "/usr/lib/python3.8/sysconfig.py", line 512, in get_path
|       return get_paths(scheme, vars, expand)[name]
|     File "/usr/lib/python3.8/sysconfig.py", line 502, in get_paths
|       return _expand_vars(scheme, vars)
|     File "/usr/lib/python3.8/sysconfig.py", line 172, in _expand_vars
|       _extend_dict(vars, get_config_vars())
|     File "/usr/lib/python3.8/sysconfig.py", line 550, in get_config_vars
|       _init_posix(_CONFIG_VARS)
|     File "/usr/lib/python3.8/sysconfig.py", line 421, in _init_posix
|       _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
|
|   ModuleNotFoundError: No module named '_sysconfigdata'
|
| Call Stack (most recent call first):
|   tools/pybind11Tools.cmake:16 (find_package)
|   CMakeLists.txt:33 (include)
|
|
| -- Configuring incomplete, errors occurred!
| See also "/home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/build/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/run.do_configure.3278769' failed with exit code 1:
| -- The CXX compiler identification is GNU 9.3.0
| -- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++
| -- Check for working CXX compiler: /home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/hosttools/g++ -- works
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.5")
| CMake Error at tools/FindPythonLibsNew.cmake:96 (message):
|   Python config failure:
|
|   Traceback (most recent call last):
|
|     File "<string>", line 4, in <module>
|     File "/usr/lib/python3.8/distutils/sysconfig.py", line 117, in get_python_inc
|       return sysconfig.get_path('platinclude')
|     File "/usr/lib/python3.8/sysconfig.py", line 512, in get_path
|       return get_paths(scheme, vars, expand)[name]
|     File "/usr/lib/python3.8/sysconfig.py", line 502, in get_paths
|       return _expand_vars(scheme, vars)
|     File "/usr/lib/python3.8/sysconfig.py", line 172, in _expand_vars
|       _extend_dict(vars, get_config_vars())
|     File "/usr/lib/python3.8/sysconfig.py", line 550, in get_config_vars
|       _init_posix(_CONFIG_VARS)
|     File "/usr/lib/python3.8/sysconfig.py", line 421, in _init_posix
|       _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
|
|   ModuleNotFoundError: No module named '_sysconfigdata'
|
| Call Stack (most recent call first):
|   tools/pybind11Tools.cmake:16 (find_package)
|   CMakeLists.txt:33 (include)
|
|
| -- Configuring incomplete, errors occurred!
| See also "/home/bsp/yocto/imx-yocto-bsp-zeus/build-wayland/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/build/CMakeFiles/CMakeOutput.log".
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (virtual:native:/home/bsp/yocto/imx-yocto-bsp-zeus/sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb:do_configure) failed with exit code '1'

Did someone succeed building it?

Best regards,

1 Solution
6,175 Views
frk
Contributor III

lrwxrwxrwx 1 root root 35 janv. 25 10:39 _sysconfigdata.py -> _sysconfigdata__x86_64-linux-gnu.py -rw-r--r-- 1 root root 25739 juil. 28 14:59 _sysconfigdata__x86_64-linux-gnu.py

lrwxrwxrwx 1 root root 35 janv. 25 10:39 _sysconfigdata.py -> _sysconfigdata__x86_64-linux-gnu.py
-rw-r--r-- 1 root root 25739 juil. 28 14:59 _sysconfigdata__x86_64-linux-gnu.py

View solution in original post

6 Replies
2,209 Views
agunel
Contributor I

Late reply but easy solution is installing a package to ubuntu :

 sudo apt-get install python-is-python3

0 Kudos
Reply
6,160 Views
oprata
Contributor II

Hello!

I tested on Ubuntu 16.04 and works fine.

Below is the result I got when bitbake finishes his job.

developer@pascal[build]~> bitbake imx-image-full
Loading cache: 100% |#####################################################################################| Time: 0:00:00
Loaded 4639 entries from dependency cache.
Parsing recipes: 100% |###################################################################################| Time: 0:00:03
Parsing of 3217 .bb files complete (3216 cached, 1 parsed). 4640 targets, 469 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "5.4-zeus"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:d88d62c20d7d8da85f02edb170dae0280624ad7e"
meta-oe
meta-multimedia
meta-python = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b"
meta-freescale = "HEAD:14f1a630a47375432f93c556927b879b51d84c4e"
meta-freescale-3rdparty = "HEAD:dbcc686f52c3c84db8cb86aa8973a4e373651b98"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"
meta-bsp
meta-sdk
meta-ml = "HEAD:c4620c1b711d180a3f93d69ec6ca416d886f9277"
meta-nxp-demo-experience = "HEAD:c7263d9f3cc7bbf44e7164ffeda494cf283d3dec"
meta-browser = "HEAD:ee3be3b5986a4aa0e73df2204a625ae1fe5df37e"
meta-rust = "HEAD:53bfa324891966a2daf5d36dc13d4a43725aebed"
meta-clang = "HEAD:711e593d5984aad3bf35c51b7ac4482982bc16c7"
meta-gnome
meta-networking
meta-filesystems = "HEAD:2b5dd1eb81cd08bc065bc76125f2856e9383e98b"
meta-qt5 = "HEAD:21ce4c124d9a972d9122f87c64ac2773bf04c284"
meta-python2 = "HEAD:4400f9155ec193d028208cf0c66aeed2ba2b00ab"

Initialising tasks: 100% |################################################################################| Time: 0:00:05
Sstate summary: Wanted 3 Found 2 Missed 1 Current 3193 (66% match, 99% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Tasks Summary: Attempted 8492 tasks of which 8492 didn't need to be rerun and all succeeded.
developer@pascal[build]~>

 

Tags (1)
0 Kudos
Reply
6,183 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

 I tested on ubuntu18.04/20.04/debian-10, no problem.

See below, please!

1. Hareware configurations

Host Comfiguration :
--CPU: i7-6700 4-core 8 threads
--Total memory: 32GB DDR4
--Windows 7 64bit
--USB3.1 SSD ( For Linux virtual machine)
Virtual Machine:
--Vmware player 15  (4 core, and 16GB memory)
--Ubuntu 18.04 LTS / 20.04 LTS /Debian-10

2. packages

(1)Run these 2 commands to update software and system
# sudo apt-get update
# sudo apt-get upgrade
(2)Installing software packages for cross-compile linux BSP
# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx

Hope above information is helpful to you.

Have a nice day!

B.R,

weidong

0 Kudos
Reply
6,196 Views
Farsan_Baloo
Contributor II

I have the exact same problem.
Somehow FindPythonLibsNew.cmake finds (and uses) the host '/usr/bin/python3' (3.8.5) instead of python located in '${RECIPE_SYSROOT_NATIVE}/usr/bin/python3' (3.7.1).

My workaround (for now, until yocto is verified on Ubuntu 20.04) were to tell CMake where the Phyton executable is located:
In python3-pybind11_2.5.0.bb recipe alter the EXTRA_OECMAKE variable like:

 

EXTRA_OECMAKE =  "-DPYBIND11_TEST=OFF \
				-DPYTHON_EXECUTABLE=${RECIPE_SYSROOT_NATIVE}/usr/bin/python3-native/python3.7 \
"

 

 

0 Kudos
Reply
6,176 Views
frk
Contributor III

lrwxrwxrwx 1 root root 35 janv. 25 10:39 _sysconfigdata.py -> _sysconfigdata__x86_64-linux-gnu.py -rw-r--r-- 1 root root 25739 juil. 28 14:59 _sysconfigdata__x86_64-linux-gnu.py

lrwxrwxrwx 1 root root 35 janv. 25 10:39 _sysconfigdata.py -> _sysconfigdata__x86_64-linux-gnu.py
-rw-r--r-- 1 root root 25739 juil. 28 14:59 _sysconfigdata__x86_64-linux-gnu.py
6,195 Views
Farsan_Baloo
Contributor II

Upps, seems I replied twice.

0 Kudos
Reply