Skip to contentSkip to conversation

conflicts with clang libraries

Rocko [email protected] 2 participants 3 messages May 30, 2018 – May 31, 2018

lore
Share & tools
lore
#0 lore raw

hello

With the help of yocto/rocko, I m writing recipes to build an image that should provide an opencl stack on top of "beignet".

https://cgit.freedesktop.org/beignet/

started from here:
https://github.com/intel/intel-iot-refkit/tree/master/meta-refkit-computervision/recipes-opencl

Thus this requires clang to build, I included the meta-layer, from

https://github.com/kraj/meta-clang

in the configuration.

-->

I am facing conflicts between clang c++ library and libunwind.

ERROR: Multiple .bb files are due to be built which each provide libunwind:
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb /home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb
A list of tasks depending on these providers is shown and may help explain where the dependency comes from. /home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique dependees:
/home/marec/poky/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb:do_build /home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_prepare_recipe_sysroot /home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_build
/home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_package
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique dependees:
/home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_package /home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_prepare_recipe_sysroot /home/marec/poky/meta-msdk-stack/recipes-multimedia/beignet/beignet_1.3.2.bb:do_build /home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_build
It could be that one recipe provides something the other doesn't and should. The following provider and runtime provider differences may be helpful. /home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique provides:
libcxx
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique rprovides:
libcxx
libcxx-dbg
libcxx-doc
libcxx-staticdev
libcxx-locale
libcxx-dev
^libcxx-locale-.*
/home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique provides:

/home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique rprovides:
libunwind-doc
libunwind-dev
^libunwind-locale-.*
libunwind-staticdev
libunwind-locale
libunwind-dbg

<--

I do not intend to use Clang as a primary or secondary tool-chain.
- I already setup icc as secondary tool-chain -

Any clue to solve this ?

--
David Marec

#1 lore raw

are you using rocko branch of meta-clang as well ?

Quoted 71 lines · On Wed, May 30, 2018 at 7:57 AM, [email protected] <[email protected]>…

hello

With the help of yocto/rocko, I m writing recipes to build an image that should provide an opencl stack on top of "beignet".

https://cgit.freedesktop.org/beignet/

started from here:
https://github.com/intel/intel-iot-refkit/tree/master/meta-refkit-computervision/recipes-opencl

Thus this requires clang to build, I included the meta-layer, from

https://github.com/kraj/meta-clang

in the configuration.

-->

I am facing conflicts between clang c++ library and libunwind.

ERROR: Multiple .bb files are due to be built which each provide libunwind:
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb /home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb
A list of tasks depending on these providers is shown and may help explain where the dependency comes from. /home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique dependees:
/home/marec/poky/meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb:do_build /home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_prepare_recipe_sysroot /home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_build
/home/marec/poky/meta/recipes-kernel/perf/perf.bb:do_package
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique dependees:
/home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_package /home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_prepare_recipe_sysroot /home/marec/poky/meta-msdk-stack/recipes-multimedia/beignet/beignet_1.3.2.bb:do_build /home/marec/poky/meta-clang/recipes-devtools/clang/clang_git.bb:do_build
It could be that one recipe provides something the other doesn't and should. The following provider and runtime provider differences may be helpful. /home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique provides:
libcxx
/home/marec/poky/meta-clang/recipes-devtools/clang/libcxx_git.bb has unique rprovides:
libcxx
libcxx-dbg
libcxx-doc
libcxx-staticdev
libcxx-locale
libcxx-dev
^libcxx-locale-.*
/home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique provides:

/home/marec/poky/meta/recipes-support/libunwind/libunwind_1.2.bb has unique rprovides:
libunwind-doc
libunwind-dev
^libunwind-locale-.*
libunwind-staticdev
libunwind-locale
libunwind-dbg

<--

I do not intend to use Clang as a primary or secondary tool-chain.
- I already setup icc as secondary tool-chain -

Any clue to solve this ?

--
David Marec

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

Re: ?==?utf-8?q? [Rocko] conflicts with clang libraries

Quoted 2 lines · Khem Raj

are you using rocko branch of meta-clang as well ?

Yes:

Build Configuration:

BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
meta
meta-poky
meta-yocto-bsp       = "rocko:90414ecd5cf72995074f3dc6b05cfbee0a1dab67"
meta-intel           = "rocko:f66ce51d059d291a441d896854be8db70de5a554"
meta-clang           = "rocko:a4c0cd28de9c3d5823be43150a76d221b08896d6"

meta-oe
meta-python
meta-networking = "rocko:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta-beignet = "ross:c60b0045d5096ec696deab0c79e89117febbf2db"
...

Regards,
--
David Marec