From johans@stack.nl  Wed Feb  2 18:22:07 2005
Return-Path: <johans@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0DA4B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Feb 2005 18:22:07 +0000 (GMT)
Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BF74343D45
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Feb 2005 18:22:06 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153])
	by mailhost.stack.nl (Postfix) with ESMTP id CF34C1F0E4
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Feb 2005 19:22:05 +0100 (CET)
Received: by hammer.stack.nl (Postfix, from userid 801)
	id AFD666952; Wed,  2 Feb 2005 19:22:05 +0100 (CET)
Message-Id: <20050202182205.AFD666952@hammer.stack.nl>
Date: Wed,  2 Feb 2005 19:22:05 +0100 (CET)
From: Johan van Selst <johans@stack.nl>
Reply-To: Johan van Selst <johans@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lang/elk: fix for compilation on amd64
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77027
>Category:       ports
>Synopsis:       lang/elk: fix for compilation on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 02 18:30:23 GMT 2005
>Closed-Date:    Tue Feb 08 19:08:47 GMT 2005
>Last-Modified:  Tue Feb 08 19:08:47 GMT 2005
>Originator:     Johan van Selst
>Release:        FreeBSD 6.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD hammer.stack.nl 6.0-CURRENT FreeBSD 6.0-CURRENT #3: Mon Nov 1 18:36:46 CET 2004 marcolz@hammer.stack.nl:/usr/obj/usr/src/sys/HAMMER amd64


	
>Description:
	
	This looks like a compiler bug - am not ready to debug gcc though.
	Fix: disable compiler optimisation on amd64

>How-To-Repeat:
	
>Fix:

	

Include workaround for amd64 in ports Makefile (is this the right location?)
Should probably include a helpful comment as well...

--- Makefile.orig	Wed Feb  2 19:11:27 2005
+++ Makefile	Wed Feb  2 19:08:51 2005
@@ -33,7 +33,7 @@
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "amd64"
-BROKEN=		"Does not build"
+CFLAGS=		-O0
 .endif
 
 post-install:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Tue Feb 8 19:07:23 GMT 2005 
State-Changed-Why:  
Committed, thanks! 
But I'm not sure if it's a good idea to reset CFLAGS. 

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