Req #69928 [Opn->Fbk]: -ffast-math incompatible with sqlite extension
| From: | laruence@php.net | Date: | Thu, 25 Jun 2015 08:50:18 +0000 |
| Subject: | Req #69928 [Opn->Fbk]: -ffast-math incompatible with sqlite extension | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193874@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: laruence@php.net
Reported by: 191919 at gmail dot com
Summary: -ffast-math incompatible with sqlite extension
-Status: Open
+Status: Feedback
Type: Feature/Change Request
Package: Compile Failure
Operating System: OS X
PHP Version: 7.0Git-2015-06-25 (Git)
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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