Array size issue in BLE App Blinky Example

I am having an issue with the BLE App Blinky example where I am receiving this error while trying to build using make on VSCode:

../../../../../../components/libraries/log/src/nrf_log_frontend.c:243:33: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds]      
  243 |         color_id = p_module_data->debug_color_id;

This leads to make return an error 1 and not completing the build. I'm not too sure what modification I need to make in order to correct the issue.

Full Output:

Compiling file: nrf_log_frontend.c
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_module_name_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:219:29: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds]
219 | return p_module_data->p_module_name;
| ^~
In file included from ../../../../../../components/libraries/util/sdk_common.h:57,
from ../../../../../../components/libraries/log/src/nrf_log_frontend.c:40:
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
118 | #define CONCAT_2_(p1, p2) p1##p2
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
| ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_color_id_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:243:33: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds]
243 | color_id = p_module_data->debug_color_id;
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
118 | #define CONCAT_2_(p1, p2) p1##p2
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
| ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c:240:33: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds]
240 | color_id = p_module_data->info_color_id;
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
118 | #define CONCAT_2_(p1, p2) p1##p2
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
| ^~~~~~~~~~~~~~~
../../../../../../components/libraries/log/src/nrf_log_frontend.c: In function 'nrf_log_module_filter_get':
../../../../../../components/libraries/log/src/nrf_log_frontend.c:313:57: error: array subscript 'nrf_log_module_const_data_t[0]' is partly outside array bounds of 'nrf_log_module_const_data_t[0]' [-Werror=array-bounds]
313 | severity = (nrf_log_severity_t)p_module_data->compiled_lvl;
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:33: note: object '__start_log_const_data' of size 4
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/util/nordic_common.h:118:31: note: in definition of macro 'CONCAT_2_'
118 | #define CONCAT_2_(p1, p2) p1##p2
| ^~
../../../../../../components/libraries/experimental_section_vars/nrf_section.h:121:24: note: in expansion of macro 'CONCAT_2'
121 | extern data_type * CONCAT_2(__start_, section_name); \
| ^~~~~~~~
../../../../../../components/libraries/log/nrf_log_instance.h:78:1: note: in expansion of macro 'NRF_SECTION_DEF'
78 | NRF_SECTION_DEF(log_const_data, nrf_log_module_const_data_t);
| ^~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
make: *** [../../../../../../components/toolchain/gcc/Makefile.common:272: _build/nrf52840_xxaa/nrf_log_frontend.c.o] Error 1

Hope the text isn't too cluttered.

Related