kern/163464: Invalid compiler flag in /sys/conf/kern.mk

Eugene Varnavsky varnavruz at gmail.com
Mon Dec 19 23:30:13 UTC 2011


>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 at 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:


More information about the freebsd-bugs mailing list