AnsweredAssumed Answered

Problem building QorIQ SDK for LS1046A-RDB Ubuntu 14.04

Question asked by Muhammad Umair Khan on Aug 28, 2018
Latest reply on Sep 9, 2018 by Yiping Wang

Hello everyone,

I am having trouble building QorIQ SDK for LS1046A-RDB. I followed the instructions present in "QorIQ SDK v2.0-1703 Documentation" and ended up getting following errors when running bitbake. Can some body help me?

 

umkhan@umkhan-VirtualBox:~/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb$ bitbake --help
Traceback (most recent call last):
File "/home/umkhan/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/home/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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/umkhan/QorIQ/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

 

I do following steps prior to running bitbake:

 

umkhan@umkhan-VirtualBox:~/QorIQ/QorIQ-SDK-V2.0-20160527-yocto$ ./sources/meta-freescale/scripts/host-prepare.sh
Verifying sudo permission to execute apt-get command.
Now we're going to install all the other development packages needed to build Yocto, please wait
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
chrpath is already the newest version.
diffstat is already the newest version.
gawk is already the newest version.
screen is already the newest version.
texinfo is already the newest version.
tofrodos is already the newest version.
xterm is already the newest version.
xz-utils is already the newest version.
libstring-crc32-perl is already the newest version.
socat is already the newest version.
libsdl1.2-dev is already the newest version.
unzip is already the newest version.
vim-common is already the newest version.
git-core is already the newest version.
wget is already the newest version.
The following packages were automatically installed and are no longer required:
ack-grep android-tools-adb android-tools-fastboot at
binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf
binutils-powerpc-linux-gnu cpanminus cpp-4.8-aarch64-linux-gnu
cpp-4.8-arm-linux-gnueabihf cpp-4.8-powerpc-linux-gnu cpp-aarch64-linux-gnu
cpp-arm-linux-gnueabihf cpp-powerpc-linux-gnu dctrl-tools
debian-archive-keyring debootstrap devscripts distro-info distro-info-data
gcc-4.8-aarch64-linux-gnu-base gcc-4.8-arm-linux-gnueabihf-base
gcc-4.8-powerpc-linux-gnu-base gnome-settings-daemon
lib64asan0-powerpc-cross lib64atomic1-powerpc-cross
lib64gcc-4.8-dev-powerpc-cross lib64gcc1-powerpc-cross
lib64gomp1-powerpc-cross liba52-0.7.4 libaacs0 libaliased-perl
libalien-wxwidgets-perl libappindicator1 libasan0-armhf-cross
libasan0-powerpc-cross libass4 libatomic1-arm64-cross libatomic1-armhf-cross
libatomic1-powerpc-cross libavcodec54 libavformat54 libavutil52
libbasicusageenvironment0 libbluray1 libc6-arm64-cross
libc6-armel-armhf-cross libc6-armhf-cross libc6-dev-arm64-cross
libc6-dev-armel-armhf-cross libc6-dev-armhf-cross libc6-dev-powerpc-cross
libc6-dev-ppc64-powerpc-cross libc6-powerpc-cross libc6-ppc64-powerpc-cross
libcapture-tiny-perl libcddb2 libchromaprint0 libclass-adapter-perl
libclass-inspector-perl libclass-unload-perl libclass-xsaccessor-perl
libcommon-sense-perl libcpan-distnameinfo-perl libcpan-meta-check-perl
libcpan-meta-perl libcpan-meta-requirements-perl libcrystalhd3
libdbd-sqlite3-perl libdbi-perl libdc1394-22 libdca0 libdebug-client-perl
libdevel-dumpvar-perl libdevel-refactor-perl libdirac-encoder0
libdirectfb-1.2-9 libdistro-info-perl libdvbpsi8 libdvdnav4 libdvdread4
libebml4 libenca0 libexporter-lite-perl libfaad2 libfile-find-rule-perl
libfile-homedir-perl libfile-next-perl libfile-pushd-perl
libfile-remove-perl libfile-sharedir-perl libfile-slurp-perl
libfile-which-perl libgcc-4.8-dev-arm64-cross libgcc-4.8-dev-armhf-cross
libgcc-4.8-dev-powerpc-cross libgcc1-arm64-cross libgcc1-armhf-cross
libgcc1-powerpc-cross libgnutls28 libgomp1-arm64-cross libgomp1-armhf-cross
libgomp1-powerpc-cross libgroupsock1 libgsm1 libhogweed2 libindicator7
libio-stringy-perl libipc-run3-perl libiso9660-8 libitm1-arm64-cross
libjs-jquery libjson-perl libjson-xs-perl libkate1 liblivemedia23
liblocal-lib-perl liblocale-msgfmt-perl libmad0 libmatroska6 libmodplug1
libmodule-cpanfile-perl libmodule-manifest-perl libmodule-metadata-perl
libmodule-starter-perl libmp3lame0 libmpcdec6 libmpeg2-4
libnumber-compare-perl libopenjpeg2 libopus0 liborlite-migrate-perl
liborlite-perl libpadwalker-perl libparams-util-perl libparse-cpan-meta-perl
libparse-debcontrol-perl libparse-errorstring-perl-perl
libparse-exuberantctags-perl libpath-class-perl libpod-abstract-perl
libpod-pom-perl libpod2-base-perl libpostproc52 libppi-perl
libppix-editortools-perl libppix-regexp-perl libprobe-perl-perl
libproxy-tools libpython-dev libpython2.7-dev libqgsttools-p1 libqpdf13
libqt5multimediawidgets5 libresid-builder0c2a libschroedinger-1.0-0
libsdl-image1.2 libsfasan0-armhf-cross libsfatomic1-armhf-cross
libsfgcc-4.8-dev-armhf-cross libsfgcc1-armhf-cross libsfgomp1-armhf-cross
libsidplay2 libsort-versions-perl libssh2-1 libstring-shellquote-perl
libswscale2 libtar0 libtask-weaken-perl libtemplate-tiny-perl
libtext-diff-perl libtext-findindent-perl libtext-glob-perl
libtext-patch-perl libtie-ixhash-perl libtry-tiny-perl libts-0.0-0
libtwolame0 libupnp6 libusageenvironment1 libva-x11-1 libva1 libvcdinfo0
libvlc5 libvlccore7 libwx-perl libwx-perl-processstream-perl
libwx-scintilla-perl libwxbase2.8-0 libwxbase2.8-dev libwxbase3.0-0
libwxgtk-media2.8-0 libwxgtk-media2.8-dev libwxgtk2.8-0 libwxgtk2.8-dev
libx264-142 libxcb-composite0 libxcb-xv0 libxdelta2 libxvidcore4
libzvbi-common libzvbi0 linux-headers-4.4.0-124
linux-headers-4.4.0-124-generic linux-headers-4.4.0-31
linux-headers-4.4.0-31-generic linux-headers-4.4.0-98
linux-headers-4.4.0-98-generic linux-image-4.4.0-124-generic
linux-image-4.4.0-31-generic linux-image-4.4.0-98-generic
linux-image-extra-4.4.0-124-generic linux-image-extra-4.4.0-31-generic
linux-image-extra-4.4.0-98-generic linux-libc-dev-arm64-cross
linux-libc-dev-armhf-cross linux-libc-dev-powerpc-cross pbuilder pbzip2
preview-latex-style pristine-tar python2.7-dev python3-magic quilt texlive
texlive-bibtex-extra texlive-latex-extra texlive-latex-extra-doc
texlive-math-extra texlive-pictures texlive-pictures-doc tsconf
ubuntu-device-flash vlc-data wx-common wx2.8-headers xdelta xmlto xsltproc
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
gcc-4.8-aarch64-linux-gnu gcc-aarch64-linux-gnu
The following NEW packages will be installed:
gcc-multilib
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/1,024 B of archives.
After this operation, 13.5 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 617615 files and directories currently installed.)
Removing gcc-aarch64-linux-gnu (4:4.8.2-1) ...
Removing gcc-4.8-aarch64-linux-gnu (4.8.4-2ubuntu1~14.04.1cross0.11.2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Selecting previously unselected package gcc-multilib.
(Reading database ... 617583 files and directories currently installed.)
Preparing to unpack .../gcc-multilib_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking gcc-multilib (4:4.8.2-1ubuntu6) ...
Setting up gcc-multilib (4:4.8.2-1ubuntu6) ...
-e
Done. You're ready to go with Yocto build now
umkhan@umkhan-VirtualBox:~/QorIQ/QorIQ-SDK-V2.0-20160527-yocto$ ls
build_ls1046ardb downloads fsl-setup-env sources sstate-cache
umkhan@umkhan-VirtualBox:~/QorIQ/QorIQ-SDK-V2.0-20160527-yocto$ . ./fsl-setup-env -m ls1046ardb
Configuring for ls1046ardb ...
/home/umkhan/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb was created before.
Back to build project /home/umkhan/QorIQ/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb.
Nothing is changed.

Outcomes