CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM-2.3.x Building CGAL Every Compile (https://www.cfd-online.com/Forums/openfoam-installation/153264-openfoam-2-3-x-building-cgal-every-compile.html)

LWhitson2 May 21, 2015 10:31

OpenFOAM-2.3.x Building CGAL Every Compile
 
I just pulled the most recent version of OF-2.3.x from the git repo and now CGAL is rebuilding every time that I invoke Allwmake. This never occurred before so I don't exactly know what is going on. Anyone else experiencing this same issue?

wyldckat May 21, 2015 16:34

Quick answer:
  1. Run Allwmake like this:
    Code:

    ./Allwmake > log.make 2>&1
  2. Compress the file:
    Code:

    gzip < log.make > log.make.gz
  3. Attach "log.make.gz" to your next post, so that I can see what's happening.
edit: And which package did you use for your folder ThirdParty-2.3.x? Is it from git or from 2.3.1?

LWhitson2 May 21, 2015 16:40

1 Attachment(s)
Here you are sir.

wyldckat May 24, 2015 08:04

Greetings LWhitson2,

OK, this one is going to be a bit weird to fix.

So the problem is that the latest 2.3.x repository has been prepared to bridge into the 2.4 release, which is essentially what would have been 2.3.2 in the previous numbering.
The result: CGAL, Scotch and some other libraries were updated in the "OpenFOAM-2.3.x/etc/config/*" files, as well as in the ThirdParty-2.3.x folder.

The situation you're in is that the "OpenFOAM-2.3.x" repository was recently configured into using CGAL 4.6, but the script "makeCGAL" in "ThirdParty-2.3.x" is still hard-coded to use 4.3.
This makes the "Allwmake" script in "ThirdParty-2.3.x" to go look if CGAL 4.6 is installed and since it can't find it, it calls "makeCGAL", which in turn will build CGAL 4.3.

So, how to fix this? It depends on what you prefer to do:
  • For staying with OpenFOAM 2.3.x and not yet switch to 2.4.x, you can run these commands:
    Code:

    foam
    git checkout edde7be5bd
    ./Allwmake > log.make 2>&1

    • If all goes well, it should build without any problems. The "edde7be5bd" is the first part of the commit's hash hexadecimal number.
    • The downside is that this would mean that you wouldn't want to continue following the 2.3.x repository, since the work will continue in 2.4.x.
  • For moving forward to 2.4.x... it's easier if you build 2.4.x as a new build, using the respective ThirdParty-2.4.0 package.
    • Theoretically, it's possible to go straight between 2.3.x to 2.4.x, but it takes a long time to write and test the steps to do so.
Best regards,
Bruno

LWhitson2 May 24, 2015 08:52

Quote:

Originally Posted by wyldckat (Post 547471)
Greetings LWhitson2,

OK, this one is going to be a bit weird to fix.

So the problem is that the latest 2.3.x repository has been prepared to bridge into the 2.4 release, which is essentially what would have been 2.3.2 in the previous numbering.
The result: CGAL, Scotch and some other libraries were updated in the "OpenFOAM-2.3.x/etc/config/*" files, as well as in the ThirdParty-2.3.x folder.

The situation you're in is that the "OpenFOAM-2.3.x" repository was recently configured into using CGAL 4.6, but the script "makeCGAL" in "ThirdParty-2.3.x" is still hard-coded to use 4.3.
This makes the "Allwmake" script in "ThirdParty-2.3.x" to go look if CGAL 4.6 is installed and since it can't find it, it calls "makeCGAL", which in turn will build CGAL 4.3.

So, how to fix this? It depends on what you prefer to do:
  • For staying with OpenFOAM 2.3.x and not yet switch to 2.4.x, you can run these commands:
    Code:

    foam
    git checkout edde7be5bd
    ./Allwmake > log.make 2>&1

    • If all goes well, it should build without any problems. The "edde7be5bd" is the first part of the commit's hash hexadecimal number.
    • The downside is that this would mean that you wouldn't want to continue following the 2.3.x repository, since the work will continue in 2.4.x.
  • For moving forward to 2.4.x... it's easier if you build 2.4.x as a new build, using the respective ThirdParty-2.4.0 package.
    • Theoretically, it's possible to go straight between 2.3.x to 2.4.x, but it takes a long time to write and test the steps to do so.
Best regards,
Bruno

I dont see a 2.4.x repository on github. 2.3.x is the latest version. Is 2.4.x coming out soon then?

wyldckat May 24, 2015 09:09

I've reported the issues with the versions here: http://www.openfoam.org/mantisbt/view.php?id=1705 - Henry has asked for feedback on who agrees with reverting the versions for CGAL, Open-MPI and Scotch on OpenFOAM 2.3.x.

As for the repositories:


All times are GMT -4. The time now is 14:49.