From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 1 07:50:16 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82AAE16A41F for ; Thu, 1 Sep 2005 07:50:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0CB543D4C for ; Thu, 1 Sep 2005 07:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j817oF7C085836 for ; Thu, 1 Sep 2005 07:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j817oFQT085835; Thu, 1 Sep 2005 07:50:15 GMT (envelope-from gnats) Resent-Date: Thu, 1 Sep 2005 07:50:15 GMT Resent-Message-Id: <200509010750.j817oFQT085835@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tetsuya Uemura Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6144E16A41F for ; Thu, 1 Sep 2005 07:44:44 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22FE543D49 for ; Thu, 1 Sep 2005 07:44:44 +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 j817ihPD076511 for ; Thu, 1 Sep 2005 07:44:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j817ihM6076510; Thu, 1 Sep 2005 07:44:43 GMT (envelope-from nobody) Message-Id: <200509010744.j817ihM6076510@www.freebsd.org> Date: Thu, 1 Sep 2005 07:44:43 GMT From: Tetsuya Uemura To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/85555: math/fftw3: configure failure on amd64 when OPTIMIZED_CFLAGS turned on X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 07:50:16 -0000 >Number: 85555 >Category: ports >Synopsis: math/fftw3: configure failure on amd64 when OPTIMIZED_CFLAGS turned on >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 01 07:50:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Tetsuya Uemura >Release: 5.4-STABLE >Organization: MACOME Corp. >Environment: FreeBSD gx28.macome.co.jp 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Aug 31 13:27:45 JST 2005 uemura@gx28.macome.co.jp:/usr/obj/usr/src/sys/GX28 amd64 >Description: Compiler flag `-malign-double' is given if CPU supports 3DNow when variable WITH_OPTIMIZED_CFLAGS is set while this flag causes error on amd64. >How-To-Repeat: # cd /usr/ports/math/fftw3 && make -DBATCH WITH_OPTIMIZED_CFLAGS=yes configure >Fix: Apply following patch. --- Makefile.orig Fri Aug 26 14:06:05 2005 +++ Makefile Thu Sep 1 16:28:46 2005 @@ -63,9 +63,12 @@ .endif .if ${MACHINE_CPU:M3dnow} CONFIGURE_ARGS+=--enable-k7 -CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \ - -malign-double -fstrict-aliasing -mpreferred-stack-boundary=4 \ - -ffast-math" +CFLAGS_3DNOW= ${CFLAGS:N-O:N-O*} -O3 -fomit-frame-pointer -fno-schedule-insns \ + -fstrict-aliasing -mpreferred-stack-boundary=4 -ffast-math +.if ${ARCH} != "amd64" +CFLAGS_3DNOW+= -malign-double +.endif +CONFIGURE_ENV+= CFLAGS="${CFLAGS_3DNOW}" .endif .endif # end WITH_OPTIMIZED_CFLAGS >Release-Note: >Audit-Trail: >Unformatted: