From nobody@FreeBSD.org  Fri Feb 27 16:19:39 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8BE5C106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 16:19:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7AD2E8FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 16:19:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1RGJcf2039098
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Feb 2009 16:19:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n1RGJcD9039086;
	Fri, 27 Feb 2009 16:19:38 GMT
	(envelope-from nobody)
Message-Id: <200902271619.n1RGJcD9039086@www.freebsd.org>
Date: Fri, 27 Feb 2009 16:19:38 GMT
From: Loic <loic@abcmultimedia.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 7.1 kernel compilation problem
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132170
>Category:       amd64
>Synopsis:       7.1 kernel compilation problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 27 16:20:01 UTC 2009
>Closed-Date:    Sat May 02 13:04:44 UTC 2009
>Last-Modified:  Sat May 02 13:04:44 UTC 2009
>Originator:     Loic
>Release:        7.1
>Organization:
ABC Multimedia
>Environment:
/usr/src/sys/cam/cam_periph.c: In function 'cam_periph_mapmem':
/usr/src/sys/cam/cam_periph.c:568: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/cam/cam_periph.c:571: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/cam/cam_periph.c:576: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/cam/cam_periph.c: In function 'cam_periph_unmapmem':
/usr/src/sys/cam/cam_periph.c:716: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/cam/cam_periph.c:718: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/sys/cam/cam_periph.c:719: warning: dereferencing type-punned pointer will break strict-aliasing rules
>Description:

>How-To-Repeat:
Just try to compil the Generic kernel with default option
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 4 23:22:32 UTC 2009 
State-Changed-Why:  
Is this still a problem? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132170 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Mon Mar 9 03:06:43 UTC 2009 
State-Changed-Why:  
feedback received. 

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

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@FreeBSD.org, loic@abcmultimedia.fr
Cc:  
Subject: Re: amd64/132170: 7.1 kernel compilation problem
Date: Thu, 26 Mar 2009 12:45:52 +0000

 What options do you have in your /etc/make.conf file?  I think the build
 system should automatically add -fno-strict-aliasing when building at
 -O2 or higher optimization levels because enabling strict aliasing is
 known to cause problems.
 
 -- 
 Bruce
State-Changed-From-To: open->feedback  
State-Changed-By: brucec 
State-Changed-When: Sat May 2 12:57:24 UTC 2009 
State-Changed-Why:  
Feedback requested. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132170 
State-Changed-From-To: feedback->closed  
State-Changed-By: brucec 
State-Changed-When: Sat May 2 13:02:09 UTC 2009 
State-Changed-Why:  
Feedback was received. Building with optimization settings other than -O  
and -O2 isn't supported.  

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