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 Children
  • Is there any update on this issue?

    FYI: Our project has two child images: MCUBOOT and HCI_RPMSG.

    I agree with Bogdan's comment - this looks very much like a dependency/order issue. 

  • Hi Tonny,

    We have a lot of users building projects with multiple child images without this error.
    However, since multiple people in this ticket have the same issue, there is likely one thing in common that you do which causes the issue. If we can find out what that is, we can figure out if it is a bug or if there is something that you can do to fix the issue.

    However, I do not yet know enough about the projects to know what this could be yet.

    Here are some questions to things I suspect could impact this:

    How did you install the nRF Connect SDK and its toolchain?
    How did you add mcuboot and hci_rpmsg to your project?
    Do you use sysbuild?

  • Hi Sigurd and thanks for your swift response.

    - I installed the toolchain using the Toolchain Manager from nRF Connect for Desktop

    - mcuboot and hci_rpmsg are added in the child_image folder to the application.

    child_image\hci_rpmsg.conf
    child_image\mcuboot
    child_image\mcuboot\prj.conf
    child_image\mcuboot\boards
    child_image\mcuboot\boards\x_cpuapp.overlay
    

    - We are not using sysbuild.

    We are currently using SDK 2.1.1 and want to upgrade to 2.5.0 but hit the problem with offsets.h.

    Upgrading to 2.4.x does not lead to the problem with offsets.h.

  • Hi,

    - I installed the toolchain manually. My project is a single application with its own west.yml that pulls in all the required dependencies, including NCS. The application has other dependencies that are compiled using cmake's add_subdirectory, I suspect this is part of the issue on my side (since the offsets.h issue appeared on one of these dependencies).
    - mcuboot and hci_rpmsg were added automatically by the build system by setting the relevant configuration options in prj.conf.
    - I don't use sysbuild.

  • Hi Sigurd,

    - I installed the toolchain using the Toolchain Manager from nRF Connect for Desktop

    - mcuboot is added via prj.conf with CONFIG_BOOTLOADER_MCUBOOT=y

    - Not using hci_rpmsg

    - Not using sysbuild

    - Application has a west.yml for fetching one of our modules from git 

Related