From nobody@FreeBSD.org  Mon May  9 23:56:49 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CBA8E16A4EB
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 May 2005 23:56:49 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B80A643D86
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 May 2005 23:56:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j49NunwT048538
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 May 2005 23:56:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j49Nunvo048537;
	Mon, 9 May 2005 23:56:49 GMT
	(envelope-from nobody)
Message-Id: <200505092356.j49Nunvo048537@www.freebsd.org>
Date: Mon, 9 May 2005 23:56:49 GMT
From: Juha-Jarmo Heinonen <o@nzym.fi>
To: freebsd-gnats-submit@FreeBSD.org
Subject: RELEASE 5.4 / libc: make buildworld fails
X-Send-Pr-Version: www-2.3

>Number:         80839
>Category:       amd64
>Synopsis:       RELEASE 5.4 / libc: make buildworld fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 10 00:00:20 GMT 2005
>Closed-Date:    Sun Jun 19 17:30:39 GMT 2005
>Last-Modified:  Sun Jun 19 17:30:39 GMT 2005
>Originator:     Juha-Jarmo Heinonen
>Release:        5.4-RC4
>Organization:
>Environment:
FreeBSD dot.interdot.com 5.4-RC4 FreeBSD 5.4-RC4 #4: Thu May  5 23:34:53 EEST 2005     root@dot.interdot.com:/usr/src/sys/amd64/compile/DOT  amd64

>Description:
===> lib/libsbuf
===> lib/libtacplus
===> lib/libutil
===> lib/libypclnt
===> lib/compat
===> lib/libalias
===> lib/libarchive
===> lib/libatm
===> lib/libbluetooth
===> lib/libbsnmp
===> lib/libbsnmp/libbsnmp
===> lib/libbsnmp/modules
===> lib/libbsnmp/modules/snmp_atm
===> lib/libbsnmp/modules/snmp_mibII
===> lib/libbsnmp/modules/snmp_netgraph
===> lib/libbz2
===> lib/libc
cc -m32 -march=athlon-xp -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -I/usr/obj/usr/src/lib32/usr/include  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -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/lib32/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/i386/sys/_amd64_get_fsbase.c
/usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c: In function `_amd64_get_fsbase':
/usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

>How-To-Repeat:
echo "CFLAGS= -O2 -pipe" >> /etc/make.conf
echo "COPTFLAGS= -O2 -pipe" >> /etc/make.conf
cd /usr/src
make buildworld TARGET_ARCH=amd64

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: kris 
State-Changed-When: Tue May 10 00:10:20 GMT 2005 
State-Changed-Why:  
Problem is due to user's non-default CFLAGS 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80839 

From: Kris Kennaway <kris@obsecurity.org>
To: Juha-Jarmo Heinonen <o@nzym.fi>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/80839: RELEASE 5.4 / libc: make buildworld fails
Date: Mon, 9 May 2005 17:10:12 -0700

 On Mon, May 09, 2005 at 11:56:49PM +0000, Juha-Jarmo Heinonen wrote:
 
 > ===> lib/libc
 > cc -m32 -march=athlon-xp -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -I/usr/obj/usr/src/lib32/usr/include  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32 -O2 -pipe -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/lib32/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-heade rs -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c
 > /usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c: In function `_amd64_get_fsbase':
 > /usr/src/lib/libc/i386/sys/_amd64_get_fsbase.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
 > *** Error code 1
 
 Don't use -O2 then, or use -fno-strict-alias (which should be the
 default, I thought).
 
 Also, buildworld problems should not go in PRs because they are
 usually easily solved on the mailing lists.
 
 Kris
State-Changed-From-To: analyzed->closed 
State-Changed-By: matteo 
State-Changed-When: Sun Jun 19 17:29:47 GMT 2005 
State-Changed-Why:  
Not a bug. Please use the mailing lists for this kind of bugs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80839 
>Unformatted:
