View Issue Details

IDProjectCategoryView StatusLast Update
0000670ThirdPartyBugpublic2012-10-27 09:58
Reporteruser530Assigned Tohenry  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
PlatformLinuxOSRHELOS Version6
Summary0000670: Syntax error causes compilation to fail
DescriptionWith GCC 4.7.1 (required to take advantage of the latest AMD processor features), a syntax error is detected, and compilation errors several times with the same message, eventually falling over with this error:

In file included from /home/jrj1d11/OpenFOAM/ThirdParty-2.1.1/ParaView-3.12.0/Qt/Core/pqAnimationScene.cxx:57:0:
/home/jrj1d11/OpenFOAM/ThirdParty-2.1.1/ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h:75:30: error: calls to
                 overloaded operators cannot appear in a constant-expression

An Enum is a constant expression, so the error message would appear to be correct.
Steps To Reproduce* Take one stock RHEL 6 build.
* Install GCC 4.7.1 and OpenMPI 1.6.2 (both the latest stable versions of each respective project).
* Follow instructions on http://www.openfoam.org/download/source.php for building OpenFOAM and ThirdParty.
** Note that OpenFOAM builds without problems.
** Attempt to build ThirdParty as the instructions describe.
*** Note the error message, mentioned in the description.
Additional InformationIn addition to the steps on the installation page, symlinks or similar will need to be provided to workaround the fact that cmake 2.8 is called cmake28 and qmake is qmake-qt4 on RHEL 6. Otherwise the build will fail.
TagsNo tags attached.

Activities

user19

2012-10-26 19:37

  ~0001745

You do realize that this is an issue with ParaView? You should report the issue here: http://paraview.org/Bug

wyldckat

2012-10-26 22:36

updater   ~0001747

Last edited: 2012-10-26 22:36

I think this has already been reported on ParaView's bug tracker... and 3.12.0 is rather old by now :)

Anyway, the fix is already known for some time now. You can find the fix for it, for example, here: http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.1.1/Fedora#Fedora_17 - step #6.

Basically, the hack is this - simply run:
sed -i -e 's/ClearAndSelect = Clear | Select/ClearAndSelect = static_cast<int>(Clear) | static_cast<int>(Select)/' \
ParaView-3.12.0/Qt/Core/pqServerManagerSelectionModel.h

Issue History

Date Modified Username Field Change
2012-10-26 17:43 user530 New Issue
2012-10-26 19:37 user19 Note Added: 0001745
2012-10-26 22:36 wyldckat Note Added: 0001747
2012-10-26 22:36 wyldckat Note Edited: 0001747
2012-10-27 09:58 henry Status new => resolved
2012-10-27 09:58 henry Resolution open => no change required
2012-10-27 09:58 henry Assigned To => henry