Compiling PHP plugin from Master

Alexander Shaduri ashaduri at gmail.com
Wed May 19 15:45:35 UTC 2010


Hello all,

I tried compiling the php plugin from the master branch,
but I did not succeed.
What I did was I checked out kdevplatform, kdevelop,
kdevelop-pg-qt, php and php-docs from git and then did cmake, make
and make install on each of them (in the order listed above).
However, compiling php aborted with:

Scanning dependencies of target kdev4phpcompletion_automoc
Scanning dependencies of target php-parser-generated
Scanning dependencies of target kdev4phpparser_automoc
[  0%] [  0%] Generating phpast.h, phpparser.h, phpparser.cpp, phpvisitor.h, phpvisitor.cpp, phpdefaultvisitor.h, phpdefaultvisitor.cpp, phpdebugvisitor.h, phptokentext.h
Built target kdev4phpparser_automoc
Generating model.moc
Scanning dependencies of target simple_phpapp
[  0%] Generating simple_phpapp.tar.bz2
[  1%] Built target simple_phpapp
Generating worker.moc
Scanning dependencies of target php-parser_automoc
** WARNING found FIRST/FOLLOW conflict in elseifList:
	Rule ``(#elseifListItem=elseifListItem)*''
	Terminals [
		ELSEIF: conflicts with the FIRST set of: 
		#elseifListItem=elseifListItem, 
		newElseifList, 
		#newElseifListItem=newelseifListItem, 
		elseifList=elseifList, 

	]

** WARNING found FIRST/FIRST conflict in varExpression:
	Rule ``(0 variable=variable | 0 newObject=varExpressionNewObject | varExpressionNormal=varExpressionNormal)''
	Terminals [
		VARIABLE, 
		STRING, 
		DOLLAR, 
		NEW
	]

** WARNING found FIRST/FIRST conflict in classNameReference:
	Rule ``(identifier=identifier | dynamicClassNameReference=dynamicClassNameReference)''
	Terminals [
		STRING
	]

** WARNING found FIRST/FIRST conflict in constantOrClassConst:
	Rule ``(className=identifier PAAMAYIM_NEKUDOTAYIM constant=identifier | constant=identifier)''
	Terminals [
		STRING
	]

** WARNING found FIRST/FIRST conflict in encapsVar:
	Rule ``(STRING_VARNAME LBRACKET expr=expr RBRACKET RBRACE | expr=expr RBRACE)''
	Terminals [
		STRING_VARNAME
	]

5 conflicts total: 1 FIRST/FOLLOW conflicts, 4 FIRST/FIRST conflicts.
[  1%] [  1%] Built target php-parser_automoc
Built target kdev4phpcompletion_automoc
Scanning dependencies of target kdev4phpparser
[  3%] [  5%] Building CXX object parser/CMakeFiles/kdev4phpparser.dir/kdev4phpparser_automoc.o
Generating phpast.h, phpparser.h, phpparser.cpp, phpvisitor.h, phpvisitor.cpp, phpdefaultvisitor.h, phpdefaultvisitor.cpp, phpdebugvisitor.h, phptokentext.h
[  7%] Building CXX object parser/CMakeFiles/kdev4phpparser.dir/phplexer.o
In file included from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:7:20: error: phpast.h: No such file or directory
** WARNING found FIRST/FOLLOW conflict in elseifList:
	Rule ``(#elseifListItem=elseifListItem)*''
	Terminals [
		ELSEIF: conflicts with the FIRST set of: 
		#elseifListItem=elseifListItem, 
		newElseifList, 
		#newElseifListItem=newelseifListItem, 
		elseifList=elseifList, 

	]

** WARNING found FIRST/FIRST conflict in varExpression:
	Rule ``(0 variable=variable | 0 newObject=varExpressionNewObject | varExpressionNormal=varExpressionNormal)''
	Terminals [
		VARIABLE, 
		STRING, 
		DOLLAR, 
		NEW
	]

** WARNING found FIRST/FIRST conflict in classNameReference:
	Rule ``(identifier=identifier | dynamicClassNameReference=dynamicClassNameReference)''
	Terminals [
		STRING
	]

** WARNING found FIRST/FIRST conflict in constantOrClassConst:
	Rule ``(className=identifier PAAMAYIM_NEKUDOTAYIM constant=identifier | constant=identifier)''
	Terminals [
		STRING
	]

** WARNING found FIRST/FIRST conflict in encapsVar:
	Rule ``(STRING_VARNAME LBRACKET expr=expr RBRACKET RBRACE | expr=expr RBRACE)''
	Terminals [
		STRING_VARNAME
	]

5 conflicts total: 1 FIRST/FOLLOW conflicts, 4 FIRST/FIRST conflicts.
In file included from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:18: error: ‘Token’ in class ‘Php::TokenStream’ does not name a type
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:22: error: ‘Token’ does not name a type
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:70: error: ‘AstNode’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:70: error: ‘u’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:70: error: ‘create’ declared as an ‘inline’ field
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:71: error: expected `;' before ‘{’ token
/0S/0tmp/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:75: error: data member ‘create’ cannot be a member template
In file included from /0S/a11/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:221,
                 from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/0tmp/DL-CVS/kdevelop/php/parser/php.g:158: error: ‘KDevelop’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/parser/php.g:158: error: template argument 1 is invalid
In file included from /0S/a11/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:254,
                 from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/0tmp/DL-CVS/kdevelop/php/parser/php.g:182: error: ‘KDevelop’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/parser/php.g:182: error: template argument 1 is invalid
In file included from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/a11/DL-CVS/kdevelop/php/0build1/parser/phpparser.h:307: error: ‘AdditiveExpressionAst’ has not been declared
(and lots of similar errors).

I have KDE 4.4.2 and gcc 4.3.2.

Am I doing something wrong?


Thanks,
Alexander




More information about the KDevelop-devel mailing list