<?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>16208</bug_id>
          
          <creation_ts>2026-03-18 00:32:57 +0000</creation_ts>
          <short_desc>cmake hangs when building canopenterm recipe in do_configure</short_desc>
          <delta_ts>2026-03-24 17:53:19 +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>6.0</version>
          <rep_platform>x86</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>104696</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2026-03-18 00:32:57 +0000</bug_when>
    <thetext>There is a problem with cmake-native provided cmake, when building canopenterm from meta-oe layer, it is hanging in do_configure in cmake call forever. There is no change in canopenterm recipe and it hangs in same way if the recipe is upgraded to 1.14 as well. so it seems something has crept into cmake or maybe other dependencies which is causing this. It is always reproducible.

bitbake canopenterm

after adding meta-oe to bblayers.

here is cmake invocation cmdline

cmake -G Ninja -DCMAKE_MAKE_PROGRAM=ninja /mnt/b/yoe/master/build/tmp/work/armv8a-yoe-linux/canopenterm/1.0.14/sources/canopenterm-1.0.14 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_INCLUDEDIR:PATH=include -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3 -DPython_EXECUTABLE:PATH=/usr/bin/python3 -DPython3_EXECUTABLE:PATH=/usr/bin/python3 -DLIB_SUFFIX= -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/mnt/b/yoe/master/build/tmp/work/armv8a-yoe-linux/canopenterm/1.0.14/toolchain.cmake -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DBUILD_YOCTO=ON -Wno-dev</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104703</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-18 17:47:08 +0000</bug_when>
    <thetext>Looks like cmake is infinitely looping looking for lua. You should file a bug upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104704</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-18 17:51:55 +0000</bug_when>
    <thetext>Yes it&apos;s infinitely looping doing a find for LUA_INCLUDE_DIR, finds /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/recipe-sysroot/usr/include/ which does in fact contain lua.h but then adds it to the ignore list and tries again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104705</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-18 20:33:51 +0000</bug_when>
    <thetext>So cmake 4.3 contains a fix for the lua detection breaking with lua 5.5 but this then make canopenterm fail to compile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104706</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2026-03-18 21:41:33 +0000</bug_when>
    <thetext>What are the errors ?
I have an upgrade slotted in master-next for canopenterm to 1.0.14 in master-next maybe that helps ? ofcourse it has a patch to workaround the cmake issue but that can be ignored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104722</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-19 09:54:25 +0000</bug_when>
    <thetext>| In file included from /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/recipe-sysroot/usr/include/lua.h:28,
|                  from /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/sources/canopenterm-1.0.13/src/core/core.h:13,
|                  from /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/sources/canopenterm-1.0.13/src/api/pyt
hon_sdo.c:10:
| /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/recipe-sysroot/usr/include/luaconf.h:91:2: error: #error &quot;POSIX is not compatible with C89&quot;
|    91 | #error &quot;POSIX is not compatible with C89&quot;
|       |  ^~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104734</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-19 14:57:05 +0000</bug_when>
    <thetext>We suspect that this is an issue with the canopenterm code.
WE have recently updated cmake so re-open this issue if there&apos;s evidence that cmake really is at fault.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104787</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2026-03-24 17:50:57 +0000</bug_when>
    <thetext>(In reply to Ross Burton from comment #5)
&gt; | In file included from
&gt; /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/recipe-
&gt; sysroot/usr/include/lua.h:28,
&gt; |                  from
&gt; /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/sources/
&gt; canopenterm-1.0.13/src/core/core.h:13,
&gt; |                  from
&gt; /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/sources/
&gt; canopenterm-1.0.13/src/api/pyt
&gt; hon_sdo.c:10:
&gt; |
&gt; /work/ross/build/tmp/work/cortexa57-poky-linux/canopenterm/1.0.13/recipe-
&gt; sysroot/usr/include/luaconf.h:91:2: error: #error &quot;POSIX is not compatible
&gt; with C89&quot;
&gt; |    91 | #error &quot;POSIX is not compatible with C89&quot;
&gt; |       |  ^~~~~

this is solvable, I think C89 pinning needs to be dropped for it to work with
latest lua, I have sent a patch for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104788</commentid>
    <comment_count>8</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2026-03-24 17:53:19 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #6)
&gt; We suspect that this is an issue with the canopenterm code.
&gt; WE have recently updated cmake so re-open this issue if there&apos;s evidence
&gt; that cmake really is at fault.

To set the resolution a bit clear so its really not INVALID but
This was a regression in cmake 4.2.3 which got fixed in 4.3.0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>