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

Build Errors in new project

Hello, I have created my own C program (in eclipse) that basically should just initialize to an LTE network and connect to it, nothing fancy at this point.

I have come across many build errors, and I'm not sure what I can do to resolve these. Can I get some assistance with this? I have attached a file with the build errors associated with it. There are many, but I think I'm just missing 1 library file, just haven't been able to find the missing library.

In the project settings, I have included the following libraries:

07:37:03 **** Build of configuration Debug for project NordicThingyFirmware ****
make all 
Building file: ../main.c
Invoking: GCC C Compiler
gcc -I/home/rs/Downloads/ncs/nrf/include/ -I/home/rs/Downloads/ncs/nrf/applications/serial_lte_modem/build_thingy91_nrf9160ns/spm/zephyr/include/generated/ -I/home/rs/Downloads/ncs/nrf/applications/serial_lte_modem/build_thingy91_nrf9160ns/mcuboot/zephyr/include/generated/ -I/home/rs/Downloads/ncs/nrf/applications/serial_lte_modem/build_thingy91_nrf9160ns/zephyr/include/generated/ -I/home/rs/Downloads/ncs/zephyr/subsys/testsuite/ztest/include/ -I/home/rs/Downloads/ncs/zephyr/include/ -include/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.o" -o "main.o" "../main.c" -std=c99
In file included from /home/rs/Downloads/ncs/zephyr/include/toolchain.h:41,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:19,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/toolchain/gcc.h:449:2: error: #error processor architecture not supported
 #error processor architecture not supported
  ^~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:28,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/kernel_structs.h:136:19: error: ‘CONFIG_MP_NUM_CPUS’ undeclared here (not in a function)
  struct _cpu cpus[CONFIG_MP_NUM_CPUS];
                   ^~~~~~~~~~~~~~~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/sys_clock.h:25,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:35,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘sys_clock_hw_cycles_per_sec’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:55:9: error: ‘CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC’ undeclared (first use in this function); did you mean ‘K_SYSCALL_PWM_GET_CYCLES_PER_SEC’?
  return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         K_SYSCALL_PWM_GET_CYCLES_PER_SEC
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:55:9: note: each undeclared identifier is reported only once for each function it appears in
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:301:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:315:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:329:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:343:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:357:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, true, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ms_to_ticks_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:371:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ms, Z_HZ_ticks, true, false, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:469:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:483:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:497:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:511:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:525:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, true, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_us_to_ticks_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:539:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_us, Z_HZ_ticks, true, false, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:637:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:651:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, false, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:665:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:679:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, false, true);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:693:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, true, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ns_to_ticks_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:707:29: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ns, Z_HZ_ticks, true, false, true, false);
                             ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:973:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false, false);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:987:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false, false);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1001:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, false, true);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1015:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, false, true);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1029:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, true, true, false);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_cyc_to_ticks_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1043:30: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_cyc, Z_HZ_ticks, Z_CCYC, false, true, false);
                              ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1057:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1071:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1085:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1099:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1113:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, true, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ms_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1127:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ms, true, false, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1141:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1155:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1169:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1183:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1197:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, true, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_us_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1211:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_us, true, false, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1225:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1239:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1253:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1267:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1281:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, true, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_ns_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1295:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_ns, true, false, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_floor32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1309:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_floor64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1323:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_near32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1337:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_near64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1351:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, false, true);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_ceil32’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1365:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, true, false);
                    ^~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h: In function ‘k_ticks_to_cyc_ceil64’:
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:203:20: error: ‘CONFIG_SYS_CLOCK_TICKS_PER_SEC’ undeclared (first use in this function)
 #define Z_HZ_ticks CONFIG_SYS_CLOCK_TICKS_PER_SEC
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/time_units.h:1379:20: note: in expansion of macro ‘Z_HZ_ticks’
  return z_tmcvt(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, false, true, false);
                    ^~~~~~~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:37,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/fatal.h: At top level:
/home/rs/Downloads/ncs/zephyr/include/fatal.h:83:59: error: unknown type name ‘z_arch_esf_t’
 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf);
                                                           ^~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/fatal.h:99:47: error: unknown type name ‘z_arch_esf_t’
 void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
                                               ^~~~~~~~~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/sched_priq.h:9,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:23,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/sys/thread_stack.h: In function ‘z_stack_ptr_align’:
