Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#10 fatal internal error w/ZendEngine2

Mike Frysinger

a user reported this via the Gentoo bugzilla ... when
trying to build the ZendEngine2 in php cvs, flex dies:

wget \ 'http://cvs.php.net/viewcvs.cgi/*checkout*/ZendEngine2/flex.skl'
wget \ 'http://cvs.php.net/viewcvs.cgi/*checkout*/ZendEngine2/./zend_language_scanner.l'
flex -Pzend -S./flex.skl -ozend_language_scanner.c \ -i ./zend_language_scanner.l
flex: fatal internal error, bad line in skeleton file

looks like it's due to the usage of '%*', '%+', and
'%-' in the flex.skl file, but i'm not lex expert and
i'm just guessing at this point :)


  • John43

    • labels: 600971 --> Generating the scanner
    • assigned_to: nobody --> john43
  • John43

    Logged In: YES

    They appear to be using a custom skeleton. The skeleton has
    changed significantly since past releases.

    If they _really_ need their own skeleton, I suggest they
    create a patch between the flex 2.5.4 skeleton and their own
    skeleton to identify the differences. Then, using that patch
    merely as a guide, patch the 2.5.33 skeleton BY HAND to
    upgrade it. However, I suspect they don't really need the
    custom skeleton.

    Please have someone from the Zend team contact me directly
    so I can help them refactor their code to use flex 2.5.33.

  • Nuno Lopes
    Nuno Lopes

    Logged In: YES

    comment redirected to PHP/Zend team.

  • Will Estes
    Will Estes

    • status: open --> closed
  • Will Estes
    Will Estes

    Logged In: YES

    Since the issue is not really with flex, we're closing the
    bug. If y'all need more help, talk to John as he suggested
    or post to flex-help or flex-devel if that's appropriate.
    If there are particular reasons why (1) the distributed
    skeleton is insufficient and (2) the needed features in the
    custom skeleton would be good for everyone else to have,
    then flex-devel is a good place to bring them up.
    Otherwise, go the custom route and know that your life is
    going to be interesting.

  • Logged In: NO

    When I build php 5.0.4 wiht flex 2.5.33, I got the following message
    + make sapi/cli/php
    gcc -Iext/standard/ -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/ -DPHP_ATOM_INC -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/include -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4 -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/ -g -O2 -c /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c -o ext/standard/info.o && echo > ext/standard/info.lo
    /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c: In function 'php_info_html_esc':
    /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c:201: warning: pointer targets in passing argument 1 of 'php_escape_html_entities' differ in signedness
    /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c: In function 'php_print_info':
    /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c:483: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
    /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/ext/standard/info.c:514: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
    gcc -IZend/ -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend/ -DPHP_ATOM_INC -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/include -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4 -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/ -g -O2 -c Zend/zend_language_scanner.c -o Zend/zend_language_scanner.o && echo > Zend/zend_language_scanner.lo
    bison -y -p ini_ -v -d /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend/zend_ini_parser.y -o Zend/zend_ini_parser.c
    conflicts: 4 shift/reduce
    gcc -IZend/ -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend/ -DPHP_ATOM_INC -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/include -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4 -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/main -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/TSRM -I/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/build-php/ -g -O2 -c Zend/zend_ini_parser.c -o Zend/zend_ini_parser.o && echo > Zend/zend_ini_parser.lo
    flex -Pini_ -S/home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend/flex.skl -oZend/zend_ini_scanner.c -i /home/roy/CVS/Ltib/ltib/rpm/BUILD/php-5.0.4/Zend/zend_ini_scanner.l
    flex: fatal internal error, bad line in skeleton file
    make: *** [Zend/zend_ini_scanner.c] Error 1
    error: Bad exit status from /home/roy/CVS/Ltib/ltib/tmp/rpm-tmp.99683 (%build)

    RPM build errors:
    Bad exit status from /home/roy/CVS/Ltib/ltib/tmp/rpm-tmp.99683 (%build)
    Build time for php: 10 seconds

    Failed building php

    f_scbuild() returned an error, exiting
    Exiting on error or interrupt