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
  • I was able to get a little bit forward.
    Now getting a "undefined reference to _exit" error.
    I opened a new case:

    devzone.nordicsemi.com/.../undefined-reference-to-_exit-when-building-blinky

  • You can get the latest release of the GNU Arm Embedded Toolchain here and older release here
    check out this video for a visualization of the IDE use and more: https://youtu.be/1jgImp7FBy8?t=877 
    What is the command you use in terminal when trying to build?

    Do you use  west build -b thingy91_nrf9160ns

    And do you still get the same terminal output:

    -- 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


    Your CMakeOutput file look good the CMakeError has a build command fail that C executable Linking. 
    resulting in a can not fin path. 

    Linking C executable cmTC_3e03c
    FAILED: cmTC_3e03c
    :
    :
    The system cannot find the path specified.



    We can continue the discussion on either case if the problem is related, i will get back to you on the topic of each case if there the problems are not related.
    Regards,
    Jonathan

Reply
  • You can get the latest release of the GNU Arm Embedded Toolchain here and older release here
    check out this video for a visualization of the IDE use and more: https://youtu.be/1jgImp7FBy8?t=877 
    What is the command you use in terminal when trying to build?

    Do you use  west build -b thingy91_nrf9160ns

    And do you still get the same terminal output:

    -- 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


    Your CMakeOutput file look good the CMakeError has a build command fail that C executable Linking. 
    resulting in a can not fin path. 

    Linking C executable cmTC_3e03c
    FAILED: cmTC_3e03c
    :
    :
    The system cannot find the path specified.



    We can continue the discussion on either case if the problem is related, i will get back to you on the topic of each case if there the problems are not related.
    Regards,
    Jonathan

Children
No Data
Related