Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2011 23:25:12 GMT
From:      Eugene Varnavsky <varnavruz@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/163464: Invalid compiler flag in /sys/conf/kern.mk
Message-ID:  <201112192325.pBJNPCUJ044457@red.freebsd.org>
Resent-Message-ID: <201112192330.pBJNUC1Q093816@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         163464
>Category:       kern
>Synopsis:       Invalid compiler flag in /sys/conf/kern.mk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 19 23:30:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Varnavsky
>Release:        8.2
>Organization:
>Environment:
8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
/sys/conf/kern.mk:

CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
\
${_wundef} ${_Wno_pointer_sign} -fformat-extensions

-fformat-extensions parameter is invalid, does not present in GCC 4.2 docs and is not accepted (with error) by GCC 4.6
>How-To-Repeat:
Install custom GCC as described in handbook:

http://www.freebsd.org/doc/en/articles/custom-gcc/article.html

try to compile one of the ports that uses kernel sources:

# cd /usr/ports/emulators/open-vm-tools
# make
>Fix:
Remove the '-fformat-extensions' from string 15 of /sys/conf/kern.mk

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112192325.pBJNPCUJ044457>