/home/rs/Downloads/ncs/zephyr/include/sys/thread_stack.h:63:33: error: ‘ARCH_STACK_PTR_ALIGN’ undeclared (first use in this function)
  return (char *)ROUND_DOWN(ptr, ARCH_STACK_PTR_ALIGN);
                                 ^~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys/util.h:147:42: note: in definition of macro ‘ROUND_DOWN’
  ((unsigned long)(x) & ~((unsigned long)(align) - 1))
                                          ^~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/kernel.h: At top level:
/home/rs/Downloads/ncs/zephyr/include/kernel.h:47:2: error: #error "invalid configuration"
 #error "invalid configuration"
  ^~~~~
/home/rs/Downloads/ncs/zephyr/include/kernel.h:63:2: error: #error "invalid configuration"
 #error "invalid configuration"
  ^~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/net/socket.h:28,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:10,
                 from <command-line>:32:
/home/rs/Downloads/ncs/zephyr/include/net/socket_select.h:51:19: error: ‘CONFIG_POSIX_MAX_FDS’ undeclared here (not in a function); did you mean ‘CONFIG_LOG_MAX_LEVEL’?
  uint32_t bitset[(CONFIG_POSIX_MAX_FDS + 31) / 32];
                   ^~~~~~~~~~~~~~~~~~~~
                   CONFIG_LOG_MAX_LEVEL
In file included from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:123:29: error: ‘CONFIG_LTE_EDRX_REQ_VALUE’ undeclared here (not in a function); did you mean ‘CONFIG_LOG_MAX_LEVEL’?
 static char edrx_param[5] = CONFIG_LTE_EDRX_REQ_VALUE;
                             ^~~~~~~~~~~~~~~~~~~~~~~~~
                             CONFIG_LOG_MAX_LEVEL
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:125:28: error: ‘CONFIG_LTE_PTW_VALUE’ undeclared here (not in a function); did you mean ‘CONFIG_LOG_MAX_LEVEL’?
 static char ptw_param[5] = CONFIG_LTE_PTW_VALUE;
                            ^~~~~~~~~~~~~~~~~~~~
                            CONFIG_LOG_MAX_LEVEL
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:127:32: error: ‘CONFIG_LTE_PSM_REQ_RAT’ undeclared here (not in a function); did you mean ‘CONFIG_LOG_MAX_LEVEL’?
 static char psm_param_rat[9] = CONFIG_LTE_PSM_REQ_RAT;
                                ^~~~~~~~~~~~~~~~~~~~~~
                                CONFIG_LOG_MAX_LEVEL
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:129:34: error: ‘CONFIG_LTE_PSM_REQ_RPTAU’ undeclared here (not in a function)
 static char psm_param_rptau[9] = CONFIG_LTE_PSM_REQ_RPTAU;
                                  ^~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:143:28: error: ‘CONFIG_LTE_RAI_REQ_VALUE’ undeclared here (not in a function); did you mean ‘CONFIG_LOG_MAX_LEVEL’?
 static char rai_param[2] = CONFIG_LTE_RAI_REQ_VALUE;
                            ^~~~~~~~~~~~~~~~~~~~~~~~
                            CONFIG_LOG_MAX_LEVEL
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘parse_cereg’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:260:5: warning: pointer targets in passing argument 3 of ‘at_params_int_get’ differ in signedness [-Wpointer-sign]
     &status);
     ^~~~~~~
