From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 16 19:50:06 2004 Return-Path: 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 D345816A4CE for ; Tue, 16 Nov 2004 19:50:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A0EF43D53 for ; Tue, 16 Nov 2004 19:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iAGJo66g057950 for ; Tue, 16 Nov 2004 19:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iAGJo61Y057949; Tue, 16 Nov 2004 19:50:06 GMT (envelope-from gnats) Resent-Date: Tue, 16 Nov 2004 19:50:06 GMT Resent-Message-Id: <200411161950.iAGJo61Y057949@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, Jie Gao Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89A5916A4CE for ; Tue, 16 Nov 2004 19:49:22 +0000 (GMT) Received: from ensc.cpsc.ucalgary.ca (ensc.cpsc.ucalgary.ca [136.159.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4747343D46 for ; Tue, 16 Nov 2004 19:49:22 +0000 (GMT) (envelope-from gaoj@cpsc.ucalgary.ca) Received: from imgw1.cpsc.ucalgary.ca (imgw1 [136.159.5.9]) iAGJmuC0016342 for ; Tue, 16 Nov 2004 12:48:56 -0700 Received: from _HOSTNAME_ (sana-sa [136.159.7.231])iAGJmpQT012684 for ; Tue, 16 Nov 2004 12:48:51 -0700 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Tue, 16 Nov 2004 12:48:50 -0700 Message-Id: <200411161948.iAGJmpQT012684@imgw1.cpsc.ucalgary.ca> Date: Tue, 16 Nov 2004 12:48:50 -0700 From: "Jie Gao" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/74011: math/sdpara has a broken Makefile when WITH_OPTIMIZED_FLAGS is defined X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jie Gao List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 19:50:07 -0000 >Number: 74011 >Category: ports >Synopsis: math/sdpara has a broken Makefile when WITH_OPTIMIZED_FLAGS is defined >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: Tue Nov 16 19:50:06 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jie Gao >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD aibsd 5.3-STABLE FreeBSD 5.3-STABLE #1: Tue Nov 9 12:08:20 MST 2004 gaoj@aibsd:/usr/obj/usr/src/sys/AIBSD i386 >Description: math/sdpara has a broken Makefile when WITH_OPTIMIZED_FLAGS is defined. The problem is in a if branch. So when WITH_OPTIMIZED_FLAGS is not defined, a user cannot observe the error. But once WITH_OPTIMIZED_FLAGS is defined, the error is exposed. >How-To-Repeat: cd /usr/ports/math/sdpara make -DWITH_OPTIMIZED_FLAGS You will get error message about a broken Makefile >Fix: Apply the following patch in math/sdpara --- patch-Makefile begins here --- --- Makefile.orig Tue Nov 16 12:41:05 2004 +++ Makefile Tue Nov 16 12:41:36 2004 @@ -33,6 +33,8 @@ LAPACK= -lalapack CBLAS= -lcblas -lf77blas -latlas -lg2c +.include + .if defined(WITH_OPTIMIZED_FLAGS) FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar @@ -72,4 +74,4 @@ .endif -.include +.include --- patch-Makefile ends here --- >Release-Note: >Audit-Trail: >Unformatted: