<?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>15968</bug_id>
          
          <creation_ts>2025-09-09 12:01:34 +0000</creation_ts>
          <short_desc>rust-target-config.bbclass: +v5 is not a valid target feature flag</short_desc>
          <delta_ts>2026-10-27 11:02:17 +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>5.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zixun Li">zli</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sundeep.kokkonda</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102721</commentid>
    <comment_count>0</comment_count>
    <who name="Zixun Li">zli</who>
    <bug_when>2025-09-09 12:01:34 +0000</bug_when>
    <thetext>Following warning is observed while compiling rust program for Microchip SAM9X60 processor (ARM926EJ-S architecture):

&apos;+v5&apos; is not a recognized feature for this target (ignoring feature)

This flag is added by llvm_features_from_tune() from rust-target-config.bbclass.

rustc --print target-features --target arm-poky-linux-gnueabi only have following options for armv5:

v5te                       - Support ARM v5TE, v5TEj, and v5TExp instructions.
armv5t                     - ARMv5t architecture.
armv5te                    - ARMv5te architecture.
armv5tej                   - ARMv5tej architecture.
v5t                        - Support ARM v5T instructions.

It&apos;s also not inside llvm&apos;s target features llvm/lib/Target/ARM
/ARMFeatures.td</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102740</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-09-11 14:49:02 +0000</bug_when>
    <thetext>Ross to try to work on identifying the arm version desired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102741</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-09-11 14:49:47 +0000</bug_when>
    <thetext>Probably should map to vt5 and error if thumb not available</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102742</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-09-11 14:50:11 +0000</bug_when>
    <thetext>What version of yocto was used here? There have been changes to the rust configuration recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102752</commentid>
    <comment_count>4</comment_count>
    <who name="Zixun Li">zli</who>
    <bug_when>2025-09-11 15:13:56 +0000</bug_when>
    <thetext>(In reply to Ross Burton from comment #3)
&gt; What version of yocto was used here? There have been changes to the rust
&gt; configuration recently.

I&apos;m using v5.2. &apos;+v5&apos; exist from the very beginning since 61e1570.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>