Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2005 07:44:43 GMT
From:      Tetsuya Uemura <t_uemura.at.macome.co.jp@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/85555: math/fftw3: configure failure on amd64 when OPTIMIZED_CFLAGS turned on
Message-ID:  <200509010744.j817ihM6076510@www.freebsd.org>
Resent-Message-ID: <200509010750.j817oFQT085835@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509010744.j817ihM6076510>