SDK version2.0 compilation fails with bitbake error

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

SDK version2.0 compilation fails with bitbake error

720 Views
natarajan_subbi
Contributor I

Hi,

After preparing the host environment, I triedto build fsl-image-minimal and I got below error.

Though, bblayers.conf and local.conf files are created in build-dir after . ./fsl-setup-env -m ls2080ardb, it fails when bitbake <target> is executed as below,

I checked the python version and it is 2.7.3

hmangam:[]:/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls2080ardb$ python --version
Python 2.7.3

hmangam:[]:/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/build_ls2080ardb$ bitbake fsl-image-minimal
Traceback (most recent call last):
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/export/yocto/hmangam/LS2088A_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 "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1769, in <module>
from . import wget
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/wget.py", line 40, in <module>
from bs4 import BeautifulSoup
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bs4/builder/__init__.py", line 4, in <module>
from bs4.element import (
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bs4/element.py", line 5, in <module>
from bs4.dammit import EntitySubstitution
File "/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bs4/dammit.py", line 11, in <module>
from htmlentitydefs import codepoint2name
ImportError: No module named htmlentitydefs
/export/yocto/hmangam/LS2088A_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

Can anyone please let me know what I am missing here?

Thanks,

Natarajan

0 Kudos
2 Replies

597 Views
Pavel
NXP Employee
NXP Employee

Use Ubuntu 14. Do not use Ubuntu 16.

Usually the following command sequence is used for SDK installing under Ubuntu 14.04 64-bit:

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. mount SDK source .iso file
  2. cd <sdk-install-dir>.
  3. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. bitbake fsl-image-minimal
  2. bitbake fsl-image-core


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

597 Views
natarajan_subbi
Contributor I

Hi Pavel,

Thank you for your reply.

I am trying to build this on redhat host machine with redhat-elease 6.4.

hmangam:[]:/export/yocto/hmangam/LS2088A_SDK/QorIQ-SDK-V2.0-20160527-yocto$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.4 (Santiago)

It is mentioned the RHEL version should 6.X.

# RHEL/CeniOS: 5.x/6.x

Thanks,

Natarajan

0 Kudos