Menu

#56 Build error when "make -j N" (N>1)

open
nobody
None
5
2015-09-22
2015-09-22
kbinani
No

When I build version 3.1.4 with

make -j 4

, it shows many errors like this:

g++ -c -I../pccts/h  -x c++  CParser.cpp -oCParser.o
CLexer.cpp:416:3: error: no matching function for call to 'endOfLine'
                endOfLine(*this);   
                ^~~~~~~~~
CLexer.cpp:59:13: note: candidate function not viable: no known conversion from 'CLexer' to 'JLexer &' for 1st argument
inline void endOfLine(JLexer &lexer)
            ^
CLexer.cpp:423:3: error: no matching function for call to 'endOfLine'
                endOfLine(*this);   
                ^~~~~~~~~
CLexer.cpp:59:13: note: candidate function not viable: no known conversion from 'CLexer' to 'JLexer &' for 1st argument
inline void endOfLine(JLexer &lexer)
            ^
CLexer.cpp:430:3: error: no matching function for call to 'endOfLine'
                endOfLine(*this);   
                ^~~~~~~~~
CLexer.cpp:59:13: note: candidate function not viable: no known conversion from 'CLexer' to 'JLexer &' for 1st argument
inline void endOfLine(JLexer &lexer)
            ^

These errors never appear when "make -j 1".

Could anyone suggest me a solution?

Discussion


Log in to post a comment.