Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238198 - dev-db/sqlite-3.6.2 does not filter flags
Summary: dev-db/sqlite-3.6.2 does not filter flags
Status: RESOLVED DUPLICATE of bug 97799
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-20 17:17 UTC by Da Fox
Modified: 2008-09-22 02:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild which filters -ffast-math (sqlite-3.6.2.ebuild,2.06 KB, text/plain)
2008-09-20 17:18 UTC, Da Fox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Da Fox 2008-09-20 17:17:01 UTC
sqlite is not compatible with for example -ffast-math:
sqlite3.c:18431:3: error: #error SQLite will not work correctly with the -ffast-math option of GCC.
Therefor this flag should be filtered out. Note that the ebuild already sources the filter-o-matic eclass.

Reproducible: Always

Steps to Reproduce:
1.
Set CFLAGS to include -ffast-math

2.
emerge -1 =dev-db/sqlite-3.6.2

Actual Results:  

libtool: compile:  i686-pc-linux-gnu-gcc -march=pentium-m -O2 -pipe -fomit-frame-pointer -falign-functions=32 -fweb -ffast-math -DSQLITE_OS_UNIX=1 -I. -I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_ALLOW_XTHREAD_CONNECT=1 -I/usr/include -DSQLITE_THREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c: In function ‘sqlite3_soft_heap_limit’:
sqlite3.c:15671: warning: ‘sqlite3_memory_alarm’ is deprecated (declared at sqlite3.c:4435)
sqlite3.c:15673: warning: ‘sqlite3_memory_alarm’ is deprecated (declared at sqlite3.c:4435)
sqlite3.c:18431:3: error: #error SQLite will not work correctly with the -ffast-math option of GCC.
sqlite3.c: In function ‘sqlite3Reprepare’:
sqlite3.c:68059: warning: ‘sqlite3_transfer_bindings’ is deprecated (declared at sqlite3.c:45337)
make: *** [sqlite3.lo] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: dev-db/sqlite-3.6.2 failed.

Expected Results:  
>>> /usr/lib/libsqlite3.la
>>> /usr/lib/libsqlite3.a
>>> /usr/lib/libsqlite3.so.0.8.6
--- /usr/lib/sqlite3/
>>> /usr/lib/sqlite3/pkgIndex.tcl
>>> /usr/lib/sqlite3/libtclsqlite3.so
 * sqlite-3.6.0 is not totally backwards compatible, see
 * http://www.sqlite.org/releaselog/3_6_0.html for full details.
>>> Regenerating /etc/ld.so.cache...
>>> dev-db/sqlite-3.6.2 merged.
Comment 1 Da Fox 2008-09-20 17:18:04 UTC
Created attachment 165917 [details]
Ebuild which filters -ffast-math

Ebuild which filters -ffast-math
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-22 02:23:41 UTC
We cannot possibly patch all ebuilds for packages that you find do not support -ffast-math. Stop filing bugs for this type of problem, please - -ffast-math is not supported.

*** This bug has been marked as a duplicate of bug 97799 ***