#20319: fortify-headers error with GCC5 (gnu89 source)
-----------------------+------------------------
Reporter: zloop | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: toolchain | Version: Trunk
Keywords: |
-----------------------+------------------------
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.
--
Ticket URL: <https://dev.openwrt.org/ticket/20319>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets