[meta-xilinx] MicroBlaze toolchain warping script
Elvis Dowson
elvis.dowson at gmail.com
Tue Apr 2 10:11:53 PDT 2013
On Apr 2, 2013, at 2:49 AM, John Williams <john.williams at xilinx.com> wrote:
> Hi Elvis,
>
>> From: Elvis Dowson [mailto:elvis.dowson at gmail.com]
>
>
>> On Mar 15, 2013, at 5:46 AM, John Williams <john.williams at xilinx.com> wrote:
>>
>>
>> Here is the toolchain warping script you asked about.
>>
>> Note this is a bit of a hack, and could be just plain wrong.
>>
>> Basically it's taking the MB linux toolchains that we get out of CT-NG,
>> and warping to look like a CodeSourceryLite sysroot. Then we can largely reuse
>> the csl-external recipe for it.
>>
>>
>> What are the variables that you set in local.conf?
>
> TCMODE="external-csl"
> CSL_TARGET_SYS_microblazeel = "microblazeel-xilinx-linux-gnu"
> EXTERNAL_TOOLCHAIN = "/home/jwilliams/yocto/gnu/microblazeel-xilinx-linux-gnu"
> EXTERNAL_TOOLCHAIN_SYSROOT = "/home/jwilliams/yocto/gnu/microblazeel-xilinx-linux-gnu/microblazeel-xilinx-linux-gnu/libc"
I'm still getting the same compile errors. It is because of multiple virtual/libc providers. The preferred provider variable gets set in the csl recipes, but it seems to be getting ignored for some reason.
Have you tried to build with a recent version of the yocto master branch? Perhaps you too might encounter the same errors now.
My local.conf file is set as follows:
# Set the toolchain mode to external Xilinx toolchain pre-compiled binary.
TCMODE = "external-csl"
CSL_TARGET_SYS_microblazeel = "microblazeel-unknown-linux-gnu"
EXTERNAL_TOOLCHAIN = "/tool/xilinx/gnu/microblazeel-unknown-linux-gnu"
EXTERNAL_TOOLCHAIN_SYSROOT = "/tool/xilinx/gnu/microblazeel-unknown-linux-gnu/libc"
#NO32LIBS = "0"
Build output:
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for eglibc (eglibc, eglibc-sourcery, external-sourcery-toolchain)
NOTE: consider defining a PREFERRED_PROVIDER entry to match eglibc
NOTE: multiple providers are available for runtime linux-libc-headers-dev (linux-libc-headers, linux-libc-headers-yocto)
NOTE: consider defining a PREFERRED_PROVIDER entry to match linux-libc-headers-dev
NOTE: Preparing runqueue
ERROR: Multiple .bb files are due to be built which each provide virtual/libc (/tool/yocto/poky/meta/recipes-core/eglibc/eglibc_2.17.bb /tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb).
This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/microblazeel-unknown-linux-gnu-libc-for-gcc (/tool/yocto/poky/meta/recipes-core/eglibc/eglibc_2.17.bb /tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb).
This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide eglibc (/tool/yocto/poky/meta/recipes-core/eglibc/eglibc_2.17.bb /tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb).
This usually means one provides something the other doesn't and should.
ERROR: Multiple .bb files are due to be built which each provide virtual/libiconv (/tool/yocto/poky/meta/recipes-core/eglibc/eglibc_2.17.bb /tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb).
This usually means one provides something the other doesn't and should.
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/microblazeel-poky-linux/external-sourcery-toolchain/1.14.1-r21/temp/log.do_install.3965 for further information)
ERROR: Logfile of failure stored in: /tool/yocto/poky/build/tmp/work/microblazeel-poky-linux/external-sourcery-toolchain/1.14.1-r21/temp/log.do_install.3965
Log data follows:
| DEBUG: Executing shell function do_install
| cp: cannot stat `/tool/xilinx/gnu/microblazeel-unknown-linux-gnu/libc/lib/.': No such file or directory
| ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/microblazeel-poky-linux/external-sourcery-toolchain/1.14.1-r21/temp/log.do_install.3965 for further information)
ERROR: Task 46 (/tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 97 tasks of which 63 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb, do_install
Summary: There were 5 ERROR messages shown, returning a non-zero exit code.
real 2m38.642s
user 4m28.125s
sys 0m23.653s
Best regards,
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20130402/04a3d1f1/attachment.html>
More information about the meta-xilinx
mailing list