|
[Sponsors] |
[OpenFOAM.org] 2.4.0: Error in the building of ParaView 4.1.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2016, 08:35 |
2.4.0: Error in the building of ParaView 4.1.0
|
#1 |
New Member
Alessandro
Join Date: Feb 2016
Posts: 5
Rep Power: 10 |
Dear all,
I am absolute OpenFOAM novice and my Linux skills are not great either. I need to install OpenFOAM 2.4.0 on Ubuntu 16.10 and I followed step-by-step this guide thought for Ubuntu 16.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 Now, everything is fine, until point 10.3 where I experienced some issues while building ParaView. OpenFOAM itself works just fine, as I could see from the execution of the "Lid-driven cavity" tutorial. Can someone help me? I am attaching the log.makePV P.S. : I wasn't sure if this should have been posted here or in the ParaView section. |
|
November 15, 2016, 13:52 |
|
#2 | |
Senior Member
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 13 |
Quote:
I'm not a cmake expert but in VTK/CMake/GenerateExportHeader.cmake cmake seems to check only for GCC versions up to 5. Code:
string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}") # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the # patch level, handle this here: if(NOT _gcc_version) string(REGEX REPLACE ".*\\(GCC\\).* ([34]\\.[0-9]) .*" "\\1.0" _gcc_version "${_gcc_version_info}") endif() http://askubuntu.com/questions/26498...-and-g-version |
||
November 16, 2016, 08:37 |
|
#3 |
New Member
Alessandro
Join Date: Feb 2016
Posts: 5
Rep Power: 10 |
Thanks tidusuper91, I installed gcc and g++ 4.7 and I can now launch paraFoam
|
|
November 29, 2016, 13:47 |
Problems building OpenFOAM 2.4.0 on Ubuntu 16.10
|
#4 |
New Member
Giuse
Join Date: Jul 2010
Location: Italy
Posts: 21
Rep Power: 16 |
Hello Everybody,
I have installed OpenFoam 2.4 to run on a VirtualBox Ubuntu 16.10 machine. I compiled everything and testing icoFoam -help I did not get any error message, so I figured out that I compiled it properly. Nevertheless, when I used HelyxOS, using simpleFoam solver, I realized that I did not complete the compiling, and some of the solvers work, some other does not. I attach here the log file, maybe someone has an idea of what is wrong? Thank you in advance, Giuseppe |
|
November 29, 2016, 17:18 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've moved Giuseppe's post to this thread, because it's related to the same issue: Building OpenFOAM 2.4.0 in Ubuntu 16.10. @Giuseppe: The problem is that GCC 6 is not fully supported to be used for building OpenFOAM 2.4.0. Specifically, the error was this: Code:
ensight/part/ensightPart.C: In member function ‘bool Foam::ensightPart::isFieldDefined(const Foam::List<double>&) const’: ensight/part/ensightPart.C:54:54: error: ‘isnan’ was not declared in this scope if (id >= field.size() || isnan(field[id])) ^ I'll try to have instructions on the wiki later this week. Best regards, Bruno
__________________
|
|
November 30, 2016, 12:13 |
|
#6 |
Senior Member
|
Hi,
In fact ::isnan problem is just a beginning of troubles with GCC 6 and OpenFOAM 2.4.x. Then user will encounter troubles with optimisation of reference address comparison with NULL (it is assumed as always true) and all ifs bodies in, for example, polyMesh.C like: Code:
if (&points) { points_.transfer(points()); bounds_ = boundBox(points_, validBoundary); } IIRC after adding nullObject to 2.4.x and changing all "&points"-like code to "notNull(points)"-like, it was possible to get stable running build. |
|
December 3, 2016, 22:27 |
|
#7 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Step-by-step instructions on how to build OpenFOAM 2.4.0 in Ubuntu 16.10 are now available here: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.10 Quote:
From what I could find, the closest related report and commits to what you're referring to are as follows: The commit seems to be the closest to your description, because the bug report is a lot more recent. As for: Quote:
Best regards, Bruno |
|||
December 5, 2016, 04:20 |
|
#8 | |
Senior Member
|
Hi,
Quote:
Surely one can always check commit activity on github; yet, for example, can we assume 3.0.x as dead since the last commit (https://github.com/OpenFOAM/OpenFOAM...ee3b73b0f308e4) in that branch was in August (and quite bizarre commit - fixes are for 3.0.x, version in header comment is 4.x)? |
||
December 22, 2016, 14:30 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer (although somewhat late):
Quote:
Nonetheless, the commit before last was also bit strange as well... although it was to make things a bit more consistent between the versions available back then, I guess... Either way, long term support is something I'm still yet to see to be done by any provider of OpenFOAM versions/forks. |
||
Tags |
building, openfoam 2.4.0 help, paraview 4.1.0 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Building Paraview 4.1.0 with MPI and Python support | reynoldsStress | ParaView | 10 | July 27, 2017 09:38 |
[OpenFOAM.org] Building problem with Paraview 4.1.0 on Ubuntu 16.04 | nigala | OpenFOAM Installation | 2 | June 20, 2016 11:18 |
[foam-extend.org] Error compiling OpenFOAM-1.6-ext | Canesin | OpenFOAM Installation | 137 | January 20, 2016 15:56 |
ParaView 3.8.0 problem on debian | Unseen | OpenFOAM Installation | 4 | August 16, 2010 11:26 |
Compilation error OF1.5-dev on Suse10.3 | darenyang | OpenFOAM Installation | 0 | April 29, 2009 05:55 |