[yocto] issue with clang-native when building with bitbake
Khem Raj
raj.khem at gmail.com
Tue Jan 23 21:40:24 PST 2018
On 12/19/17 10:36 AM, Tomasz Michalski wrote:
> Hi
> When I build image I get such error and build stops:
>
> ERROR: Nothing PROVIDES 'clang-native'. Close matches:
> ....
> NOTE: Runtime target 'lib32-ty' is unbuildable, removing...
> Missing or unbuildable dependency chain was: ['lib32-ty', 'clang-native']
> NOTE: Runtime target 'lib32-duma' is unbuildable, removing...
> Missing or unbuildable dependency chain was: ['lib32-duma', 'lib32-ty',
> 'clang-native']
>
> So I grep all my repository with command
> "grep -r "*clang-native*" ./
> and I don't see any recipe/anything which inherits or depends on
> clang-native. In fact nothing is found for keyword "*clang-native*".
> Nevertheless I debugged that clang is connected with
> meta-openembedded and there is meta-clang available
> on https://github.com/kraj/meta-clang so I downloaded meta-clang dir and
> placed it in meta-openembedded directory but nothing changes, still the
> error is the same.
>
you also need to add the layer to your bblayers.conf
maybe you can use bitbake-layers add-layer </path/to/meta-clang> to do that
> Could someone give some hints how to debug such problem? The strange
> thing is that nothing is found for keyword "clang-native" in yocto
> project. lib32-ty doesn't depend on clang-native despite the output from
> console is:
> Missing or unbuildable dependency chain was: ['lib32-ty', 'clang-native']
> I checked lib32-ty recipe.
> In fact I don't need clang at all, however it is no matter for me, if I
> have to I can add this to my project.
you can see if its setting the dependency explicitly. you can remove the
dependency on clang-native too.
>
> Thanks in advance for hints
> Tomek
>
>
More information about the yocto
mailing list