[bitbake-devel] bitbake urllib usage is buggy

jc chaujohnthan at 163.com
Tue Dec 12 04:06:44 UTC 2017


/home/fsl-release-bsp# ls
fsl-release-bsp
/home/fsl-release-bsp# cd fsl-release-bsp/
/home/fsl-release-bsp/fsl-release-bsp# SDKMACHINE=x86_64 MACHINE=imx6qsabresd DISTRO=fslc-x11 source setup-environment build
ERROR: do not use the BSP as root. Exiting...
bash: python: command not found
OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.
Please upgrade your python v2.

Some BSPs depend on libraries and packages which are covered by Freescale's
End User License Agreement (EULA). To have the right to use these binaries in
your images, you need to read and accept the following...

LA_OPT_BASE_LICENSE v14 June 2016

.....

Do you accept the EULA you just read? (y/n) y
EULA has been accepted.

Welcome to Freescale Community BSP

The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support

Your configuration files at build have not been touched.
/home/fsl-release-bsp/fsl-release-bsp/build# python3
Python 3.4.7+ (default, Dec 11 2017, 23:08:16)
[GCC 4.2.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>>
/home/fsl-release-bsp/fsl-release-bsp/build# python3 --version
Python 3.4.7+
/home/fsl-release-bsp/fsl-release-bsp/build# bitbake core-image-minimal
WARNING: Host distribution "Unknown" 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:01
Loaded 2266 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-fslc-linux-gnueabi"
MACHINE           = "imx6qsabresd"
DISTRO            = "fslc-x11"
DISTRO_VERSION    = "2.2.1"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
TARGET_FPU        = "hard"
meta              
meta-poky         
meta-oe           
meta-multimedia   
meta-freescale    
meta-freescale-3rdparty
meta-freescale-distro = "<unknown>:<unknown>"

Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/relocate_sdk.py", line 27, in <module>
    import struct
  File "/usr/lib/python3.4/struct.py", line 13, in <module>
    from _struct import *
ImportError: No module named '_struct'
WARNING: Disabling uninative as unable to install uninative tarball: Command 'mkdir -p /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative; cd /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative; tar -xjf /home/fsl-release-bsp/fsl-release-bsp/downloads//uninative//101ff8f2580c193488db9e76f9646fb6ed38b65fb76f403acb0e2178ce7127ca/x86_64-nativesdk-libc.tar.bz2; /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/relocate_sdk.py /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/x86_64-linux /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/x86_64-linux//usr/bin/patchelf-uninative /home/fsl-release-bsp/fsl-release-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/libc*.so' returned non-zero exit status 1
WARNING: To build your own uninative loader, please bitbake uninative-tarball and set UNINATIVE_TARBALL appropriately.
Could not find platform dependent libraries <exec_prefix>#########################################################################################################                                                                                                            | ETA:  0:00:03
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/bin/bitbake-worker", line 7, in <module>
    from bb import fetch2
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 43, in <module>
    import logging
  File "/usr/lib/python3.4/logging/__init__.py", line 26, in <module>
    import sys, os, time, io, traceback, warnings, weakref, collections
ImportError: No module named 'time'
ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1259, in RunQueue.execute_runqueue():
             try:
    >            return self._execute_runqueue()
             except bb.runqueue.TaskFailure:
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1207, in RunQueue._execute_runqueue():
                     self.rqdata.init_progress_reporter.next_stage()
    >                self.start_worker()
                     self.rqdata.init_progress_reporter.next_stage()
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1061, in RunQueue.start_worker():
             for mc in self.rqdata.dataCaches:
    >            self.worker[mc] = self._start_worker(mc)
     
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1034, in RunQueue._start_worker(mc='', fakeroot=False, rqexec=None):
             worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>")
    >        worker.stdin.write(b"<workerdata>" + pickle.dumps(workerdata) + b"</workerdata>")
             worker.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

ERROR: Running idle function
Traceback (most recent call last):
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/cooker.py", line 1470, in buildTargetsIdle(server=<ProcessServer(ProcessServer-1, started)>, rq=<bb.runqueue.RunQueue object at 0x7f16c21859b0>, abort=False):
                 try:
    >                retval = rq.execute_runqueue()
                 except runqueue.TaskFailure as exc:
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1259, in RunQueue.execute_runqueue():
             try:
    >            return self._execute_runqueue()
             except bb.runqueue.TaskFailure:
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1207, in RunQueue._execute_runqueue():
                     self.rqdata.init_progress_reporter.next_stage()
    >                self.start_worker()
                     self.rqdata.init_progress_reporter.next_stage()
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1061, in RunQueue.start_worker():
             for mc in self.rqdata.dataCaches:
    >            self.worker[mc] = self._start_worker(mc)
     
  File "/home/fsl-release-bsp/fsl-release-bsp/sources/poky/bitbake/lib/bb/runqueue.py", line 1034, in RunQueue._start_worker(mc='', fakeroot=False, rqexec=None):
             worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>")
    >        worker.stdin.write(b"<workerdata>" + pickle.dumps(workerdata) + b"</workerdata>")
             worker.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20171212/994646cb/attachment-0002.html>


More information about the bitbake-devel mailing list