misc/75702: -O5 flag breaks some compiles in /usr/src/lib/libc

Yuri yuri at tsoft.com
Fri Dec 31 23:10:17 PST 2004


>Number:         75702
>Category:       misc
>Synopsis:       -O5 flag breaks some compiles in /usr/src/lib/libc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 01 07:10:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Yuri
>Release:        5.3-STABLE-i386
>Organization:
N/A
>Environment:
FreeBSD xxx.xxx.xxx 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When /etc/make.conf has high optimization option set (CFLAGS=-O5)
some of compiles break.

example:
cc -O5  -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/rpc/getpublickey.c

gives an warning equal to error (due to -Werror):
/usr/src/lib/libc/rpc/getpublickey.c: In function `getpublickey':
/usr/src/lib/libc/rpc/getpublickey.c:69: warning: passing arg 1 of `__getpublickey_real' discards qualifiers from pointer target type


but there are many more similar warnings/errors
>How-To-Repeat:
add line 
CFLAGS=-O5
to the file /etc/make.conf

and run "make buildworld" from /usr/src
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list