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

Failed to manually build blinky example

Had tried to build it from the IDE before.  Couldn't do it.
Tried to build manually, got exactly the same error I was getting in the IDE.

Parsing C:/Users/mario.raposo/zephyrproject/zephyr/Kconfig
Loaded configuration 'C:/Users/mario.raposo/zephyrproject/zephyr/build/zephyr/.config'
No change to configuration in 'C:/Users/mario.raposo/zephyrproject/zephyr/build/zephyr/.config'
No change to Kconfig header in 'C:/Users/mario.raposo/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
CMake Error at ../../../cmake/extensions.cmake:1557 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
../../../CMakeLists.txt:42 (assert)


-- Configuring incomplete, errors occurred!
See also "C:/Users/mario.raposo/zephyrproject/zephyr/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/mario.raposo/zephyrproject/zephyr/build/CMakeFiles/CMakeError.log".

Parents
  • Hi Mario,

    What version of ncs do you have?
    What version of cmake do you have?
    Can you build other example projects?

    I see that you have a dot "." in you path. C:/Users/mario.raposo/... Try to change the "." to a underscore "_" and se if you still have the same build errors. 

    The error:

    CMake Error at ../../../cmake/extensions.cmake:1557 (message):

    is the following 

     check_if_directory_is_writeable(${test_user_dir} ok)
          if(${ok})
            # The directory is write-able
            set(user_dir ${test_user_dir})
            break()
          else()                          // This is line 1557
            # The directory was not writeable, keep looking for a suitable
            # directory
          endif()


    Regards,
    Joathan

  • 1. ncs 1.3.1 (Can I get 1.4.0 somewhere?)
    2. cmake version 3.18.4
    3. None of them build.

    The latest issue I have is when trying to build the cloud_client example:

    Parsing C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/Kconfig
    Loaded configuration 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/.config'
    No change to configuration in 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/.config'
    No change to Kconfig header in 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/include/generated/autoconf.h'
    CMake Error at C:/Users/mario.raposo/ncs/v1.3.1/zephyr/cmake/extensions.cmake:1479 (message):
    No such file or directory: LIBGCC_FILE_NAME: ''

Reply
  • 1. ncs 1.3.1 (Can I get 1.4.0 somewhere?)
    2. cmake version 3.18.4
    3. None of them build.

    The latest issue I have is when trying to build the cloud_client example:

    Parsing C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/Kconfig
    Loaded configuration 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/.config'
    No change to configuration in 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/.config'
    No change to Kconfig header in 'C:/Users/mario.raposo/ncs/v1.3.1/nrf/samples/nrf9160/cloud_client/build_thingy91_nrf9160ns/zephyr/include/generated/autoconf.h'
    CMake Error at C:/Users/mario.raposo/ncs/v1.3.1/zephyr/cmake/extensions.cmake:1479 (message):
    No such file or directory: LIBGCC_FILE_NAME: ''

Children
No Data
Related