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

Custom board build fails with SDK 1.5.0, works with 1.4.0

We are getting a "No SOURCES given to target: drivers__ipm" error making build fail for our custom board when trying to move to 1.5.0 for official nRF53 production support.
Cmakelists in the sdk's appear identical, and the only change is running west from commandline environment for 1.5.0 instead of 1.4.0.

Parents
  • Hi Kyrre, 

    Can you please elaborate on where you get the message "No SOURCES given to target: drivers__ipm"? What environment are you using i.e. SES og command line?Can you provide full output?

    Thank you.

    Kind regards,
    Øyvind

  • SES just failed with little info so I did this to a new build folder on commandline after starting the commandline from the toolchain manager. It is accessing the correct folder at user/<username>/ncs/1.5.0/ equal to the results from 1.4.0 but the build differs when cmake gets to some libraries.

    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at ../../../CMakeLists.txt:1357 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    CMake Error at ../../../cmake/extensions.cmake:416 (add_library):
      No SOURCES given to target: drivers__ipm
    Call Stack (most recent call first):
      ../../../cmake/extensions.cmake:393 (zephyr_library_named)
      ../../../drivers/ipm/CMakeLists.txt:3 (zephyr_library)

    Fow 1.4.0 it looks like this:

    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/xxx/Documents/projects/Hy5_AIO/Hy5_AIO_nRF/build/hci_rpmsg
    === child image hci_rpmsg - CPUNET end ===

    I do see multiple warnings in both SDK's but with different "styles":

    CMake Warning (dev) at C:/Users/xxx/ncs/v1.4.0/modules/lib/open-amp/open-amp/cmake/options.cmake:51 (option):
    Policy CMP0077 is not set: option() honors normal variables. Run "cmake
    --help-policy CMP0077" for policy details. Use the cmake_policy command to
    set the policy and suppress this warning.

    For compatibility with older versions of CMake, option is clearing the
    normal variable 'WITH_VIRTIO_MASTER'.
    Call Stack (most recent call first):
    C:/Users/xxx/ncs/v1.4.0/modules/lib/open-amp/open-amp/CMakeLists.txt:21 (include)
    This warning is for project developers. Use -Wno-dev to suppress it.

  • Have you tried a standard sample to see how that builds? Can you try to remove the build folder, or build in a new build folder?

    If that does not provide any answers, please attach your project for me to replicate.

    Thanks

    Kind regards,
    Øyvind

Reply Children
Related