Closed gnuhub closed 10 years ago
执行后就可以了
/var/www/html/phabricator-server/libphutil/scripts/build_xhpast.sh
Building XHPAST...
rm xhpast parser.yacc.output libxhpast.a *.o 2>/dev/null
make: [clean] Error 1 (ignored)
g++ -c -fPIC -g -Wall -O3 -minline-all-stringops -o astnode.o astnode.cpp
php -f generate_nodes.php
Wrote C++ definition.
Wrote PHP definition.
cp parser_nodes.php ../../src/parser/xhpast/
g++ -c -fPIC -g -Wall -O3 -minline-all-stringops -o scanner.lex.o scanner.lex.cpp
scanner.lex.cpp: In function ‘yy_state_type yy_try_NUL_trans(yy_state_type, yyscan_t)’:
scanner.lex.cpp:5227:23: warning: unused variable ‘yyg’ [-Wunused-variable]
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
^
g++ -c -fPIC -g -Wall -O3 -minline-all-stringops -o parser.yacc.o parser.yacc.cpp
ar -crs libxhpast.a astnode.o scanner.lex.o parser.yacc.o
g++ -fPIC -g -Wall -O3 -minline-all-stringops -o xhpast xhpast.cpp libxhpast.a
cp xhpast ../../src/parser/xhpast/bin/xhpast
Testing xhpast works
xhpast version 5.5.8/1e
Build successful!