Menu

#211 swak4Foam does not work with bison 3.x

acknowledged
None
normal
crash
always
none
0.2.3
other
2014-02-28
2014-02-27
No

I am trying to compile swak4Foam with OpenFOAM 2.3.0. I am using bison in version 3.0.2 and I set the environmental variable for new bison in the command line. gcc is 4.8.2. I am using the mercurial swak4Foam and I switch to 2.0.x branch as the wiki page suggests.

The output from Allwmake is attached. It seems that at some stage certain files are not found. Please advise.

Discussion

  • Robert Sawko

    Robert Sawko - 2014-02-27
     
  • Bernhard Gschaider

    OK. Have a look at the output. There it says:

    Bison is version 3.0.2
    swak4Foam only confirmed to work with Bison 2.x

    Maybe this should be a bit stronger: swak4Foam does not compile with Bison 3.x

    I had a look and it seems that the changes required to make the grammar work with 3.x will break 2.x and as the majority of the systems still has 2.x I decided to stay with this for the time being.

    May I ask which Linux-distro you are using (because it seems that it also uses Python3 as the default python)

     
  • Bernhard Gschaider

    Until there is time to make swak work with bison 3.x: let the Allwmake-script fail with incompatible bison-versions. Add the possibility to add a "private" bison compiled from sources (for users where bison is provided by the system)

     
  • Robert Sawko

    Robert Sawko - 2014-02-28

    Thanks. I am using Arch Linux. They are very progressive which sometimes gets in the way. I should have checked it first - it seems I still have the capability to downgrade to bison 2.7. I'll give it a try but providing separate bison together with swak sounds like a great idea.

     
  • Bernhard Gschaider

    Just pushed the possibility for a private bison installation to the mercurial repository. If the version of bion doesn't fit the requirements a message how to install it is advertised.

    For the time being I'll stick with bison 2.x. 3.x doesn't seem to have that big benefits and most Linux-distros that are used for "work" still have 2.x

     

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.