From owner-freebsd-alpha@FreeBSD.ORG Thu Jul 10 14:56:17 2008 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EE051065680 for ; Thu, 10 Jul 2008 14:56:17 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 1289A8FC1B for ; Thu, 10 Jul 2008 14:56:16 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KGxZ7-0005I8-3K; Thu, 10 Jul 2008 15:56:15 +0100 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1KGxZ6-0001G0-Ac; Thu, 10 Jul 2008 15:56:12 +0100 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2) with ESMTP id m6AEuBTp055901; Thu, 10 Jul 2008 15:56:11 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2/Submit) id m6AEuA4i055900; Thu, 10 Jul 2008 15:56:10 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 10 Jul 2008 15:56:10 +0100 From: Anton Shterenlikht To: Anton Shterenlikht Message-ID: <20080710145610.GA55854@mech-cluster238.men.bris.ac.uk> References: <20080705155035.GA88847@mech-cluster238.men.bris.ac.uk> <20080705201242.GA20124@mech-cluster238.men.bris.ac.uk> <20080707134004.GA74030@mech-cluster238.men.bris.ac.uk> <20080710143753.GA42554@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080710143753.GA42554@mech-cluster238.men.bris.ac.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.3 X-Spam-Level: - Cc: dirk.meyer@dinoex.sub.org, Christian Weisgerber , freebsd-alpha@freebsd.org Subject: Re: graphviz port build fails on alpha FBSD 6.3 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 14:56:17 -0000 On Thu, Jul 10, 2008 at 03:37:53PM +0100, Anton Shterenlikht wrote: > On Thu, Jul 10, 2008 at 01:55:48PM +0000, Christian Weisgerber wrote: > > Anton Shterenlikht wrote: > > > > > 6931 configure:9309: cc -o conftest -O -pipe -mcpu=ev6 -mieee > > > -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math > > > -I/usr/local/include -I/usr/local/include > > > -L/usr/local/lib -L/usr/local/lib conftest.c >&5 > > > 6932 conftest.c:86: warning: function declaration isn't a prototype > > > 6933 conftest.c:96: warning: function declaration isn't a prototype > > > 6934 /usr/lib/crtfastmath.o(.text+0x1c): In function `set_fast_math': > > > 6935 : undefined reference to `__ieee_set_fp_control' > > > > -ffast-math isn't supported on alpha. Don't use it. Ports that > > unconditionally use it need to be fixed. > > Naddy thanks, just in time! > I was just discussing this with the port maintainer. > Actually if I put > > CFLAGS= -O -pipe -ffast-math > > in /etc/make.conf I get stopped at the config stage: > > configure:3832: error: C compiler cannot create executables > > I cannot find much info on -ffast-math. Could you please expand on your > answer. Found it, should've looked better, sorry. >From gcc man pages: -ffast-math Sets -fno-math-errno, -funsafe-math-optimizations, -fno-trap- ping-math, -ffinite-math-only, -fno-rounding-math and -fno-signal- ing-nans. This option causes the preprocessor macro "__FAST_MATH__" to be defined. This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math func- tions. plus PR ports/113599: graphics/dri: fix build on alpha http://www.FreeBSD.org/cgi/query-pr.cgi?pr=113599 FreeBSD/alpha can't handle -ffast-math (fails to link due to some unimplemented functions), so don't try to build graphics/dri with that option there. I'll try your solution and add .if ${ARCH} == alpha FAST_MATH= .else FAST_MATH= -ffast-math .endif to the Makefile Will report on results. many thanks anton > > many thanks > anton > > -- > Anton Shterenlikht > Room 2.6, Queen's Building > Mech Eng Dept > Bristol University > University Walk, Bristol BS8 1TR, UK > Tel: +44 (0)117 928 8233 > Fax: +44 (0)117 929 4423 > _______________________________________________ > freebsd-alpha@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-alpha > To unsubscribe, send any mail to "freebsd-alpha-unsubscribe@freebsd.org" -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423