| Summary: | cmake hangs when building canopenterm recipe in do_configure | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Khem Raj <raj.khem> |
| Component: | devtools / tool chain | Assignee: | Unassigned <unassigned> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | meta.mr.watcher, meta.watcher, randy.macleod, ross.burton |
| Version: | 6.0 | ||
| Target Milestone: | 0.0.0 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Khem Raj
2026-03-18 00:32:57 UTC
Looks like cmake is infinitely looping looking for lua. You should file a bug upstream. Yes it'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. So cmake 4.3 contains a fix for the lua detection breaking with lua 5.5 but this then make canopenterm fail to compile. 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. | 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 "POSIX is not compatible with C89" | 91 | #error "POSIX is not compatible with C89" | | ^~~~~ We suspect that this is an issue with the canopenterm code. WE have recently updated cmake so re-open this issue if there's evidence that cmake really is at fault. (In reply to Ross Burton from comment #5) > | 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 "POSIX is not compatible > with C89" > | 91 | #error "POSIX is not compatible with C89" > | | ^~~~~ 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. (In reply to Randy MacLeod from comment #6) > We suspect that this is an issue with the canopenterm code. > WE have recently updated cmake so re-open this issue if there's evidence > 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 |