Bug #70750 [Asn]: Compilation fail
| From: | dams@php.net | Date: | Wed, 21 Oct 2015 04:50:06 +0000 |
| Subject: | Bug #70750 [Asn]: Compilation fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196719@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70750&edit=1
ID: 70750
Updated by: dams@php.net
Reported by: dams@php.net
Summary: Compilation fail
Status: Assigned
Type: Bug
Package: *General Issues
Operating System: OSX 10.10.5 (14F27)
PHP Version: 7.0.0RC5
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Hi
I don't know how to 'rebuild the language parsers', so I checked out a clean php-src,
and used the command below : it works.
I'm interested in the extra command to rebuild the language parser.
Previous Comments:
------------------------------------------------------------------------
[2015-10-21 02:39:30] kalle@php.net
Have you tried to manually rebuild the language parsers? It seems like
ddb6d7801e5dfc2f196b549b8ad51376cdc1bc90 only updated the grammar file, but didn't actually
regenerate the parsers, but I could be mistaken.
Cc'ing Nikita for this one
------------------------------------------------------------------------
[2015-10-20 08:55:53] dams@php.net
Description:
------------
starting at commit ddb6d7801e5dfc2f196b549b8ad51376cdc1bc90, PHP fails to compile on OSX.
Test script:
---------------
make clean
./buildconf --force
# configure phpng
env YACC=
brew --prefix bison27/bin/bison
./configure \
--prefix="/usr/local/opt/phpng" \
--with-config-file-path="/usr/local/etc/phpng" \
--with-config-file-scan-dir=/usr/local/etc/phpng/conf.d \
--enable-mbstring \
--enable-tokenizer \
--with-curl \
--with-sqlite3 \
--enable-json \
--disable-all
make -jsysctl -n hw.logicalcpu_max
Expected result:
----------------
PHP compiles fine
It does up to PHP up to commit f9e3461c02068c599ea9fbf6455860c8cc956bc6
Actual result:
--------------
Undefined symbols for architecture x86_64:
"_zend_ast_append_doc_comment", referenced from:
_zendparse in zend_language_parser.o
Undefined symbols for architecture x86_64:
"_zend_ast_append_doc_comment", referenced from:
_zendparse in zend_language_parser.o
ld: symbol(s) not found for architecture x86_64
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/cgi/php-cgi] Error 1
make: *** Waiting for unfinished jobs....
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/cli/php] Error 1
Undefined symbols for architecture x86_64:
"_zend_ast_append_doc_comment", referenced from:
_zendparse in zend_language_parser.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [sapi/phpdbg/phpdbg] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70750&edit=1