All of lore.kernel.org
 help / color / mirror / Atom feed
* using clang for one recipe
@ 2017-06-23 22:39 Trevor Woerner
  2017-06-23 22:57 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Trevor Woerner @ 2017-06-23 22:39 UTC (permalink / raw)
  To: yocto@yoctoproject.org, Khem Raj

I want to have one recipe build with clang instead of gcc (gcc is
being used for the rest of the image). I thought this was as simple as
adding the following line to the recipe:

    TOOLCHAIN = "clang"

Adding that line, and adding meta-clang to bblayers.conf, did get the
llvm/clang compiler built and installed to recipe-sysroot-native. But
the moment it starts to build the package, it fails immediately with:

    | fatal error: 'string' file not found
    | #include <string>
    |          ^~~~~~~~

Did I miss a step? That seems like a pretty basic thing that would be
needed for using a toolchain. If feels like I'm missing something;
like I need to add something else to my local.conf. Thoughts?
Suggestions?

I went looking for examples of recipes using clang and found
meta-openembedded/meta-oe/recipes-support/tbb.bb which includes:

    COMPILER ?= "gcc"
    COMPILER_toolchain-clang = "clang"

Odd. Why "COMPILER" and not "TOOLCHAIN" like meta-clang's README mentions?

Best regards,
    Trevor


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-24  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-23 22:39 using clang for one recipe Trevor Woerner
2017-06-23 22:57 ` Khem Raj
2017-06-24  1:55   ` Trevor Woerner
2017-06-24  2:45     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.