Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353847 - dev-util/kdevelop-php fails with parallel make - kdevelop-php-1.2.0_build/parser/phpparser.h:7:20: fatal error: phpast.h: No such file or directory
Summary: dev-util/kdevelop-php fails with parallel make - kdevelop-php-1.2.0_build/par...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-06 13:48 UTC by Andreas Sturmlechner
Modified: 2012-03-08 00:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,15.95 KB, text/plain)
2011-02-06 13:55 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2011-02-06 13:48:38 UTC
This seems to be the point where it goes oops:


[ 11%] Building CXX object parser/CMakeFiles/kdev4phpparser.dir/parsesession.o                                  
In file included from /var/tmp/portage/dev-util/kdevelop-php-1.2.0/work/kdevelop-php-1.2.0/parser/parsesession.h:24:0,
                 from /var/tmp/portage/dev-util/kdevelop-php-1.2.0/work/kdevelop-php-1.2.0/parser/parsesession.cpp:19:
/var/tmp/portage/dev-util/kdevelop-php-1.2.0/work/kdevelop-php-1.2.0_build/parser/phpparser.h:7:20: fatal error: phpast.h: No such file or directory
compilation terminated.
make[2]: *** [parser/CMakeFiles/kdev4phpparser.dir/parsesession.o] Error 1
make[2]: *** Waiting for unfinished jobs....
** WARNING found FIRST/FOLLOW conflict in  "elseifList" 
: 
        Rule `` 
'' 
        Terminals [ 

         0x851eb8 : conflicts with the FIRST set of:  

             
,  
#elseifListItem=elseifListItem
             
,  
newElseifList
             
,  
#newElseifListItem=newelseifListItem
             
,  
elseifList=elseifList

         ] 


