Date: Thu, 10 Jul 2008 16:11:22 +0100 From: Anton Shterenlikht <mexas@bristol.ac.uk> To: Anton Shterenlikht <mexas@bristol.ac.uk> Cc: dirk.meyer@dinoex.sub.org, Christian Weisgerber <naddy@mips.inka.de>, freebsd-alpha@freebsd.org Subject: Re: graphviz port build fails on alpha FBSD 6.3 Message-ID: <20080710151121.GA92045@mech-cluster238.men.bris.ac.uk> In-Reply-To: <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> <wL/o24ETr%2B@dmeyer.dinoex.sub.org> <20080707134004.GA74030@mech-cluster238.men.bris.ac.uk> <g554d4$13km$1@kemoauc.mips.inka.de> <20080710143753.GA42554@mech-cluster238.men.bris.ac.uk> <20080710145610.GA55854@mech-cluster238.men.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 10, 2008 at 03:56:10PM +0100, Anton Shterenlikht wrote: > 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 <mexas@bristol.ac.uk> 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. no, adding this to Makefile doesn't help. It is being ignored, e.g.: cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ast -I../../lib/sfio -I/usr/local/include -I/usr/local/include -O -pipe -mcpu=ev6 -mieee -Wstrict-prototypes -Wpointer-arith -Wall ---> -ffast-math -MT vmopen.lo -MD -MP -MF .deps/vmopen.Tpo -c vmopen.c -o vmopen.o >/dev/null 2>&1 it must be somewhere in configure.ac probably. -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080710151121.GA92045>