PHP plugin doesn't support parallel make

Alexander Shaduri ashaduri at gmail.com
Mon Jul 26 21:21:04 UTC 2010


Hello,

Not sure if this is already known (and/or unsupported), but
the PHP plugin has difficulties building with make -jN.
KDevelop and KDevplatform build fine.

Below is the output of "make -j3" (may need several
"make clean" / "make -j3" cycles to reproduce).

Is this worthy of a bug report?

Thanks,
Alexander

-----------------------------

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

	]

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

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

** WARNING found FIRST/FIRST conflict in variableProperty:
	Rule ``(LBRACE variable=variable RBRACE | objectProperty=objectProperty)''
	Terminals [
		LBRACE
	]

** 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.
[  3%] Building CXX object parser/CMakeFiles/kdev4phpparser.dir/kdev4phpparser_automoc.o
[  3%] Built target php-parser_automoc
[  5%] [  7%] Generating phpast.h, phpparser.h, phpparser.cpp, phpvisitor.h, phpvisitor.cpp, phpdefaultvisitor.h, phpdefaultvisitor.cpp, phpdebugvisitor.h, phptokentext.h
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/000/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, 
		elseifList=elseifList, 
		newElseifList, 
		#newElseifListItem=newelseifListItem, 

	]

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

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

** WARNING found FIRST/FIRST conflict in variableProperty:
	Rule ``(LBRACE variable=variable RBRACE | objectProperty=objectProperty)''
	Terminals [
		LBRACE
	]

