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

SEGGER EMBEDDED STUDIO, ERROR offsets.c.obj

Hi!

I'm currently setting up the nRF9160 dev kit for development and are having some trouble with "building" the asset tracking application.

Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/include/generated/driver-validation.h’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/include/generated/kobj-types-enum.h’
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’
1> Combining ‘zephyr/misc/generated/syscalls.json’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/include/generated/syscall_list.h’
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’
1> Combining ‘zephyr/include/generated/syscall_macros.h’
Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/include/generated/offsets.h’
1> Traceback (most recent call last):
1> File "C:/programvare/nrfsemi/ncs/zephyr/scripts/gen_offset_header.py", line 72, in <module>
1> input_file = open(args.input, 'rb')
1> FileNotFoundError: [Errno 2] No such file or directory: 'C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'
Build failed

Any clues on what can cause this error message?

I'm using master branch.

Regards,

David

Parents Reply Children
  • Because Im running windows, I had to use "SET" instead of "export"

    Please see attached picture below.

    -David

  • Ah. Sorry! 

    Anyway, when I wrote <path_to_gnuarmemb_directory> I meant that you must put the path to the gnuarmemb directory that you have on your system. Sorry for being unclear 

  • Yes, sorry, im running on autopilot this morning.

    See picture below.

    -David

  • No problem!

    From what I can see you only need to write:

    set GNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb

  • C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker>SET ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb

    C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker>set GNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb

    C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker>west build -b nrf9160_pca10090
    -- west build: build configuration:
    source directory: C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker
    build directory: C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker\build
    BOARD: nrf9160_pca10090 (origin: command line)
    -- west build: generating a build system
    -- Using application from 'C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker'
    Zephyr version: 1.14.99
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4")
    -- Selected BOARD nrf9160_pca10090
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.2", minimum required is "0.6.0")
    -- Cache files will be written to: C:\Users\Bruker\AppData\Local/.cache/zephyr
    -- Loading C:/programvare/nrfsemi/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying C:/programvare/nrfsemi/ncs/zephyr/dts/common/common.dts
    Device tree configuration written to C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/build/zephyr/include/generated/generated_dts_board.conf
    Parsing Kconfig tree in C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/Kconfig
    Loaded configuration 'C:/programvare/nrfsemi/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig'
    Merged configuration 'C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/prj.conf'
    Configuration saved to 'C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/build/zephyr/.config'
    warning: BSD_LIBRARY (defined at C:/programvare/nrfsemi/ncs/nrf\lib\bsdlib/Kconfig:8) was assigned
    the value 'y' but got the value 'n'. You can check symbol information (including dependencies) in
    the 'menuconfig' interface (see the Application Development Primer section of the manual), or in the
    Kconfig reference at docs.zephyrproject.org/.../CONFIG_BSD_LIBRARY.html
    (which is updated regularly from the master branch). See the 'Setting configuration values' section
    of the Board Porting Guide as well.

    warning: NRF9160_GPS (defined at C:/programvare/nrfsemi/ncs/nrf\drivers\nrf9160_gps/Kconfig:8) has direct dependencies BSD_LIBRARY with value n, but is currently being y-selected by the following symbols:
    - GPS_CONTROL (defined at C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker\src/gps_controller/Kconfig:9), with value y, direct dependencies y (value: y)

    warning: AT_CMD (defined at C:/programvare/nrfsemi/ncs/nrf\drivers\at_cmd/Kconfig:9) has direct dependencies BSD_LIBRARY with value n, but is currently being y-selected by the following symbols:
    - AT_HOST_LIBRARY (defined at C:/programvare/nrfsemi/ncs/nrf\lib\at_host/Kconfig:9), with value y, direct dependencies y (value: y)
    - NRF9160_GPS_HANDLE_MODEM_CONFIGURATION (defined at C:/programvare/nrfsemi/ncs/nrf\drivers\nrf9160_gps/Kconfig:27), with value y, direct dependencies NRF9160_GPS (value: y), and select condition NRF9160_GPS (value: y)
    - LTE_LINK_CONTROL (defined at C:/programvare/nrfsemi/ncs/nrf\drivers\lte_link_control/Kconfig:7), with value y, direct dependencies y (value: y)
    -- 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
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    Including module: nrf in path: C:\programvare\nrfsemi\ncs\nrf
    Including module: nffs in path: C:\programvare\nrfsemi\ncs\modules\fs\nffs
    Including module: segger in path: C:\programvare\nrfsemi\ncs\modules\debug\segger
    Including module: mbedtls in path: C:\programvare\nrfsemi\ncs\modules\crypto\mbedtls
    Including module: mcuboot in path: C:\programvare\nrfsemi\ncs\mcuboot\zephyr
    Including module: mcumgr in path: C:\programvare\nrfsemi\ncs\modules\lib\mcumgr
    Including module: tinycbor in path: C:\programvare\nrfsemi\ncs\modules\lib\tinycbor
    Including module: nrfxlib in path: C:\programvare\nrfsemi\ncs\nrfxlib
    CMake Warning at C:/programvare/nrfsemi/ncs/zephyr/CMakeLists.txt:1559 (message):

    ------------------------------------------------------------
    --- WARNING: __ASSERT() statements are globally ENABLED ---
    --- The kernel will run more slowly and use more memory ---
    ------------------------------------------------------------


    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/build
    -- west build: building application
    [67/161] Building C object zephyr/modules/nrf/subsys/net/lib/nrf_cloud/CMakeFiles/..__nrf__subsys__net__lib__nrf_cloud.dir/src/nrf_cloud_transport.c.obj
    FAILED: zephyr/modules/nrf/subsys/net/lib/nrf_cloud/CMakeFiles/..__nrf__subsys__net__lib__nrf_cloud.dir/src/nrf_cloud_transport.c.obj
    C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs3-snapshot2-1276-g4493a423a645 -DKERNEL -DNRF9160_XXAA -DPROJECT_NAME=asset_tracker -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__ZEPHYR__=1 -IC:/programvare/nrfsemi/ncs/zephyr/kernel/include -IC:/programvare/nrfsemi/ncs/zephyr/arch/arm/include -IC:/programvare/nrfsemi/ncs/zephyr/include -IC:/programvare/nrfsemi/ncs/zephyr/include/drivers -Izephyr/include/generated -IC:/programvare/nrfsemi/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/programvare/nrfsemi/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/cmsis/Include -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/nordic/nrfx -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/programvare/nrfsemi/ncs/zephyr/ext/hal/nordic/. -IC:/programvare/nrfsemi/ncs/zephyr/subsys/net/lib/sockets/. -I../../../include -I../../../ext/cjson/. -I../../../lib/at_cmd_parser/include -I../../../subsys/net/lib/cloud/./include -I../../../subsys/net/lib/nrf_cloud/./include -I../src -I../src/orientation_detector/. -I../src/ui/include -I../src/cloud_codec/. -I../src/gps_controller/. -I../src/env_sensors/. -isystem C:/gnuarmemb/arm-none-eabi/include -Os -imacrosC:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -imacrosC:/programvare/nrfsemi/ncs/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/programvare/nrfsemi/ncs/nrf/applications/asset_tracker=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/programvare/nrfsemi/ncs/zephyr=ZEPHYR_BASE -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -std=c99 -MD -MT zephyr/modules/nrf/subsys/net/lib/nrf_cloud/CMakeFiles/..__nrf__subsys__net__lib__nrf_cloud.dir/src/nrf_cloud_transport.c.obj -MF zephyr\modules\nrf\subsys\net\lib\nrf_cloud\CMakeFiles\..__nrf__subsys__net__lib__nrf_cloud.dir\src\nrf_cloud_transport.c.obj.d -o zephyr/modules/nrf/subsys/net/lib/nrf_cloud/CMakeFiles/..__nrf__subsys__net__lib__nrf_cloud.dir/src/nrf_cloud_transport.c.obj -c C:/programvare/nrfsemi/ncs/nrf/subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c
    C:/programvare/nrfsemi/ncs/nrf/subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c: In function 'nct_client_id_get':
    C:/programvare/nrfsemi/ncs/nrf/subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:272:3: error: #error Missing NRF_CLOUD_CLIENT_ID
    #error Missing NRF_CLOUD_CLIENT_ID
    ^~~~~
    [72/161] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj
    ninja: build stopped: subcommand failed.
    ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker\build'

    C:\programvare\nrfsemi\ncs\nrf\applications\asset_tracker>

Related