Menu

#243 funkySetFields compile causes error: ValueExpressionParser.tab.cc:68:40: fatal error: ValueExpressionParser.tab.hh: No such file or directory

new
nobody
None
normal
minor
HaveNotTried
none
other
2018-09-11
2018-09-10
No

I am trying to compile the funkySetFields tool. I downloaded the source by:

svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/utilities/postProcessing/FunkySetFields/

and while compiling I get the error:

could not open file ValueExpressionParser.tab.hh for source file funkySetFields.C due to No such file or directory
Making dependency list for source file ValueExpressionDriver.C
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionDriver.C due to No such file or directory
Making dependency list for source file ValueExpressionLexer.ll
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionLexer.ll due to No such file or directory
Making dependency list for source file ValueExpressionParser.yy
could not open file ValueExpressionParser.tab.hh for source file ValueExpressionParser.yy due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt -I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude -fPIC -c ValueExpressionParser.C -o Make/linux64GccDPInt32Opt/ValueExpressionParser.o
ValueExpressionParser.tab.cc:68:40: fatal error: ValueExpressionParser.tab.hh: No such file or directory
compilation terminated.
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/ValueExpressionParser.o' failed
make: *** [Make/linux64GccDPInt32Opt/ValueExpressionParser.o] Error 1

My bison version is 3.0.4.

Discussion

  • Bernhard Gschaider

    The standalone-version of funkySetFields that you're trying to compile is only compatible with OF 1.6 (a very ancient version)
    FSF has since become an integral part of swak4Foam and only compiles with that package

     
  • Foad S. Farimani

    Hi @Bernhard , thanks for the reply. When I google funkySetFields this is the first result I get:

    https://openfoamwiki.net/index.php/Contrib/funkySetFields#Download

    and over there this is the only method of instalation. Maybe we can update this part of the wiki?

    What is the best method to install swak4Foam? Do I have to compile it anyways? It is surprising to see that Repology.org does not bring any results! (link)

     

    Last edit: Foad S. Farimani 2018-09-10
  • Foad S. Farimani

    As odd as it may sound I tried compiling swak4Foam and eneded up with a pretty much same issue. Now while compiling I get the error:

    In file included from lnInclude/CommonValueExpressionDriver.H:847:0,
    from helpers/exprString.C:39:
    lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam::autoPtr<t>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’:
    lnInclude/CommonValueExpressionDriverI.H:326:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’
    header.headerOk()
    ^
    lnInclude/CommonValueExpressionDriverI.H:336:43: error: ‘class Foam::IOobject’ has no member named ‘filePath’
    << header.filePath()
    ^
    /opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
    make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
    Parser library did not compile OK. No sense continuing as everything else depends on it</t>

    Requirements for Library not satisfied. I see no sense in going on
    Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard

    As sarcasticly asked I did google the rror and saw many messages similar from 2012 till 2018 with almost same issues. this CommonValueExpressionDriverI whatever it is is causing a lot of issue. I would appreciate if you could help me this issue.

     
  • Bernhard Gschaider

    Which version of swak4Foam did you compile? This problem is fixed in development version (https://openfoamwiki.net/index.php/Contrib/swak4Foam#Development) but not yet in the release

     
    • Foad S. Farimani

      I just googled and this was the first link I found:
      https://openfoamwiki.net/index.php/Contrib/swak4Foam#Downloading
      which recomends:

      svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ swak4Foam_2.x
      

      If this is an old version maybe we should update the wiki then. It is a bit confusing which version people should use.

       
    • Foad S. Farimani

      I tried the version with

      hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
      

      I got the exact same error:

      In file included from lnInclude/CommonValueExpressionDriver.H:847:0,
      from helpers/exprString.C:39:
      lnInclude/CommonValueExpressionDriverI.H: In member function ‘bool Foam::CommonValueExpressionDriver::updateSet(Foam::autoPtr<t>&, const Foam::word&, Foam::CommonValueExpressionDriver::SetOrigin) const’:
      lnInclude/CommonValueExpressionDriverI.H:326:32: error: ‘class Foam::IOobject’ has no member named ‘headerOk’
      header.headerOk()
      ^
      lnInclude/CommonValueExpressionDriverI.H:336:43: error: ‘class Foam::IOobject’ has no member named ‘filePath’
      << header.filePath()
      ^
      /opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/helpers/exprString.o' failed
      make: *** [Make/linux64GccDPInt32Opt/helpers/exprString.o] Error 1
      Parser library did not compile OK. No sense continuing as everything else depends on it</t>

      Requirements for Library not satisfied. I see no sense in going on
      Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard

      also when running

      hg update development
      

      I get the error message:

      abort: unknown revision 'development'!

      and trying git:

      git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
      

      I get th emessage:

      fatal: Unable to find remote helper for 'hg'

       

      Last edit: Foad S. Farimani 2018-09-11

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.