Date: Sat, 1 Jan 2005 07:02:11 GMT From: Yuri <yuri@tsoft.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/75702: -O5 flag breaks some compiles in /usr/src/lib/libc Message-ID: <200501010702.j0172B17024086@www.freebsd.org> Resent-Message-ID: <200501010710.j017AHum018529@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501010702.j0172B17024086>