An error occurred while compiling the "channel_sounding_ras" process:
,A certain file is missing. I am using version 3.0.2 of ncs.Could you please tell me how to solve this problem?
An error occurred while compiling the "channel_sounding_ras" process:
,A certain file is missing. I am using version 3.0.2 of ncs.Could you please tell me how to solve this problem?
Hello,
This is probably because the path is too long. I guess that if you look a little longer up in the build log, you will see something like this:
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeFiles/oberon_psa_core.dir/./
has 202 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C_/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/psa_crypto_driver_wrappers.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/drivers/cracen/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/nrf/subsys/nrf_security/src/drivers/cracen/CMakeFiles/cracen_psa_driver.dir/./
has 203 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
silexpk/target/baremetal_ba414e_with_ik/pk_baremetal.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/zephyr/modules/hal_nordic/nrfx/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/./
has 203 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C_/nordic/SDKs/ncs/v3.0.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
This usually (but not always) results in a file not being found (but may also result in other types of errors).
So the easy workaround is to move the sample folder closer to your C-drive, giving it a shorter path. E.g. create a folder called C:\ncs\my_apps\3.0.2\, and place the channel_sounding_ras_initiator sample there. Also, rename it to something shorter, like cs_init, and cs_refl. (these channel sounding samples are particularly voulnerable to this "long path" issue).
Alternatively, if you are building using the command line, you can build using ninja directly, instead of using the "west build" command. For that, please use these commands:
cd channel_sounding_ras_initiator mkdir build cd build cmake .. -DBOARD=nrf54l15dk/nrf54l15/cpuapp -GNinja ninja
But if you are using VS Code, then make the sample location have a shorter path.
Best regards,
Edvin
Hello,
This is probably because the path is too long. I guess that if you look a little longer up in the build log, you will see something like this:
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/nrf/subsys/nrf_security/src/core/nrf_oberon/CMakeFiles/oberon_psa_core.dir/./
has 202 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C_/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/psa_crypto_driver_wrappers.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/nrf/subsys/nrf_security/src/drivers/cracen/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/nrf/subsys/nrf_security/src/drivers/cracen/CMakeFiles/cracen_psa_driver.dir/./
has 203 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
silexpk/target/baremetal_ba414e_with_ik/pk_baremetal.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
CMake Warning in C:/nordic/SDKs/ncs/v3.0.2/zephyr/modules/hal_nordic/nrfx/CMakeLists.txt:
The object file directory
C:/nordic/SDKs/ncs/v3.0.2/nrf/samples/bluetooth/channel_sounding_ras_initiator/_build/channel_sounding_ras_initiator/modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/./
has 203 characters. The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
C_/nordic/SDKs/ncs/v3.0.2/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
cannot be safely placed under this directory. The build may not work
correctly.
This usually (but not always) results in a file not being found (but may also result in other types of errors).
So the easy workaround is to move the sample folder closer to your C-drive, giving it a shorter path. E.g. create a folder called C:\ncs\my_apps\3.0.2\, and place the channel_sounding_ras_initiator sample there. Also, rename it to something shorter, like cs_init, and cs_refl. (these channel sounding samples are particularly voulnerable to this "long path" issue).
Alternatively, if you are building using the command line, you can build using ninja directly, instead of using the "west build" command. For that, please use these commands:
cd channel_sounding_ras_initiator mkdir build cd build cmake .. -DBOARD=nrf54l15dk/nrf54l15/cpuapp -GNinja ninja
But if you are using VS Code, then make the sample location have a shorter path.
Best regards,
Edvin