sarnold / cccc

Source code counter and metrics tool for C++, C, and Java
https://sarnold.github.io/cccc/
Other
60 stars 17 forks source link

parallel make failure - hidden dependency? #7

Closed sarnold closed 8 years ago

sarnold commented 9 years ago
g++ -c   -I../pccts/h -std=c++98 -x c++ JLexer.cpp -o JLexer.o
g++ -c   -I../pccts/h -std=c++98 -x c++ JParser.cpp -o JParser.o
JLexer.cpp: In member function ‘ANTLRTokenType JLexer::act3()’:
JLexer.cpp:95:18: error: invalid initialization of reference of type ‘CLexer&’ from expression of type ‘JLexer’
   endOfLine(*this);   
                  ^
JLexer.cpp:66:13: note: in passing argument 1 of ‘void endOfLine(CLexer&)’
 inline void endOfLine(CLexer &lexer)
             ^
sarnold commented 8 years ago

Workaround for parallel make failure is "-j1" in the ebuild and .NOTPARALLEL in the makefile. Not sure all versions of make actually respect that, but it's documented that way.