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

  • Changed my path to \Nordic and I get the same error when I do a manual build:

    -- Cache files will be written to: C:/Nordic/ncs/zephyr/.cache
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:\gnuarmemb)
    -- Found BOARD.dts: C:/Nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns.dts
    -- Generated zephyr.dts: C:/Nordic/ncs/zephyr/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Nordic/ncs/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
    Parsing C:/Nordic/ncs/zephyr/Kconfig
    Loaded configuration 'C:/Nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns_defconfig'
    Merged configuration 'C:/Nordic/ncs/zephyr/samples/basic/blinky/prj.conf'
    Configuration saved to 'C:/Nordic/ncs/zephyr/build/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/ncs/zephyr/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 8.3.1
    -- The CXX compiler identification is GNU 8.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    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:/Nordic/ncs/zephyr/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Nordic/ncs/zephyr/build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\users\mario.raposo\appdata\local\programs\python\python37\python.exe' '-BC:\Nordic\ncs\zephyr\build' '-SC:\Nordic\ncs\zephyr\samples\basic\blinky' -GNinja

Reply
  • Changed my path to \Nordic and I get the same error when I do a manual build:

    -- Cache files will be written to: C:/Nordic/ncs/zephyr/.cache
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:\gnuarmemb)
    -- Found BOARD.dts: C:/Nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns.dts
    -- Generated zephyr.dts: C:/Nordic/ncs/zephyr/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Nordic/ncs/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
    Parsing C:/Nordic/ncs/zephyr/Kconfig
    Loaded configuration 'C:/Nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns_defconfig'
    Merged configuration 'C:/Nordic/ncs/zephyr/samples/basic/blinky/prj.conf'
    Configuration saved to 'C:/Nordic/ncs/zephyr/build/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/ncs/zephyr/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 8.3.1
    -- The CXX compiler identification is GNU 8.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    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:/Nordic/ncs/zephyr/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Nordic/ncs/zephyr/build/CMakeFiles/CMakeError.log".
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\users\mario.raposo\appdata\local\programs\python\python37\python.exe' '-BC:\Nordic\ncs\zephyr\build' '-SC:\Nordic\ncs\zephyr\samples\basic\blinky' -GNinja

Children
Related