ports/85555: math/fftw3: configure failure on amd64 when OPTIMIZED_CFLAGS turned on
Tetsuya Uemura
t_uemura.at.macome.co.jp at FreeBSD.org
Thu Sep 1 07:50:16 UTC 2005
>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 at 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:
More information about the freebsd-ports-bugs
mailing list