<?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>16053</bug_id>
          
          <creation_ts>2025-11-03 17:58:12 +0000</creation_ts>
          <short_desc>In nativesdk-cmake, the {arch}-toolchain.cmake file installed in the wrong place</short_desc>
          <delta_ts>2026-10-27 11:04:46 +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.0.15</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="Wojtek Wojtkowski">wwojtek55</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103174</commentid>
    <comment_count>0</comment_count>
    <who name="Wojtek Wojtkowski">wwojtek55</who>
    <bug_when>2025-11-03 17:58:12 +0000</bug_when>
    <thetext>The cmake-setup.py generates the file based on SDKToolchainConfig.cmake.template and installs it in &apos;usr/share/cmake/%s-toolchain.cmake&apos;. 

Then, the OEToolchainConfig.cmake file only looks for files inside of 

   /usr/share/cmake/OEToolchainConfig.cmake.d/*

and so the {arch}-toolchain.cmake file never gets included when you source the SDK.


Related files: 

openembedded-core/meta/recipes-devtools/cmake/cmake_3.31.6.bb
openembedded-core/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
openembedded-core/meta/recipes-devtools/cmake/cmake/cmake-setup.py


Versions: 

I am currently using ((yocto-5.0.5)) tag but when I checked out master there seems to be the same issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>