Build fail under DEBUG configuration - internal compiler error: in gimplify_expr, at gimplify.cc:15905

SMS sample app - Build with DEBUG config

int main(void)
{
int handle = 0;
int ret = 0;

printk("\nSMS sample starting\n");

Build fail when enable debug config:

In file included from /home/xxxxx/ncs/v2.6.0/zephyr/include/zephyr/sys/cbprintf.h:124,
                 from /home/xxxxx/ncs/v2.6.0/zephyr/include/zephyr/logging/log_msg.h:11,
                 from /home/xxxxx/ncs/v2.6.0/zephyr/include/zephyr/logging/log_core.h:9,
                 from /home/xxxxx/ncs/v2.6.0/zephyr/include/zephyr/logging/log.h:11,
                 from /home/xxxxx/ncs/v2.6.0/zephyr/subsys/net/ip/ipv6_nbr.c:16:
/home/xxxxx/ncs/v2.6.0/zephyr/subsys/net/ip/ipv6_nbr.c: In function 'net_ipv6_prepare_for_send':
/home/xxxxx/ncs/v2.6.0/zephyr/include/zephyr/sys/cbprintf_internal.h:208:33: internal compiler error: in gimplify_expr, at gimplify.cc:15905
  208 | #define Z_CBPRINTF_ARG_SIZE(v) ({\
      |                                 ^~
  209 |         __auto_type __v = (v) + 0; \
      |                                 

Related