In file included from /home/rs/Downloads/ncs/nrf/include/modem/at_cmd_parser.h:20,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:16,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/include/modem/at_params.h:244:5: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
 int at_params_int_get(const struct at_param_list *list, size_t index,
     ^~~~~~~~~~~~~~~~~
In file included from /home/rs/Downloads/ncs/zephyr/include/kernel_includes.h:35,
                 from /home/rs/Downloads/ncs/zephyr/include/kernel.h:17,
                 from /home/rs/Downloads/ncs/zephyr/include/zephyr.h:18,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:7,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘w_lte_lc_connect’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:672:37: error: ‘CONFIG_LTE_NETWORK_TIMEOUT’ undeclared (first use in this function)
   err = k_sem_take(&link, K_SECONDS(CONFIG_LTE_NETWORK_TIMEOUT));
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/sys_clock.h:85:55: note: in definition of macro ‘Z_TIMEOUT_TICKS’
 #define Z_TIMEOUT_TICKS(t) ((k_timeout_t) { .ticks = (t) })
                                                       ^
/home/rs/Downloads/ncs/zephyr/include/sys_clock.h:94:74: note: in expansion of macro ‘MAX’
 # define Z_TIMEOUT_MS(t) Z_TIMEOUT_TICKS((k_ticks_t)k_ms_to_ticks_ceil32(MAX(t, 0)))
                                                                          ^~~
/home/rs/Downloads/ncs/zephyr/include/kernel.h:1417:24: note: in expansion of macro ‘Z_TIMEOUT_MS’
 #define K_MSEC(ms)     Z_TIMEOUT_MS(ms)
                        ^~~~~~~~~~~~
/home/rs/Downloads/ncs/zephyr/include/kernel.h:1429:24: note: in expansion of macro ‘K_MSEC’
 #define K_SECONDS(s)   K_MSEC((s) * MSEC_PER_SEC)
                        ^~~~~~
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:672:27: note: in expansion of macro ‘K_SECONDS’
   err = k_sem_take(&link, K_SECONDS(CONFIG_LTE_NETWORK_TIMEOUT));
                           ^~~~~~~~~
In file included from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘parse_nw_reg_status’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:1168:5: warning: pointer targets in passing argument 3 of ‘at_params_int_get’ differ in signedness [-Wpointer-sign]
     &reg_status);
     ^~~~~~~~~~~
In file included from /home/rs/Downloads/ncs/nrf/include/modem/at_cmd_parser.h:20,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:16,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/include/modem/at_params.h:244:5: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
 int at_params_int_get(const struct at_param_list *list, size_t index,
     ^~~~~~~~~~~~~~~~~
In file included from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘parse_rrc_mode’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:1229:50: warning: pointer targets in passing argument 3 of ‘at_params_int_get’ differ in signedness [-Wpointer-sign]
  err = at_params_int_get(&resp_list, mode_index, &temp_mode);
                                                  ^~~~~~~~~~
In file included from /home/rs/Downloads/ncs/nrf/include/modem/at_cmd_parser.h:20,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:16,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/include/modem/at_params.h:244:5: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
 int at_params_int_get(const struct at_param_list *list, size_t index,
     ^~~~~~~~~~~~~~~~~
In file included from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘lte_lc_system_mode_get’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:1557:42: warning: pointer targets in passing argument 3 of ‘at_params_int_get’ differ in signedness [-Wpointer-sign]
   err = at_params_int_get(&resp_list, i, &param);
                                          ^~~~~~
In file included from /home/rs/Downloads/ncs/nrf/include/modem/at_cmd_parser.h:20,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:16,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/include/modem/at_params.h:244:5: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
 int at_params_int_get(const struct at_param_list *list, size_t index,
     ^~~~~~~~~~~~~~~~~
In file included from <command-line>:32:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c: In function ‘lte_lc_func_mode_get’:
/home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:1656:58: warning: pointer targets in passing argument 3 of ‘at_params_int_get’ differ in signedness [-Wpointer-sign]
  err = at_params_int_get(&resp_list, AT_CFUN_MODE_INDEX, &resp_mode);
                                                          ^~~~~~~~~~
In file included from /home/rs/Downloads/ncs/nrf/include/modem/at_cmd_parser.h:20,
                 from /home/rs/Downloads/ncs/nrf/lib/lte_link_control/lte_lc.c:16,
                 from <command-line>:32:
/home/rs/Downloads/ncs/nrf/include/modem/at_params.h:244:5: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’
 int at_params_int_get(const struct at_param_list *list, size_t index,
     ^~~~~~~~~~~~~~~~~
../main.c: In function ‘main’:
../main.c:27:9: warning: unused variable ‘errConnect’ [-Wunused-variable]
     int errConnect = lte_lc_connect();
         ^~~~~~~~~~
../main.c:25:9: warning: unused variable ‘errInit’ [-Wunused-variable]
     int errInit = lte_lc_init();
         ^~~~~~~
../main.c:23:9: warning: unused variable ‘errAPNSet’ [-Wunused-variable]
     int errAPNSet = lte_lc_pdp_context_set(LTE_LC_PDP_TYPE_IP,apnName,0,0,0);
         ^~~~~~~~~
make: *** [subdir.mk:20: main.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

07:37:03 Build Failed. 64 errors, 8 warnings. (took 571ms)


Related