Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Build broken (FORTIFY_SOURCE)



Hello.

The build is broken for USE_FORT=yes builds:

#   compile  kernel/t_subr_prf.o
/usr/tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99  -Wall -Wstrict-prototypes
# -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional
# - -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual
# - - -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare
# - - - -Wsign-compare -Wformat=2 -Werror -Wno-missing-noreturn
# - - - - -fstack-protector -Wstack-protector   --param ssp-buffer-size=1
# - - - - - --sysroot=/usr/obj/destdir.amd64  -D_FORTIFY_SOURCE=2 -c
# - - - - - -- t_subr_prf.c
t_subr_prf.c:106:1: error: expected declaration specifiers or '...' before
numeric constant
t_subr_prf.c:106:1: error: expected declaration specifiers or '...' before
'__builtin_object_size'
cc1: warnings being treated as errors
t_subr_prf.c:106:1: error: conflicting types for built-in function
'__builtin___snprintf_chk'
t_subr_prf.c:122:1: error: expected declaration specifiers or '...' before
numeric constant
t_subr_prf.c:122:1: error: expected declaration specifiers or '...' before
'__builtin_object_size'
t_subr_prf.c:122:1: error: conflicting types for built-in function
'__builtin___vsnprintf_chk'
*** [t_subr_prf.o] Error code 1
nbmake: stopped in /usr/cvs/current/src/tests/kernel
1 error
nbmake: stopped in /usr/cvs/current/src/tests/kernel

- Jukka.


Home | Main Index | Thread Index | Old Index