This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Receiving error no such file for offsets.c.obj when building solution

I have updated my repos to the latest commits on master for zephyr, mcuboot, nrf, and nrfxlib. I ran `

pip3 install -r scripts\requirements.txt

and I can open the asset_tracker SDK project but when I go to build, I get this error. What would be causing this now that I've updated the codebase?

Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
Combining ‘zephyr/include/generated/offsets.h’

/PROJECTCODE/ncs/zephyr/scripts/gen_offset_header.py", line 72, in <module>
[Errno 2] No such file or directory: 'C:/PROJECTCODE/ncs/fw-nrfconnect-nrf/applications/asset_tracker/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'

Build failed

Parents Reply Children
  • Hello Bjørn K.

    nRF9160 dev kit.

    I am getting the error below, maybe this is related to what "rkguy" initially posted?

    Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/misc/generated/syscalls.json’
    Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/offsets.h’
    1> Traceback (most recent call last):
    1> File "C:/programvare/nrfsemi/ncs/zephyr/scripts/gen_offset_header.py", line 72, in <module>
    1> input_file = open(args.input, 'rb')
    1> FileNotFoundError: [Errno 2] No such file or directory: 'C:/programvare/nrfsemi/ncs/nrf/samples/nrf9160/mqtt_simple/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'
    Build failed

    Regards

    David

  • Hi David,

    Could you please open a new DevZone case? Thanks!

Related