From:             sixd
Operating system: Linux
PHP version:      5.5Git-2013-05-06 (snap)
Package:          Compile Failure
Bug Type:         Bug
Bug description:PHP 5.5 builds are broken with GCC 3

Description:
------------
PHP 5.5 builds are broken with GCC 3.4.6 due to the inline assembler
changes in zend_operators.h (in aa12cdc361)

Since the old assembler code path works for GCC 3, I suggest we simply
retain it with appropriate #ifdef's.  This may make someone's life
easier, e.g. during platform migration. 

Note RHEL 4.9 with GCC 3.4.6 was released 2 years ago. GCC 3.4.6
itself was released 6 years ago.

Currently compiling PHP 5.5 with GCC 3.4.6 fails with:
In file included from /tmp/php5.5-201305061630/Zend/zend.h:840,
                 from /tmp/php5.5-201305061630/main/php.h:34,
                 from /tmp/php5.5-201305061630/ext/date/php_date.c:21:
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function 
`fast_increment_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:516: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:516: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function 
`fast_decrement_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:559: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:559: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function
`fast_add_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:613: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:613: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h: In function
`fast_sub_function':
/tmp/php5.5-201305061630/Zend/zend_operators.h:698: error: syntax error
before 
"zval"
/tmp/php5.5-201305061630/Zend/zend_operators.h:698: error: syntax error
before 
"zval"
make: *** [ext/date/php_date.lo] Error 1

The patch is attached.  It was tested with GCC 3.4.6 and 4.1.2 on 32
and 64 bit Oracle Linux.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64780&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64780&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64780&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64780&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64780&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64780&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64780&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64780&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64780&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64780&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64780&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64780&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64780&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64780&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64780&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64780&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64780&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64780&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64780&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64780&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64780&r=mysqlcfg

Reply via email to