CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM-2.3.x Building CGAL Every Compile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2015, 10:31
Default OpenFOAM-2.3.x Building CGAL Every Compile
  #1
New Member
 
L.Bryce Whitson Jr.
Join Date: Jun 2011
Posts: 18
Rep Power: 14
LWhitson2 is on a distinguished road
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?
LWhitson2 is offline   Reply With Quote

Old   May 21, 2015, 16:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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?

Last edited by wyldckat; May 21, 2015 at 16:35. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   May 21, 2015, 16:40
Default
  #3
New Member
 
L.Bryce Whitson Jr.
Join Date: Jun 2011
Posts: 18
Rep Power: 14
LWhitson2 is on a distinguished road
Here you are sir.
Attached Files
File Type: gz make.log.gz (32.0 KB, 3 views)
LWhitson2 is offline   Reply With Quote

Old   May 24, 2015, 08:04
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2015, 08:52
Default
  #5
New Member
 
L.Bryce Whitson Jr.
Join Date: Jun 2011
Posts: 18
Rep Power: 14
LWhitson2 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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?
LWhitson2 is offline   Reply With Quote

Old   May 24, 2015, 09:09
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
compile error when playing with OpenFOAM test cases TimLiu OpenFOAM Programming & Development 1 November 14, 2016 14:35
[swak4Foam] how to compile groovyBC to OpenFoam v1.6? tamsilian OpenFOAM Community Contributions 1 May 27, 2010 03:15
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50
Building OpenFoAm on SGI Altix 64bits anne OpenFOAM Installation 8 June 15, 2006 09:27


All times are GMT -4. The time now is 19:28.