SDK 2.0 compilation fails with bitbake error

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

SDK 2.0 compilation fails with bitbake error

1,271 Views
sandeepk1980
Contributor I

Hi

   i am using SDK 2.0 on UBUNTU 20.08.    i am compiling sdk for T1040 board.

 

After following all the steps, we are getting this error when we run bitbake fsl-image-core

 

 

bitbake fsl-image-core
Traceback (most recent call last):
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 37, in <module>
import bb.persist_data, bb.utils
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/persist_data.py", line 35, in <module>
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2
/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/event.py:118: RuntimeWarning: Parent module 'bb' not found while handling absolute import
from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/opt/python-2.7.6/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/event.py", line 118, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 37, in <module>
import bb.persist_data, bb.utils
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/persist_data.py", line 35, in <module>
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2
Error in sys.exitfunc:
Traceback (most recent call last):
File "/opt/python-2.7.6/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/event.py", line 118, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/__init__.py", line 77, in <module>
from bb import fetch2 as fetch
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 37, in <module>
import bb.persist_data, bb.utils
File "/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/persist_data.py", line 35, in <module>
from pysqlite2 import dbapi2 as sqlite3
ImportError: No module named pysqlite2

 

 

Please suggest the solution

 

Thanks in Advance

 

 

0 Kudos
Reply
2 Replies

1,243 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please build SDK 2.0 in ubuntu 16.04.

0 Kudos
Reply

1,269 Views
sandeepk1980
Contributor I

The problem listed previously got resolved when i installed sqlite3 and libsqlite-dev module and again built python 2.7.6

 

I am now getting this error when i run bitbake fsl-image-core

 

bitbake fsl-image-core
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% |#################################################################################| ETA: 00:00:00
Loaded 6050 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-20.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t1040d4rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e5500"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 1260 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.

ERROR: Logfile of failure stored in: /home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/temp/log.do_unpack.94369
Log data follows:
| DEBUG: Executing python function do_unpack
| DEBUG: Executing python function base_do_unpack
| DEBUG: Running export PATH="/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts/native-intercept:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin:/opt/python-2.7.6/bin:/home/jay/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/jay"; git -c core.fsyncobjectfiles=0 clone -s -n /home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/downloads/git2/git.sv.gnu.org.config.git/ /home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/git/
| DEBUG: Running export PATH="/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts/native-intercept:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin:/opt/python-2.7.6/bin:/home/jay/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/jay"; git -c core.fsyncobjectfiles=0 remote set-url origin git://git.sv.gnu.org/config.git
| DEBUG: Running export PATH="/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts/native-intercept:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin:/opt/python-2.7.6/bin:/home/jay/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/jay"; git -c core.fsyncobjectfiles=0 checkout -B master b576fa87c140b824466ef1638e945e87dc5c0343
| DEBUG: Running export PATH="/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts/native-intercept:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/usr/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/sbin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb-64b/tmp/sysroots/x86_64-linux/bin:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/scripts:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin:/opt/python-2.7.6/bin:/home/jay/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/jay"; git -c core.fsyncobjectfiles=0 branch --set-upstream master origin/master
| DEBUG: Python function base_do_unpack finished
| DEBUG: Python function do_unpack finished
| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:
| warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
| fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead.
|
ERROR: Task 472 (virtual:native:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb, do_unpack) failed with exit code '1'
NOTE: Tasks Summary: Attempted 25 tasks of which 17 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/home/jay/brtr/brtr_sw/brtr_j/sdk/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb, do_unpack
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

 

 

 

 

 

 

0 Kudos
Reply