graphviz port build fails on alpha FBSD 6.3

Anton Shterenlikht mexas at bristol.ac.uk
Thu Jul 10 14:56:17 UTC 2008


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 at 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.

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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-alpha
> To unsubscribe, send any mail to "freebsd-alpha-unsubscribe at 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


More information about the freebsd-alpha mailing list