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

Asset tracker application build fails for thingy 91 using west on command line.

Can somebody help me out the reason behind below failure on thingy 91. I am building asset tracker example using west on command line. Following is the logs that i got after build

C:\ncs>west build -b nrf9160_pca10090 nrf/applications/asset_tracker
source directory: C:\ncs\nrf\applications\asset_tracker
build directory: C:\ncs\build
BOARD: nrf9160_pca10090 (origin: CMakeCache.txt)
[1/108] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
FAILED: zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
C:\gnuarmemb\7_2018-q2-update\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs2 -DKERNEL -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__ZEPHYR__=1 -IC:/ncs/zephyr/kernel/include -IC:/ncs/zephyr/arch/arm/include -IC:/ncs/zephyr/include -IC:/ncs/zephyr/include/drivers -Izephyr/include/generated -IC:/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/ncs/zephyr/ext/hal/cmsis/Include -IC:/ncs/zephyr/ext/hal/nordic/nrfx -IC:/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/ncs/zephyr/ext/hal/nordic/. -IC:/ncs/zephyr/subsys/net/lib/sockets/. -IC:/ncs/nrf/include -IC:/ncs/nrf/ext/cjson/. -IC:/ncs/nrf/lib/at_cmd_parser/include -IC:/ncs/nrf/subsys/net/lib/nrf_cloud/./include -IC:/ncs/nrfxlib/bsdlib/include -IC:/ncs/nrf/applications/asset_tracker/src -isystem C:/gnuarmemb/7_2018-q2-update/arm-none-eabi/include -Os -g -imacros C:/ncs/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -mthumb -mcpu=cortex-m33 -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 -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj -MF zephyr\CMakeFiles\zephyr.dir\misc\generated\configs.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj -c zephyr/misc/generated/configs.c
In file included from C:/ncs/zephyr/include/toolchain.h:39:0,
from zephyr/misc/generated/configs.c:7:
zephyr/misc/generated/configs.c: In function '_ConfigAbsSyms':
C:/ncs/zephyr/include/toolchain/gcc.h:341:51: error: expected expression before ')' token
"\n\t.type\t" #name ",%%object" : : "n"(~(value)))
^
zephyr/misc/generated/configs.c:22:1: note: in expansion of macro 'GEN_ABSOLUTE_SYM'
GEN_ABSOLUTE_SYM(CONFIG_FLIP_INPUT, );
^~~~~~~~~~~~~~~~
C:/ncs/zephyr/include/toolchain/gcc.h:341:51: error: expected expression before ')' token
"\n\t.type\t" #name ",%%object" : : "n"(~(value)))
^
zephyr/misc/generated/configs.c:29:1: note: in expansion of macro 'GEN_ABSOLUTE_SYM'
GEN_ABSOLUTE_SYM(CONFIG_TEMP_SIM_BUTTON, );
^~~~~~~~~~~~~~~~
[6/108] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
ninja: build stopped: subcommand failed.
ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\ncs\build'

Related