** 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/000/parser/phpparser.h:18: error: ‘Token’ in class ‘Php::TokenStream’ does not name a type
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:22: error: ‘Token’ does not name a type
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:70: error: ‘AstNode’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:70: error: ‘u’ was not declared in this scope
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:70: error: ‘create’ declared as an ‘inline’ field
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:71: error: expected `;' before ‘{’ token
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:75: error: data member ‘create’ cannot be a member template
In file included from /0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:226,
                 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/000/parser/phpparser.h:259,
                 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/000/parser/phpparser.h:312: error: ‘AdditiveExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:313: error: ‘AdditiveExpressionRestAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:314: error: ‘ArrayPairValueAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:315: error: ‘AssignmentExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:316: error: ‘AssignmentExpressionCheckIfVariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:317: error: ‘AssignmentExpressionEqualAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:318: error: ‘AssignmentListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:319: error: ‘AssignmentListElementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:320: error: ‘BaseVariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:321: error: ‘BaseVariableWithFunctionCallsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:322: error: ‘BitAndExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:323: error: ‘BitOrExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:324: error: ‘BitXorExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:325: error: ‘BooleanAndExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:326: error: ‘BooleanOrExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:327: error: ‘CaseListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:328: error: ‘Case_itemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:329: error: ‘CatchItemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:330: error: ‘ClassBodyAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:331: error: ‘ClassDeclarationStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:332: error: ‘ClassExtendsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:333: error: ‘ClassImplementsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:334: error: ‘ClassNameReferenceAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:335: error: ‘ClassStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:336: error: ‘ClassVariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:337: error: ‘ClassVariableDeclarationAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:338: error: ‘CommonScalarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:339: error: ‘CompoundVariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:340: error: ‘CompoundVariableWithSimpleIndirectReferenceAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:341: error: ‘ConditionalExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:342: error: ‘ConstantDeclarationAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:343: error: ‘ConstantOrClassConstAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:344: error: ‘CtorArgumentsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:345: error: ‘DeclareItemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:346: error: ‘DeclareStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:347: error: ‘DimListItemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:348: error: ‘DimOffsetAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:349: error: ‘DynamicClassNameReferenceAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:350: error: ‘DynamicClassNameVariablePropertiesAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:351: error: ‘DynamicClassNameVariablePropertyAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:352: error: ‘ElseSingleAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:353: error: ‘ElseifListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:354: error: ‘ElseifListItemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:355: error: ‘EncapsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:356: error: ‘EncapsListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:357: error: ‘EncapsVarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:358: error: ‘EncapsVarOffsetAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:359: error: ‘EqualityExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:360: error: ‘EqualityExpressionRestAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:361: error: ‘ExprAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:362: error: ‘ForExprAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:363: error: ‘ForStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:364: error: ‘ForeachStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:365: error: ‘ForeachVariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:366: error: ‘FunctionCallAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:367: error: ‘FunctionCallParameterListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:368: error: ‘FunctionCallParameterListElementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:369: error: ‘FunctionDeclarationStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:370: error: ‘GlobalVarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:371: error: ‘IdentifierAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:372: error: ‘InnerStatementListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:373: error: ‘InterfaceDeclarationStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:374: error: ‘LogicalAndExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:375: error: ‘LogicalOrExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:376: error: ‘LogicalXorExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:377: error: ‘MethodBodyAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:378: error: ‘MultiplicativeExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:379: error: ‘MultiplicativeExpressionRestAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:380: error: ‘NamespaceDeclarationStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:381: error: ‘NamespacedIdentifierAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:382: error: ‘NewElseSingleAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:383: error: ‘NewElseifListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:384: error: ‘NewelseifListItemAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:385: error: ‘ObjectDimListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:386: error: ‘ObjectPropertyAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:387: error: ‘OptionalClassModifierAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:388: error: ‘OptionalModifiersAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:389: error: ‘OuterTopStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:390: error: ‘ParameterAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:391: error: ‘ParameterListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:392: error: ‘PostprefixOperatorAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:393: error: ‘PrintExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:394: error: ‘RelationalExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:395: error: ‘RelationalExpressionRestAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:396: error: ‘ScalarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:397: error: ‘SemicolonOrCloseTagAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:398: error: ‘ShiftExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:399: error: ‘ShiftExpressionRestAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:400: error: ‘StartAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:401: error: ‘StatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:402: error: ‘StaticArrayPairValueAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:403: error: ‘StaticMemberAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:404: error: ‘StaticScalarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:405: error: ‘StaticVarAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:406: error: ‘SwitchCaseListAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:407: error: ‘TopStatementAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:408: error: ‘UnaryExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:409: error: ‘UnaryExpressionNotPlusminusAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:410: error: ‘UseNamespaceAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:411: error: ‘VarExpressionAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:412: error: ‘VarExpressionNewObjectAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:413: error: ‘VarExpressionNormalAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:414: error: ‘VariableAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:415: error: ‘VariableIdentifierAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:416: error: ‘VariableNameAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:417: error: ‘VariablePropertyAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:418: error: ‘VariableWithoutObjectsAst’ has not been declared
/0S/a11/DL-CVS/kdevelop/php/000/parser/phpparser.h:419: error: ‘WhileStatementAst’ has not been declared
In file included from /0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:23:
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h: In member function ‘int Php::Parser::yylex()’:
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:28: error: invalid use of incomplete type ‘struct Php::TokenStream’
/0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.h:38: error: forward declaration of ‘struct Php::TokenStream’
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h: In member function ‘void Php::Parser::rewind(qint64)’:
/0S/0tmp/DL-CVS/kdevelop/php/000/parser/phpparser.h:32: error: invalid use of incomplete type ‘struct Php::TokenStream’
/0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.h:38: error: forward declaration of ‘struct Php::TokenStream’
/0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp: In member function ‘int Php::Lexer::nextTokenKind()’:
/0S/0tmp/DL-CVS/kdevelop/php/parser/phplexer.cpp:828: warning: unused variable ‘startPos’
make[2]: *** [parser/CMakeFiles/kdev4phpparser.dir/phplexer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  9%] Built target php-parser-generated
Generating phplanguagesupport.moc
Generating navigationwidget.moc
Generating phpparsejob.moc
[  9%] Built target kdevphplanguagesupport_automoc
make[1]: *** [parser/CMakeFiles/kdev4phpparser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  9%] Built target kdev4phpduchain_automoc
make: *** [all] Error 2




More information about the KDevelop-devel mailing list