March 3, 2010, 11:14
|
|
#11
|
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
|
Quote:
Originally Posted by gschaider
I wasn't aware that bison uses m4 (you learn something new every day). That program is really out of my league. But I don't think that it is a version issue. I'm afraid there is a very subtle problem with your system (some installation broken, permission, ...). I don't know much about m4. Make sure that it works on your machine (there is for instance an article about generating blockMeshes with m4 on the Wiki). Maybe someone with more knowledge about m4 could have an ide what is wrong
Bernhard
|
That seems to be an issue of the non-system bison 2.4.1 which does not work with the system m4. I tried the system bison 2.1 and now I get:
Code:
wmake
Making dependency list for source file ValueExpressionParser.yy
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionParser.yy
Making dependency list for source file ValueExpressionLexer.ll
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionLexer.ll
Making dependency list for source file ValueExpressionDriver.C
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionDriver.C
Making dependency list for source file funkySetFields.C
could not open file ValueExpressionParser.tab.hh for source file funkySetFields.C
SOURCE=ValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/ValueExpressionParser.C Make/linux64GccDPOpt/ValueExpressionParser.tab.hh; bison -ra -v -d $SOURCE ; mv *.tab.cc Make/linux64GccDPOpt/ValueExpressionParser.C ; mv *.tab.hh Make/linux64GccDPOpt/ValueExpressionParser.tab.hh ; mv *.hh Make/linux64GccDPOpt ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IMake/linux64GccDPOpt -I/opt/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/ValueExpressionParser.C -o Make/linux64GccDPOpt/ValueExpressionParser.o
In file included from ValueExpressionParser.yy:62,
from Make/linux64GccDPOpt/ValueExpressionParser.C:24:
./ValueExpressionDriver.H:23: error: incomplete type ‘ve::ValueExpressionParser’ used in nested name specifier
./ValueExpressionDriver.H:23: error: ‘yylval’ was not declared in this scope
./ValueExpressionDriver.H:23: error: expected primary-expression before ‘*’ token
./ValueExpressionDriver.H:23: error: ‘yylloc’ was not declared in this scope
./ValueExpressionDriver.H:23: error: expected primary-expression before ‘&’ token
./ValueExpressionDriver.H:23: error: ‘driver’ was not declared in this scope
./ValueExpressionDriver.H:23: error: initializer expression list treated as compound expression
ValueExpressionParser.tab.cc: In member function ‘virtual int yy::ValueExpressionParser::parse()’:
ValueExpressionParser.tab.cc:409: error: ‘velex’ cannot be used as a function
ValueExpressionParser.tab.cc: In member function ‘unsigned char yy::ValueExpressionParser::yytranslate_(int)’:
ValueExpressionParser.tab.cc:2633: warning: use of old-style cast
ValueExpressionParser.yy: At global scope:
ValueExpressionParser.yy:382: error: expected unqualified-id before ‘&’ token
ValueExpressionParser.yy:382: error: expected ‘,’ or ‘...’ before ‘&’ token
ValueExpressionParser.yy:382: error: invalid use of incomplete type ‘struct ve::ValueExpressionParser’
./ValueExpressionDriver.H:18: error: forward declaration of ‘struct ve::ValueExpressionParser’
make: *** [Make/linux64GccDPOpt/ValueExpressionParser.o] Error 1
|
|
|