Req #69928 [Fbk->NoF]: -ffast-math incompatible with sqlite extension
| From: | php-bugs at lists dot php dot net | Date: | Sun, 05 Jul 2015 04:22:19 +0000 |
| Subject: | Req #69928 [Fbk->NoF]: -ffast-math incompatible with sqlite extension | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194131@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69928&edit=1
ID: 69928
Updated by: php-bugs@lists.php.net
Reported by: 191919 at gmail dot com
Summary: -ffast-math incompatible with sqlite extension
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Compile Failure
Operating System: OS X
PHP Version: 7.0Git-2015-06-25 (Git)
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2015-06-25 08:50:17] laruence@php.net
from what I read in http://sqlite.1065341.n5.nabble.com/GCC-ffast-math-safe-version-of-sqlite3IsNaN-td41243.html
, no we can not do much thing on this.
but you may try to build php without sqlite and enable fast-math.
then build sqlite as a shared object without fast-math..
thanks
------------------------------------------------------------------------
[2015-06-25 08:14:36] 191919 at gmail dot com
Description:
------------
-ffast-math brings performance increase and the precision can be accepted in most cases, but php
cannot be compiled with this directive.
Would you please consider to add an extra ./configure setting to skip the check in sqlite3 extension
as it is the only one that explicitly refuses the -ffast-math flag?
Test script:
---------------
CC=/opt/bin/gcc CFLAGS="-O2 -msse4.2 -ffast-math -fomit-frame-pointer -fno-stack-protector
-fno-exceptions" ./configure --prefix=/opt/php7 --enable-opcache
Expected result:
----------------
Compilation succeeds.
Actual result:
--------------
gcc-5.1.0 gave:
/Users/xx/box/php-src/ext/sqlite3/libsqlite/sqlite3.c:23512:3: error: #error SQLite will not work
correctly with the -ffast-math option of GCC.
# error SQLite will not work correctly with the -ffast-math option of GCC.
^
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69928&edit=1