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

[OpenFOAM.org] 2.4.0: Error in the building of ParaView 4.1.0

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By rdbisme
  • 1 Post By alexeym
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2016, 07:35
Default 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
a_soli is on a distinguished road
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.
Attached Files
File Type: gz log.makePV.tar.gz (1.8 KB, 5 views)
a_soli is offline   Reply With Quote

Old   November 15, 2016, 12:52
Default
  #2
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 12
rdbisme is on a distinguished road
Quote:
Originally Posted by a_soli View Post
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.
I think this is related to using Gcc6.

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()
Try to use a lower gcc version (e.g. 4.8.2).
http://askubuntu.com/questions/26498...-and-g-version
wyldckat and a_soli like this.
rdbisme is offline   Reply With Quote

Old   November 16, 2016, 07:37
Default
  #3
New Member
 
Alessandro
Join Date: Feb 2016
Posts: 5
Rep Power: 10
a_soli is on a distinguished road
Thanks tidusuper91, I installed gcc and g++ 4.7 and I can now launch paraFoam
a_soli is offline   Reply With Quote

Old   November 29, 2016, 12:47
Default Problems building OpenFOAM 2.4.0 on Ubuntu 16.10
  #4
New Member
 
Giuse
Join Date: Jul 2010
Location: Italy
Posts: 21
Rep Power: 15
UDS_rambler is on a distinguished road
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
UDS_rambler is offline   Reply With Quote

Old   November 29, 2016, 16:18
Default
  #5
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 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]))
                                                      ^
In order to fix this, you will need to one of the changes mentioned here: http://bugs.openfoam.org/view.php?id=2041

I'll try to have instructions on the wiki later this week.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2016, 11:13
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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);
    }
are executed unconditionally, and it leads to rather funny things (sometimes solver runs, sometimes solver crashes). When this behaviour has reported for clang, bug was closed with comment "to much work to fix it in 2.4.x, fixed in 3.0 with nullObject".

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.
wyldckat likes this.
alexeym is offline   Reply With Quote

Old   December 3, 2016, 21:27
Default
  #7
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 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:
Originally Posted by alexeym View Post
When this behaviour has reported for clang, bug was closed with comment "to much work to fix it in 2.4.x, fixed in 3.0 with nullObject".

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.
Many thanks Alexey! I suspected there were more issues, but I was hoping that the other fix would be enough. I've also updated the http://openfoamwiki.net/index.php/In...ibility_Matrix wiki page accordingly, by placing a reference link to your post.

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:
Originally Posted by alexeym View Post
When this behaviour has reported for clang, bug was closed with comment "to much work to fix it in 2.4.x, fixed in 3.0 with nullObject".
Unfortunately there is no funding dedicated to maintaining the previous releases (at least as far as I know of), if there is a current release already under maintenance. And since this was a major change, it would need to go through the test/tutorial loop... which takes time to run and check


Best regards,
Bruno
a_soli likes this.
wyldckat is offline   Reply With Quote

Old   December 5, 2016, 03:20
Default
  #8
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Quote:
Originally Posted by wyldckat View Post
Unfortunately there is no funding dedicated to maintaining the previous releases (at least as far as I know of), if there is a current release already under maintenance. And since this was a major change, it would need to go through the test/tutorial loop... which takes time to run and check
And this is a consequence of no strictly (or at least somehow) defined release life cycle.

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)?
alexeym is offline   Reply With Quote

Old   December 22, 2016, 13:30
Default
  #9
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 (although somewhat late):
Quote:
Originally Posted by alexeym View Post
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)?
Sorry, mea culpa on that commit. This was because there was a weird issue between OpenFOAM 3.0.x and 4.x, reported here: https://bugs.openfoam.org/view.php?id=2179 - so the commit was a direct copy of the script files in 4.x to 3.0.x, for fixing the typo in said scripts.

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.
wyldckat is offline   Reply With Quote

Reply

Tags
building, openfoam 2.4.0 help, paraview 4.1.0


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
[General] Building Paraview 4.1.0 with MPI and Python support reynoldsStress ParaView 10 July 27, 2017 08:38
[OpenFOAM.org] Building problem with Paraview 4.1.0 on Ubuntu 16.04 nigala OpenFOAM Installation 2 June 20, 2016 10:18
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 14:56
ParaView 3.8.0 problem on debian Unseen OpenFOAM Installation 4 August 16, 2010 10:26
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 04:55


All times are GMT -4. The time now is 07:02.