offsets.h No such file or directory

Hi, 

We have been using SDK version 2.1.1 and currently are in the process of migrating to SDK version 2.5.0.

Would be helpful to get some hint regarding what conditions can lead to the following error when building our application.

In file included from C:\ncs\v2.5.0\zephyr\include\zephyr\app_memory\app_memdomain.h:9,
from C:\ncs\v2.5.0\zephyr\include\zephyr\rtio\rtio.h:31,
from C:\ncs\v2.5.0\zephyr\include\zephyr\drivers\i2c.h:28,
from <our application.h>...
C:\ncs\v2.5.0\zephyr\include\zephyr\linker\linker-defs.h:26:10: fatal error: offsets.h: No such file or directory
26 | #include <offsets.h>
| ^~~~~~~~~~~

Thanks,

Mathi.

Parents Reply
  • That is of course not impossible, but it is unlikely, ninja is ultimately just a task runner and there aren't that many things that it can do wrong. I suspect that something changed in the Zephyr build system (or maybe in the NCS build system). For me, the file with the offsets.h issue is an external project that I add to the main CMakeLists.txt via add_subdirectory, which worked just fine in NCS 2.4.2, but fails now (with NCS 2.5.1). I also have an add_custom_target in my CMakeLists.txt that was added as a dependency to zephyr_final with NCS 2.4.2. After switching to 2.5.1, I had to add it as a dependency to zephyr_pre0 instead, because it wasn't executing at the right time anymore. So something definitely changed in the build system somewhere and I'm willing to bet that that's why we're seeing these issues now.

Children
No Data
Related