Hi all,
I am trying to build the Yocto L5.4.70_2.3.0 "imx-image-full " in ubuntu 20.04, and I've been following the steps on https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf to build
the error message as below:
ERROR: python3-pybind11-native-2.5.0-r0 do_configure: Execution of '/<build dir>/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/run.do_configure.2608628' failed with exit code 1:
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /<build dir>/tmp/hosttools/g++
-- Check for working CXX compiler: /<build dir>/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 "/<build dir>/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: /<build dir>/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/log.do_configure.2608628
Log data follows:
| DEBUG: Executing shell function do_configure
| -- The CXX compiler identification is GNU 9.3.0
| -- Check for working CXX compiler: /<build dir>/tmp/hosttools/g++
| -- Check for working CXX compiler: /<build dir>/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 "/<build dir>/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 '/<build dir>/tmp/work/x86_64-linux/python3-pybind11-native/2.5.0-r0/temp/run.do_configure.2608628' failed with exit code 1:
| -- The CXX compiler identification is GNU 9.3.0
| -- Check for working CXX compiler: /<build dir>/tmp/hosttools/g++
| -- Check for working CXX compiler: /<build dir>/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 "/<build dir>/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:/<build dir>/sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 271 tasks of which 265 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/<build dir>/sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Python version : 3.8.5
thanks