NetBSD Problem Report #46239

From jruohone@gmail.com  Thu Mar 22 05:11:03 2012
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 4A6FF63B946
	for <gnats-bugs@gnats.netbsd.org>; Thu, 22 Mar 2012 05:11:03 +0000 (UTC)
Message-Id: <20120322051059.B006056BD@marx.bitnet>
Date: Thu, 22 Mar 2012 07:10:59 +0200 (EET)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: 6.0 BETA build failure (USE_FORT=yes)
X-Send-Pr-Version: 3.95

>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.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.