On Tue, Mar 13, 2012 at 4:56 AM, Greg Landrum <greg.land...@gmail.com> wrote:
> You've probably tracked this down already, but I guess that it's
> probably the postgresql configuration.
So, it turned up -fexcess-precision is actually in CFLAGS as reported
by pg_config in the 32 bit enviroment, but it was not a deliberate
option passed in during rpm build so I guess it is added by Postgres
./configure script.
In the cartridge Makefile we inject CFLAGS into CXXFLAGS (or rather,
CPLUSPLUSGFLAGS) and those are used to build adapter.cpp, leading to
the compilation error (-fexcess-precision is used only by C compiler).
Attached, the Makefile patch I am now using to build the rpm.
Cheers
G.
--
Gianluca Sforna
http://morefedora.blogspot.com
http://identi.ca/giallu - http://twitter.com/giallu
diff -u -aur RDKit_2011_12_1.orig/Code/PgSQL/rdkit/Makefile RDKit_2011_12_1/Code/PgSQL/rdkit/Makefile
--- RDKit_2011_12_1.orig/Code/PgSQL/rdkit/Makefile 2012-01-10 05:52:37.000000000 +0100
+++ RDKit_2011_12_1/Code/PgSQL/rdkit/Makefile 2012-03-13 11:01:47.772030611 +0100
@@ -22,7 +22,7 @@
PG_CPPFLAGS = -I${BOOSTHOME} -I${RDKIT}/Code -DRDKITVER='"004000"' ${INCHIFLAGS}
-CPLUSPLUSFLAGS = $(filter-out -Wmissing-prototypes -Wdeclaration-after-statement, $(CFLAGS))
+CPLUSPLUSFLAGS = $(filter-out -fexcess-precision=standard -Wmissing-prototypes -Wdeclaration-after-statement, $(CFLAGS))
CPLUSPLUSFLAGS += -Wno-deprecated -Wno-unused-function
#CPLUSPLUSFLAGS += -march=native
CPLUSPLUSFLAGS += $(PG_CPPFLAGS)
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel