Modify

Opened 2 years ago

#20319 new defect

fortify-headers error with GCC5 (gnu89 source)

Reported by: zloop Owned by: developers
Priority: normal Milestone:
Component: toolchain Version: Trunk
Keywords: Cc:

Description

with a vanilla gcc5 i get an error when building "dante"

In file included from ../include/osdep.h:139:0,
                 from ../include/common.h:57,
                 from config_parse.c:1:
/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.10_eabi/include/fortify/stdio.h: In function 'snprintf':
/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.10_eabi/include/fortify/stdio.h:99:9: error: invalid use of '__builtin_va_arg_pack()'
  return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
         ^
/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.10_eabi/include/fortify/stdio.h: In function 'sprintf':
/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.10_eabi/include/fortify/stdio.h:112:7: error: invalid use of '__builtin_va_arg_pack()'
   __r = __orig_sprintf(__s, __f, __builtin_va_arg_pack());
       ^
Makefile:515: recipe for target 'config_parse.lo' failed

setting dante to "-std=gnu89" (adding to TARGET_CFLAGS) removes this error

Because gcc5 complains about the headers I marked this as an toolchain issue.

from gcc5 announcement:

The default mode for C is now -std=gnu11 instead of -std=gnu89.

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.