NetBSD-Bugs archive

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

kern/46239: 6.0 BETA build failure (USE_FORT=yes)



>Number:         46239
>Category:       kern
>Synopsis:       6.0 BETA build failure (USE_FORT=yes)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 22 05:15:00 +0000 2012
>Originator:     Jukka Ruohonen
>Release:        NetBSD 6.0_BETA
>Organization:
-
>Environment:
Architecture: x86_64
Machine: amd64
>Description:

NetBSD 6.0 BETA does not build with FORTIFY_SOURCE:

#   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'

>How-To-Repeat:

Compile distribution with USE_FORT=yes in mk.conf.

>Fix:

Not known.



Home | Main Index | Thread Index | Old Index