From fullermd@over-yonder.net  Sun Apr 27 10:07:49 2014
Return-Path: <fullermd@over-yonder.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id CCC74280
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Apr 2014 10:07:49 +0000 (UTC)
Received: from thyme.infocus-llc.com (server.infocus-llc.com [206.156.254.44])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(Client CN "*.infocus-llc.com", Issuer "*.infocus-llc.com" (not verified))
	by mx1.freebsd.org (Postfix) with ESMTPS id A39352DB
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Apr 2014 10:07:49 +0000 (UTC)
Received: from draco.over-yonder.net (c-75-65-60-66.hsd1.ms.comcast.net [75.65.60.66])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by thyme.infocus-llc.com (Postfix) with ESMTPSA id 23C7737B515
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Apr 2014 05:07:42 -0500 (CDT)
Received: by draco.over-yonder.net (Postfix, from userid 100)
	id 3gGlDF4HSZzWnT; Sun, 27 Apr 2014 05:07:41 -0500 (CDT)
Message-Id: <3gGlDF4HSZzWnT@draco.over-yonder.net>
Date: Sun, 27 Apr 2014 05:07:41 -0500 (CDT)
From: Matthew D.Fuller <fullermd@over-yonder.net>
Reply-To: Matthew D.Fuller <fullermd@over-yonder.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: multimedia/mlt: broken with clang
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         189043
>Category:       ports
>Synopsis:       multimedia/mlt: broken with clang
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    avilla
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 27 10:10:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Apr 27 10:10:04 UTC 2014
>Originator:     Matthew D. Fuller
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD draco.over-yonder.net 9.1-STABLE FreeBSD 9.1-STABLE #0 r251584: Sun Jun 9 14:23:33 CDT 2013 root@draco.over-yonder.net:/usr/obj/usr/src/sys/DRACO amd64


	
>Description:
	Build fails with clang:

	cc: error: unknown argument: '-fno-tree-dominator-opts'
	cc: error: unknown argument: '-fno-tree-pre'
>How-To-Repeat:
	
>Fix:

(raw patch; would probably need to check against gcc as comments in
configure suggest, but this gets it building at least).

--- configure.orig	2014-04-27 05:02:54.452587512 -0500
+++ configure	2014-04-27 05:03:03.428593032 -0500
@@ -82,9 +82,9 @@
 		then
 			echo "OPTIMISATIONS=-O2 -pipe"
 			# Since gcc 4.6, this optimization enabled with -O1 causes filter_line_sse2 to crash.
-			echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
+			#echo "OPTIMISATIONS+=-fno-tree-dominator-opts"
 			# Since gcc 4.6, this optimization enabled with -O2 causes filter_line_sse2 to crash.
-			echo "OPTIMISATIONS+=-fno-tree-pre"
+			#echo "OPTIMISATIONS+=-fno-tree-pre"
 		fi
 
 		echo "CFLAGS+=-Wall -DPIC \$(TARGETARCH) \$(TARGETCPU) \$(OPTIMISATIONS) \$(MMX_FLAGS) \$(SSE_FLAGS) \$(SSE2_FLAGS) \$(DEBUG_FLAGS) \$(LARGE_FILE)"

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->avilla 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Apr 27 10:10:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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