Bug #78102 [NEW]: Can't compile on OSX
| From: | dams@php.net | Date: | Mon, 03 Jun 2019 20:10:10 +0000 |
| Subject: | Bug #78102 [NEW]: Can't compile on OSX | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-221100@lists.php.net to get a copy of this message | ||
From: dams
Operating system: OSX
PHP version: Next Major Version
Package: Compile Failure
Bug Type: Bug
Bug description:Can't compile on OSX
Description:
------------
I'm building PHP 7.4 from the git repository : fresh clone, and short
compilation script (see below).
I've been bumping the following error message for 3 weeks now :
/Users/php/bin/php-src/Zend/zend_language_parser.h:205:2: error: #endif
without #if
#endif /*
!YY_ZEND_USERS_php_BIN_PHP_SRC_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED */
I tried to disable all extensions, buildconf --force, make clean,
script/dev/genfiles without success. I also tried to build right after a
clone.
PHP 7.3.6 builds (simple checkout), but 7.4 can't pass make.
I'm using bison 3.4.1, OSX Mojave
Test script:
---------------
git checkout PHP-7.4; git pull
make clean
./buildconf --force
env YACC=
brew --prefix bison/bin/bison ./configure \
--disable-all
make -jsysctl -n hw.logicalcpu_max
make test
Expected result:
----------------
Compilation succeed :)
Actual result:
--------------
In file included from /Users/php/bin/php-src/Zend/zend_ast.c:23:
/Users/php/bin/php-src/Zend/zend_language_parser.h:53:18: warning: extra
tokens at end of #include directive [-Wextra-tokens]
#include "zend.h"#ifndef YYTOKENTYPE
^
//
/Users/php/bin/php-src/Zend/zend_language_parser.h:205:2: error: #endif
without #if
#endif /*
!YY_ZEND_USERS_php_BIN_PHP_SRC_ZEND_ZEND_LANGUAGE_PARSER_H_INCLUDED */
^
1 warning and 1 error generated.
make: *** [Zend/zend_ast.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=78102&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78102&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78102&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78102&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78102&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78102&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78102&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78102&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78102&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78102&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78102&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78102&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78102&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78102&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78102&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78102&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78102&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78102&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78102&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78102&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78102&r=mysqlcfg