[oe] Error in building OE for MicroBlaze!
Ali Akbar Zarezadeh
akzare at cs.uni-potsdam.de
Mon Jan 31 16:40:17 UTC 2011
Hi Again,
Since last week I changed my way to use the existing MicroBlaze
toolchain provided by Xilinx (http://xilinx.wikidot.com/mb-gnu-tools)
as an external toolchain in OE. Therefore, I modified my local.conf
like this:
TARGET_VENDOR = "-none"
TOOLCHAIN_TYPE = "external"
TOOLCHAIN_BRAND = "csl"
MACHINE = "xilinx-ml605"
TARGET_ARCH = "microblaze"
TARGET_CPU = "microblaze"
TARGET_TUNE = "microblaze"
# Hardware project options
XILINX_BSP_PATH =
"/home/akzare/Projects/PICSY/Hardware/SoC/EDK/virtex6/Segmentation/microblaze_0/libsrc/device-tree_v0_00_x"
XILINX_BOARD = "ml605"
I copied the Xilinx toolchain in this location:
/opt/local/LinuxKernel_mb/Tools_MB_BE/microblaze-unknown-linux-gnu/bin
and then:
export
PATH=$PATH:/opt/local/LinuxKernel_mb/Tools_MB_BE/microblaze-unknown-linux-gnu/bin
And for distribution I use the minimal.conf + these lines:
#Machine specific tweaks, will move to its own include soon
PREFERRED_PROVIDER_virtual/kernel = "linux-xilinx-ml605"
PREFERRED_VERSION_linux-xilinx-ml605 = "2.6.37"
I try to simply do: bitbake helloworld-image
This mechanism is successful up to 266'th task.
Now, I stop by this error:
...
NOTE: Running task 277 of 523 (ID: 101,
/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb,
do_package)
NOTE: package external-toolchain-csl-1.0-r7: task do_package: Started
...
NOTE: Multiple libraries (libnss_hesiod.so.2, libnss_nis.so.2,
libnss_nisplus.so.2) found, but LEAD_SONAME 'libc.so.6' doesn't match
any of them
----------------------------------------------------------------
NOTE: Multiple libraries (libnss_hesiod.so.2, libnss_nis.so.2,
libnss_nisplus.so.2) found, but LEAD_SONAME 'libc.so.6' doesn't match
any of them
ERROR: PKGV not defined
ERROR: Error in executing python function in:
/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb
ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux-gnu'
ERROR: Printing the environment of the function
ERROR: 0004: packages = bb.data.getVar('PACKAGES',d, True)
ERROR: 0005:
ERROR: 0006: # no packages should be scanned
ERROR: 0007: if not packages:
ERROR: 0008: return
ERROR: 0009:
ERROR: 0010: checks = [package_qa_check_rpath, package_qa_check_dev,
ERROR: 0011: package_qa_check_perm, package_qa_check_arch,
ERROR: 0012: package_qa_check_desktop, package_qa_hash_style,
ERROR: Function do_package_qa failed
NOTE: Task failed: ('function do_package_qa failed',
'/opt/local/oe_mb/tmp/work/microblaze-none-linux-gnu/external-toolchain-csl-1.0-r7/temp/log.do_package_qa.3960')
ERROR: Logfile of failure stored in:
/opt/local/oe_mb/tmp/work/microblaze-none-linux-gnu/external-toolchain-csl-1.0-r7/temp/log.do_package_qa.3960
Log data follows:
| ERROR: Error in executing python function in:
/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb
| ERROR: Exception:<type 'exceptions.KeyError'> Message:'linux-gnu'
| ERROR: Printing the environment of the function
| ERROR: 0004: packages = bb.data.getVar('PACKAGES',d, True)
| ERROR: 0005:
| ERROR: 0006: # no packages should be scanned
| ERROR: 0007: if not packages:
| ERROR: 0008: return
| ERROR: 0009:
| ERROR: 0010: checks = [package_qa_check_rpath, package_qa_check_dev,
| ERROR: 0011: package_qa_check_perm, package_qa_check_arch,
| ERROR: 0012: package_qa_check_desktop, package_qa_hash_style,
| ERROR: Function do_package_qa failed
NOTE: package external-toolchain-csl-1.0-r7: task do_package: Failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of
/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb
do_package failed
ERROR: Task 101
(/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb,
do_package) failed with 256
ERROR:
'/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb'
failed
ERROR:
'/opt/local/oe_mb/openembedded/recipes/meta/external-toolchain-csl.bb'
failed
----------------------------------------------------------------
Is there any suggestion?
Ali
Quoting Khem Raj <raj.khem at gmail.com>:
>> ----------------------------------------------------------------
>>
>> gcc-4.5.inc ->
>> ----------------------------------------------------------------
>> # BRANCH = "gcc-4_5-branch"
>> BRANCH = "microblaze"
>> PR_append = "+svnr${SRCPV}"
>> ...
>
>
> This is the problem for your gcc issue above. OE gcc tracks the
> gcc-4_5-branch and all patches are based on that
> if you change the branch to something else then obviously patches wont
> apply. You have two options here
> if microblaze branch has distinct patches then apply them to 4_5
> branch otherwise write new recipes for gcc which
> use the microblaze branch.
>
> Hope that helps.
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the Openembedded-devel
mailing list