dev-db/sqlite-3.6.2 fails to build with -ffast-math CFLAG: sqlite3.c:18431:3: error: #error SQLite will not work correctly with the -ffast-math option of GCC. It's ebuild shoul filter that flag Reproducible: Always Steps to Reproduce: 1.add -ffast-math to CFLAGS 2.emerge =dev-db/sqlite-3.6.2 Actual Results: doesn't build Expected Results: build
I doubt whether you'll find support for that. -ffast-math should simply never be used.
-ffast-math This option is not 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 functions. It may, however, yield faster code for programs that do not require the guarantees of these specifications. As this flag is not really supported to be set globally you should do the filtering in your /etc/portage/bashrc yourself.
Well, I think i read somewhere that it's safe add ffast-math to cflags since all the ebuilds that get broken by it filter it. I guess not... What's that /etc/portage/bashrc ? I don't have it and never heard of it.
(In reply to comment #3) > Well, I think i read somewhere that it's safe add ffast-math to cflags since > all the ebuilds that get broken by it filter it. I guess not... > > What's that /etc/portage/bashrc ? I don't have it and never heard of it. > Ask on one of our support IRC channels or mailing lists. In short it's a way to customize almost every aspect of a single ebuild emerge.
*** Bug 258715 has been marked as a duplicate of this bug. ***
requesting to reopen this and filtering out the flag
(In reply to comment #6) > requesting to reopen this > and filtering out the flag > Why?
(In reply to comment #7) > (In reply to comment #6) > > requesting to reopen this > > and filtering out the flag > > > > Why? I think it is obvious from the beginning. Since sqlite fails to build with this flag, it should be filtered out. In my experience, sqlite is the only package that has problems with -ffast-math. I do computational physics so I do run into issues with CFLAGS occasionally. Also, I understand that many people want to keep -ffast-math completely out of their system. For those people, there is no harm in having the filtering option in sqlite. Gentoo should be all about choice, and ebuilds should be fixed to allow more choice. Simply saying that nobody should use -ffast-math ever is not a very creative solution to this particular problem, as we already have the framework for filtering CFLAGS.