11 May 2005

portupgrade -v postgresql-client

Upgrade postgres by:
portupgrade -v postgresql-client

then, got this error:
configure: error: do not put -ffast-math in CFLAGS
===> Script "configure" failed unexpectedly.
Please report the problem to girgen@FreeBSD.org [maintainer] and attach the
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/databases/postgresql74-client.
*** Error code 1

This happen after I build customized FreeBSD-5.4 kernel. I have this line in /etc/make.conf:
CFLAGS= -Os -pipe -funroll-loops -ffast-math
The postgresql74 don't like -ffast-math flag, so I add this line in /usr/ports/databases/postgresql74-client (to override default flag value in /etc/make.conf):
CFLAGS= -Os -pipe -funroll-loops #without -ffast-math

Then I can compile postgresql74-client happily :).

No comments: