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

Asset tracking application in SES not building succesfully

Dear support,

The build of the asset tracking application is not working

Below the copy and paste of SES buildlog

Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
Combining ‘zephyr/misc/generated/syscalls.json’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/liboffsets.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
Building ‘libapp.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/libzephyr.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/libarch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/lib/libc/newlib/liblib__libc__newlib.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/boards/arm/nrf52840_pca10090/libboards__arm__nrf52840_pca10090.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/controller/libsubsys__bluetooth__controller.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/net/libsubsys__net.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/net/ip/libsubsys__net__ip.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/nrf/ext/cjson/lib..__nrf__ext__cjson.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/nrf/lib/bsdlib/lib..__nrf__lib__bsdlib.a’ from solution ‘build’ in configuration ‘Common’
Compiling ‘bsd_os.c’
nrfx.h
nrfx_uarte.h
bsd_os.c
'NRFX_UARTE1_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_UARTE_INSTANCE'?
in definition of macro 'NRFX_CONCAT_3_'
in expansion of macro 'NRFX_CONCAT_3'
in expansion of macro 'NRFX_UARTE_INSTANCE'
bsd_os.c
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'BSD_APPLICATION_IRQ'
each undeclared identifier is reported only once for each function it appears in
in expansion of macro 'BSD_APPLICATION_IRQ'
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'BSD_APPLICATION_IRQ'
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'TRACE_IRQ'
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'TRACE_IRQ'
irq.h
arch.h
cpu.h
kernel_includes.h
kernel.h
device.h
init.h
bsd_os.c
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'TRACE_IRQ'
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'BSD_APPLICATION_IRQ'
'UART_1_TX_PIN' undeclared (first use in this function); did you mean 'UART_0_TX_PIN'?
'UART_1_RX_PIN' undeclared (first use in this function); did you mean 'UART_0_RX_PIN'?
'UART_1_CTS_PIN' undeclared (first use in this function); did you mean 'UART_0_CTS_PIN'?
'UART_1_RTS_PIN' undeclared (first use in this function); did you mean 'UART_0_RTS_PIN'?
irq.h
arch.h
cpu.h
kernel_includes.h
kernel.h
device.h
init.h
bsd_os.c
'IPC_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'BSD_NETWORK_IRQ'
Build failed

What is giving the error and how can I solve this?

