<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9417</bug_id>
          
          <creation_ts>2016-04-07 17:21:22 +0000</creation_ts>
          <short_desc>Bring clang/llvm compiler infrastructure to OE-Core</short_desc>
          <delta_ts>2025-10-09 14:55:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          <dependson>11528</dependson>
    
    <dependson>11529</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>akuster</cc>
    
    <cc>jon.richardson</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>otavio</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>scott.branden</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60934</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-04-07 17:21:22 +0000</bug_when>
    <thetext>There has been multiple demands from developers and users to use Clang compiler with OE
which is currently provided via meta-clang. This is a feature request to merge meta-clang into OE-Core in 2.2 release time frame

The tools should be merged such that

1. Both compilers are available in a build where building clang is optional
2. Default remains to use gcc however a user knob is provided to switch the default to be clang.
3. Provide a knob such as TOOLCHAIN variable in global config metadata so it can be used per recipe to pin it to a particular compiler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61045</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-04-11 20:57:08 +0000</bug_when>
    <thetext>*** Bug 6042 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61213</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-14 14:37:38 +0000</bug_when>
    <thetext>I think that adding llvm itself might be desired by a number of people but clang as a compiler option might be a step too far for 2.2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61231</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-04-14 15:27:31 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think that adding llvm itself might be desired by a number of people but
&gt; clang as a compiler option might be a step too far for 2.2.

We can see if we can make clang as packageconfig option, I believe it will require
a refactoring otherwise which could be regressive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68278</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2016-11-14 17:41:34 +0000</bug_when>
    <thetext>should we target Clang/llvm in OE-Core ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74338</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2017-06-19 17:15:59 +0000</bug_when>
    <thetext>Only llvm will be brought in in 2.3 time frame.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75508</commentid>
    <comment_count>6</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2017-07-31 17:14:01 +0000</bug_when>
    <thetext>llvm has been committed. Clang still remains in meta-clang, move this ticket to next major release</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91638</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-09-30 15:29:26 +0000</bug_when>
    <thetext>Ross, Apparently you are interested in this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91639</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-09-30 15:31:38 +0000</bug_when>
    <thetext>Interested in the infrastructure but not moving the actual toolchain, yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91640</commentid>
    <comment_count>9</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-09-30 15:54:05 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; Interested in the infrastructure but not moving the actual toolchain, yet.

I think we should discuss it more for next LTS, perhaps it would be appropriate to add it to Core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102895</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-10-09 14:55:18 +0000</bug_when>
    <thetext>master (will be whinlatter) now has both clang and TOOLCHAIN support. I guess the latest commit that is relevant is oe-core 45bdedd213aff8df3214b95ef2a8551c0abd93a0 (adding toolchain abstraction).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>