(#elseifListItem=elseifListItem)*** WARNING found FIRST/FIRST conflict in  "topStatement" : 
        Rule `` 
'' 
        Terminals [ 
0x851fa8 
] 


(statement=statement | functionDeclaration=functionDeclarationStatement)** WARNING found FIRST/FIRST conflict in  "varExpression" : 
        Rule `` 
'' 
        Terminals [ 
0x8528f0 
,  
0x852968 
,  
0x852848 
,  
0x851d68 
,  
0x852440 
] 


(0 variable=variable | 0 newObject=varExpressionNewObject | varExpressionNormal=varExpressionNormal)** WARNING found FIRST/FIRST conflict in  "variableProperty" : 
        Rule `` 
'' 
        Terminals [ 
0x852368 
] 


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


(LBRACE try/recover(statements=innerStatementList) RBRACE | IF LPAREN ifExpr=expr RPAREN (COLON statements=innerStatementList newElseifList newElseSingle ENDIF semicolonOrCloseTag | ifStatement=statement elseifList=elseifList elseSingle=elseSingle) | WHILE LPAREN whileExpr=expr RPAREN whileStatement=whileStatement | FOR LPAREN forExpr1=forExpr SEMICOLON forExpr2=forExpr SEMICOLON forExpr3=forExpr RPAREN forStatement=forStatement | SWITCH LPAREN swtichExpr=expr RPAREN switchCaseList=switchCaseList | FOREACH LPAREN try/rollback(foreachVar=variable AS foreachVarAsVar=foreachVariable) catch(foreachExpr=expr AS foreachExprAsVar=variableIdentifier) (DOUBLE_ARROW foreachVariable=foreachVariable | 0) RPAREN foreachStatement=foreachStatement | DECLARE LPAREN declareItem=declareItem (COMMA declareItem=declareItem)* RPAREN declareStatement | SEMICOLON | TRY LBRACE try/recover(statements=innerStatementList) RBRACE (#catches=catchItem)* | UNSET LPAREN #unsetVariables=variable (COMMA #unsetVariables=variable)* RPAREN semicolonOrCloseTag | expr=expr semicolonOrCloseTag | DO doStatement=statement WHILE LPAREN whileExpr=expr RPAREN semicolonOrCloseTag | BREAK (breakExpr=expr | 0) semicolonOrCloseTag | CONTINUE (continueExpr=expr | 0) semicolonOrCloseTag | RETURN (returnExpr=expr | 0) semicolonOrCloseTag | GLOBAL #globalVars=globalVar (COMMA #globalVars=globalVar)* semicolonOrCloseTag | STATIC #staticVars=staticVar (COMMA #staticVars=staticVar)* semicolonOrCloseTag | ECHO #echoExprs=expr (COMMA #echoExprs=expr)* semicolonOrCloseTag | THROW throwExpr=expr semicolonOrCloseTag | CLOSE_TAG | OPEN_TAG | OPEN_TAG_WITH_ECHO expr=expr semicolonOrCloseTag | INLINE_HTML | CONST #consts=constantDeclaration (COMMA #consts=constantDeclaration)* SEMICOLON | USE #useNamespace=useNamespace (COMMA #useNamespace=useNamespace)* SEMICOLON | GOTO gotoLabel=STRING SEMICOLON | gotoTarget=STRING COLON)** WARNING found FIRST/FIRST conflict in  "classNameReference" : 
        Rule `` 
'' 
        Terminals [ 
0x852968 
] 


(identifier=namespacedIdentifier | dynamicClassNameReference=dynamicClassNameReference)** WARNING found FIRST/FIRST conflict in  "encapsVar" : 
        Rule `` 
'' 
        Terminals [ 
0x852980 
] 


(STRING_VARNAME LBRACKET expr=expr RBRACKET RBRACE | expr=expr RBRACE)7  conflicts total:  1  FIRST/FOLLOW conflicts,  6  FIRST/FIRST conflicts. 

[ 13%] Built target php-parser-generated
Scanning dependencies of target kdevphplanguagesupport_automoc
Scanning dependencies of target kdev4phpduchain_automoc                                                         
Generating phplanguagesupport.moc                                                                               
Generating navigationwidget.moc                                                                                 
Generating phpparsejob.moc                                                                                      
[ 13%] Built target kdevphplanguagesupport_automoc                                                              
[ 13%] Built target kdev4phpduchain_automoc
make[1]: *** [parser/CMakeFiles/kdev4phpparser.dir/all] Error 2
make: *** [all] Error 2
emake failed
 * ERROR: dev-util/kdevelop-php-1.2.0 failed (compile phase):
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3932:  Called kde4-base_src_compile
 *   environment, line 2989:  Called cmake-utils_src_compile
 *   environment, line 1167:  Called _execute_optionaly 'src_compile'
 *   environment, line  541:  Called enable_cmake-utils_src_compile
 *   environment, line 1544:  Called cmake-utils_src_make
 *   environment, line 1186:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =dev-util/kdevelop-php-1.2.0',
 * the complete build log and the output of 'emerge -pqv =dev-util/kdevelop-php-1.2.0'.
 * The complete build log is located at '/var/tmp/portage/dev-util/kdevelop-php-1.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/kdevelop-php-1.2.0/temp/environment'.
 * S: '/var/tmp/portage/dev-util/kdevelop-php-1.2.0/work/kdevelop-php-1.2.0'
Comment 1 Andreas Sturmlechner gentoo-dev 2011-02-06 13:53:52 UTC
It was emerged with:
[ebuild   R    ] dev-util/kdevelop-php-1.2.0  USE="doc (-aqua) -debug (-kdeenablefinal)" LINGUAS="de en_GB -ca -ca@valencia -da -es -et -fr -it -nds -nl -pt -pt_BR -sv -th -uk -zh_CN -zh_TW" 0 kB



Most important emerge --info output:

Portage 2.2.0_alpha20 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r0, 2.6.37-ownage x86_64)
=================================================================
System uname: Linux-2.6.37-ownage-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 06 Feb 2011 10:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
...
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CAMERAS="canon"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -w"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
...
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -w"
...
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
...
MAKEOPTS="-j3"
Comment 2 Andreas Sturmlechner gentoo-dev 2011-02-06 13:55:27 UTC
Created attachment 261640 [details]
build.log
Comment 3 Wormo (RETIRED) gentoo-dev 2011-02-14 00:07:28 UTC
Thanks for reporting this parallel make bug -- phpast.h must be missing from the dependency chain of parsesession.o

Assigning to kdevelop maintainers.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-04-25 20:30:13 UTC
Should be fixed.
Comment 5 Maciej Mrozowski gentoo-dev 2012-03-08 00:57:35 UTC
Just a FYI.
While this patch may fix this particular parallel issue, the other one remains (which causes automoc4 to prepend namespace twice in parserjob.moc -> compilation error) - therefore I will enforce -j1 nevertheless.

In file included from ../kdevelop-php-1.2.3/phpparsejob.cpp:262:0:
./phpparsejob.moc:40:24: error: 'Php::Php' has not been declared
./phpparsejob.moc:49:25: error: 'Php::Php' has not been declared