Parents
  • Hi Peter,

    It looks like you are using the GNU Arm Embedded Toolchain version 8-2018-q4-major.

    Unfortunately, that version is not recommended because it has been seen to be a bit unstable.

    Please download the GNU Arm Embedded Toolchain version-7-2018-q2-update (download) then you should be able to build the application.

    Sorry, for the inconvenience. 

    //cheers

  • Hi All,

    I have similar problem (Asset tracking example application is not building successfully in SEGGER).  Unfortunately Hints provided above does not helped :(.

    I followed  complete setup instruction for Mac OS system (this is the platform I'm developing on)

    NRF configuration in SES looks like this:

    ...

    And here are logs I'm getting during build:

    Building ?zephyr/include/generated/driver-validation.h? from solution ?build? in configuration ?Common?
    Building ?zephyr/include/generated/kobj-types-enum.h? from solution ?build? in configuration ?Common?
    Building ?zephyr/include/generated/otype-to-str.h? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_misc? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_settings? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_posix? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_crypto? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_mgmt? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_net? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dfu? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_cmsis_rtos_v1? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_linker? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_shell? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_app_memory? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_usb? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_audio? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_bluetooth? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_display? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_random? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_fs? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_logging? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_nvs? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_zephyr? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_debug? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_toolchain? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_posix_sys? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_wifi? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_ieee802154? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_pci? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_clock_control? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_i2c? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_usb? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_bluetooth? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_modem? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_display? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_gpio? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_console? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_drivers_i2c_slave? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_usb_class? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_pinctrl? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_interrupt-controller? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_i2c? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_rdc? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_gpio? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_dt-bindings_clock? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_bluetooth_mesh? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_bluetooth_services? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_posix? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_xtensa? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_riscv32? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_x86? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arm? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arc? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_nios2? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_riscv32_common? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_riscv32_riscv-privilege? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_riscv32_pulpino? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arm_cortex_m? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arm_cortex_m_mpu? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arm_cortex_m_scripts? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arc_v2? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_links/_Users_wojtekwawerek_DEVELOPMENT_NRF91_Firmware_ncs_zephyr_include_arch_arc_v2_mpu? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls_subdirs.trigger? from solution ?build? in configuration ?Common?
    Building ?zephyr/misc/generated/syscalls.json? from solution ?build? in configuration ?Common?
    1> Combining ?zephyr/misc/generated/syscalls.json?
    Building ?zephyr/include/generated/syscall_list.h? from solution ?build? in configuration ?Common?
    Building ?zephyr/include/generated/syscall_dispatch.c? from solution ?build? in configuration ?Common?
    Building ?zephyr/include/generated/syscall_macros.h? from solution ?build? in configuration ?Common?
    Building ?zephyr/liboffsets.a? from solution ?build? in configuration ?Common?
    1> Compiling ?offsets.c?
    1> Archiving ?liboffsets.a?
    Build failed

    Could you advice?

    Regards

    Wojtek

  • Hi Wojtek, 
    Did you follow the steps in the Getting Started Assistant:

    Specific these steps:

    cd <sourcecode_root>\ncs\zephyr ; git checkout tags/v1.13.99-ncs2
    cd <sourcecode_root>\ncs\mcuboot ; git checkout tags/v1.2.99-ncs2
    cd <sourcecode_root>\ncs\nrf ; git checkout tags/v0.3.0
    cd <sourcecode_root>\ncs\nrfxlib ; git checkout tags/v0.3.0

    and

    cd <sourcecode_root>\ncs
    pip3 install -r zephyr\scripts\requirements.txt
    pip3 install -r nrf\scripts\requirements.txt
     

    Could you try to share the configuration in SES again? (it seems that it slipped away from last post)

  • Hi  Martin,

    Thank you for super-fast response Slight smile

    I've just double checked the setup steps you pointed out - still no luck.

    My configuration in SES looks like this:

    Thanks 

    Wojtek

  • Hi Wojtek, 

    How is your folder structure inside gnuarmemb?

    Could you also try to delete the build folder and try to build again?

    If none of that works please try to build via the terminal to see if this is an issue with the toolchain or SES.

  • Hi Martin,

    Running this stuff form command line gives me some more verbose output:

    FAILED: zephyr/liboffsets.a
    : && ccache /usr/local/Cellar/cmake/3.14.0/bin/cmake -E remove zephyr/liboffsets.a && ccache CMAKE_AR-NOTFOUND qc zephyr/liboffsets.a zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj && ccache : zephyr/liboffsets.a && :
    ccache: error: Could not find compiler "CMAKE_AR-NOTFOUND" in PATH
    ninja: build stopped: subcommand failed.

    My gnuarmemb folder content looks like this:

    ➜ gnuarmemb ls -la
    total 0
    drwxrwxrwx  6   root                   wheel 192   Mar 19 09:19 .
    drwxr-xr-x     3   root                   wheel 96     Mar 15 17:11 ..
    drwxr-xr-x@ 6   wojtekwawerek wheel 192   Dec 16 11:49 arm-none-eabi
    drwxr-xr-x@ 33 wojtekwawerek wheel 1056 Dec 16 11:52 bin
    drwxr-xr-x@ 5   wojtekwawerek wheel 160   Dec 16 11:53 lib
    drwxr-xr-x@ 4   wojtekwawerek wheel 128   Dec 16 10:39 share
    ➜ gnuarmemb

    Regards 

    Wojtek

  • Hi Martin,

    Does the toolchain require some specific cmake version/config?

    I'm using cmake version 3.14.0 installed with homebrew 

    Regards

    Wojtek

Reply Children
No Data
Related