Hello,
I want to start with BLE Mesh development. Therefore I have downloaded the Mesh SDK Version 4.1.0 from the Website and started to build everything. But I have a problem building the unit test:
[70/273] Building C object mesh/test/CMakeFiles/ut_config_server.dir/src/ut_config_server.c.o FAILED: mesh/test/CMakeFiles/ut_config_server.dir/src/ut_config_server.c.o /usr/bin/gcc -I../mesh/test/include -I../mesh/stack/api -I../mesh/core/api -I../mesh/core/include -I../mesh/access/api -I../mesh/access/include -I../mesh/bearer/api -I../mesh/bearer/include -I../mesh/prov/api -I../mesh/prov/include -I../mesh/dfu/api -I../mesh/dfu/include -I../mesh/serial/api -I../mesh/serial/include -I../mesh/gatt/api -I../mesh/gatt/include -I../mesh/friend/api -I../mesh/friend/include -I../mesh/test/include/device_wrappers -I../models/foundation/config/include -I../models/remote_provisioning/include -I../models/foundation/health/include -I../models/model_spec/common/include -I../models/model_spec/generic_onoff/include -I../models/model_spec/generic_dtt/include -I../models/model_spec/generic_level/include -I../models/model_spec/generic_ponoff/include -I../models/model_spec/light_ctl/include -I../external/micro-ecc -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/util -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/experimental_section_vars -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/timer -Imocks -I/home/daniel/nrf/CMock/src -I/home/daniel/nrf/CMock/vendor/unity/src -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/cmsis/include -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers/nrf52 --std=gnu99 -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -m32 -Wall -Wextra -Werror=implicit-function-declaration -Wno-format -Wno-unused-parameter -Wno-missing-field-initializers -Wno-expansion-to-defined --coverage -fno-sanitize-recover -fsanitize=bounds -fsanitize=address -fsanitize=undefined -O0 -g -g -DHOST -DSVCALL_AS_NORMAL_FUNCTION -DNRF_MESH_LOG_ENABLE=1 -DLOG_CALLBACK_DEFAULT=log_callback_stdout -DUNIT_TEST=1 -DCMOCK_MEM_DYNAMIC -DINTERNAL_EVT_ENABLE=0 -DACCESS_ELEMENT_COUNT=64 -DACCESS_SUBSCRIPTION_LIST_COUNT=3 -DMESH_FEATURE_FRIEND_ENABLED=0 -MD -MT mesh/test/CMakeFiles/ut_config_server.dir/src/ut_config_server.c.o -MF mesh/test/CMakeFiles/ut_config_server.dir/src/ut_config_server.c.o.d -o mesh/test/CMakeFiles/ut_config_server.dir/src/ut_config_server.c.o -c ../mesh/test/src/ut_config_server.c ../mesh/test/src/ut_config_server.c: In function ‘test_heartbeat_sub_set’: ../mesh/test/src/ut_config_server.c:2581:5: error: implicit declaration of function ‘heartbeat_subscription_get_ExpectAnyArgsAndReturn’; did you mean ‘heartbeat_subscription_set_ExpectAnyArgsAndReturn’? [-Werror=implicit-function-declaration] 2581 | heartbeat_subscription_get_ExpectAnyArgsAndReturn(&sub); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | heartbeat_subscription_set_ExpectAnyArgsAndReturn cc1: some warnings being treated as errors [72/273] Building C object mesh/test/CMakeFiles/ut_config_server_friend.dir/src/ut_config_server.c.o FAILED: mesh/test/CMakeFiles/ut_config_server_friend.dir/src/ut_config_server.c.o /usr/bin/gcc -I../mesh/test/include -I../mesh/stack/api -I../mesh/core/api -I../mesh/core/include -I../mesh/access/api -I../mesh/access/include -I../mesh/bearer/api -I../mesh/bearer/include -I../mesh/prov/api -I../mesh/prov/include -I../mesh/dfu/api -I../mesh/dfu/include -I../mesh/serial/api -I../mesh/serial/include -I../mesh/gatt/api -I../mesh/gatt/include -I../mesh/friend/api -I../mesh/friend/include -I../mesh/test/include/device_wrappers -I../models/foundation/config/include -I../models/remote_provisioning/include -I../models/foundation/health/include -I../models/model_spec/common/include -I../models/model_spec/generic_onoff/include -I../models/model_spec/generic_dtt/include -I../models/model_spec/generic_level/include -I../models/model_spec/generic_ponoff/include -I../models/model_spec/light_ctl/include -I../external/micro-ecc -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/util -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/experimental_section_vars -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/timer -Imocks -I/home/daniel/nrf/CMock/src -I/home/daniel/nrf/CMock/vendor/unity/src -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/cmsis/include -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers/nrf52 --std=gnu99 -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -m32 -Wall -Wextra -Werror=implicit-function-declaration -Wno-format -Wno-unused-parameter -Wno-missing-field-initializers -Wno-expansion-to-defined --coverage -fno-sanitize-recover -fsanitize=bounds -fsanitize=address -fsanitize=undefined -O0 -g -g -DHOST -DSVCALL_AS_NORMAL_FUNCTION -DNRF_MESH_LOG_ENABLE=1 -DLOG_CALLBACK_DEFAULT=log_callback_stdout -DUNIT_TEST=1 -DCMOCK_MEM_DYNAMIC -DINTERNAL_EVT_ENABLE=0 -DACCESS_ELEMENT_COUNT=64 -DACCESS_SUBSCRIPTION_LIST_COUNT=3 -DMESH_FEATURE_FRIEND_ENABLED=1 -MD -MT mesh/test/CMakeFiles/ut_config_server_friend.dir/src/ut_config_server.c.o -MF mesh/test/CMakeFiles/ut_config_server_friend.dir/src/ut_config_server.c.o.d -o mesh/test/CMakeFiles/ut_config_server_friend.dir/src/ut_config_server.c.o -c ../mesh/test/src/ut_config_server.c ../mesh/test/src/ut_config_server.c: In function ‘test_heartbeat_sub_set’: ../mesh/test/src/ut_config_server.c:2581:5: error: implicit declaration of function ‘heartbeat_subscription_get_ExpectAnyArgsAndReturn’; did you mean ‘heartbeat_subscription_set_ExpectAnyArgsAndReturn’? [-Werror=implicit-function-declaration] 2581 | heartbeat_subscription_get_ExpectAnyArgsAndReturn(&sub); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | heartbeat_subscription_set_ExpectAnyArgsAndReturn cc1: some warnings being treated as errors [76/273] Building C object mesh/test/CMakeFiles/ut_config_server_proxy.dir/src/ut_config_server.c.o FAILED: mesh/test/CMakeFiles/ut_config_server_proxy.dir/src/ut_config_server.c.o /usr/bin/gcc -I../mesh/test/include -I../mesh/stack/api -I../mesh/core/api -I../mesh/core/include -I../mesh/access/api -I../mesh/access/include -I../mesh/bearer/api -I../mesh/bearer/include -I../mesh/prov/api -I../mesh/prov/include -I../mesh/dfu/api -I../mesh/dfu/include -I../mesh/serial/api -I../mesh/serial/include -I../mesh/gatt/api -I../mesh/gatt/include -I../mesh/friend/api -I../mesh/friend/include -I../mesh/test/include/device_wrappers -I../models/foundation/config/include -I../models/remote_provisioning/include -I../models/foundation/health/include -I../models/model_spec/common/include -I../models/model_spec/generic_onoff/include -I../models/model_spec/generic_dtt/include -I../models/model_spec/generic_level/include -I../models/model_spec/generic_ponoff/include -I../models/model_spec/light_ctl/include -I../external/micro-ecc -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/util -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/experimental_section_vars -I../../nRF5_SDK_16.0.0_98a08e2/components/libraries/timer -Imocks -I/home/daniel/nrf/CMock/src -I/home/daniel/nrf/CMock/vendor/unity/src -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx -I../../nRF5_SDK_16.0.0_98a08e2/modules/nrfx/mdk -I../../nRF5_SDK_16.0.0_98a08e2/components/toolchain/cmsis/include -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers -I../../nRF5_SDK_16.0.0_98a08e2/components/softdevice/s132/headers/nrf52 --std=gnu99 -ffunction-sections -fdata-sections -fno-strict-aliasing -fno-builtin --short-enums -m32 -Wall -Wextra -Werror=implicit-function-declaration -Wno-format -Wno-unused-parameter -Wno-missing-field-initializers -Wno-expansion-to-defined --coverage -fno-sanitize-recover -fsanitize=bounds -fsanitize=address -fsanitize=undefined -O0 -g -g -DHOST -DSVCALL_AS_NORMAL_FUNCTION -DNRF_MESH_LOG_ENABLE=1 -DLOG_CALLBACK_DEFAULT=log_callback_stdout -DUNIT_TEST=1 -DCMOCK_MEM_DYNAMIC -DINTERNAL_EVT_ENABLE=0 -DACCESS_ELEMENT_COUNT=64 -DACCESS_SUBSCRIPTION_LIST_COUNT=3 -DMESH_FEATURE_GATT_PROXY_ENABLED=1 -MD -MT mesh/test/CMakeFiles/ut_config_server_proxy.dir/src/ut_config_server.c.o -MF mesh/test/CMakeFiles/ut_config_server_proxy.dir/src/ut_config_server.c.o.d -o mesh/test/CMakeFiles/ut_config_server_proxy.dir/src/ut_config_server.c.o -c ../mesh/test/src/ut_config_server.c ../mesh/test/src/ut_config_server.c: In function ‘test_heartbeat_sub_set’: ../mesh/test/src/ut_config_server.c:2581:5: error: implicit declaration of function ‘heartbeat_subscription_get_ExpectAnyArgsAndReturn’; did you mean ‘heartbeat_subscription_set_ExpectAnyArgsAndReturn’? [-Werror=implicit-function-declaration] 2581 | heartbeat_subscription_get_ExpectAnyArgsAndReturn(&sub); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | heartbeat_subscription_set_ExpectAnyArgsAndReturn cc1: some warnings being treated as errors [83/273] Building C object mesh/test/CMakeFiles/ble_gap_mock.dir/__/__/mocks/ble_gap_mock.c.o ninja: build stopped: subcommand failed.
I am wondering what I might have done wrong during installation or whether there is a problem with the release of the SDK. Does any one else had this problem?
Best Regards,
dldl