|
[Sponsors] |
October 15, 2011, 16:28 |
Compiling Error Red Hat Linux 5
|
#1 |
New Member
L.Bryce Whitson Jr.
Join Date: Jun 2011
Posts: 18
Rep Power: 15 |
I am trying to compile OpenFOAM on RHEL 5.0 and I keep getting a lot of errors. The following is the first of the errors and I was hoping someone could help me figure out what I am doing wrong.
Code:
wmake libso mpi '/var/local/scratch/whitsonl/programs/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/openmpi-1.5.3/libPstream.so' is up to date. + OSspecific/POSIX/Allwmake Found <sys/inotify.h> -- enabling inotify for file monitoring. '/var/local/scratch/whitsonl/programs/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOSspecific.o' is up to date. + wmake libso OpenFOAM SOURCE=meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -IlnInclude -I. -I/var/local/scratch/whitsonl/programs/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/var/local/scratch/whitsonl/programs/OpenFOAM/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/polyMeshTetDecomposition.o lnInclude/globalIndexAndTransformI.H: In member function ‘Foam::labelList Foam::globalIndexAndTransform::transformIndicesForPatches(const Foam::labelHashSet&) const’: lnInclude/globalIndexAndTransformI.H:515: warning: converting to ‘Foam::label’ from ‘double’ lnInclude/syncToolsTemplates.C: In static member function ‘static void Foam::syncTools::syncBoundaryFaceList(const Foam::polyMesh&, Foam::UList<T>&, const CombineOp&, const TransformOp&) [with T = Foam::Vector<double>, CombineOp = Foam::eqOp<Foam::Vector<double> >, TransformOp = Foam::mapDistribute::transformPosition]’: lnInclude/syncTools.H:395: instantiated from ‘static void Foam::syncTools::swapBoundaryFacePositions(const Foam::polyMesh&, Foam::UList<T>&) [with T = Foam::Vector<double>]’ meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C:234: instantiated from here lnInclude/syncToolsTemplates.C:1355: error: call of overloaded ‘Field(Foam::SubField<Foam::Vector<double> >)’ is ambiguous lnInclude/Field.C:141: note: candidates are: Foam::Field<Type>::Field(const Foam::Field<Type>&) [with Type = Foam::Vector<double>] lnInclude/Field.C:179: note: Foam::Field<Type>::Field(const Foam::UList<T>&) [with Type = Foam::Vector<double>] lnInclude/syncToolsTemplates.C:1358: error: call of overloaded ‘Field(Foam::SubField<Foam::Vector<double> >)’ is ambiguous lnInclude/Field.C:141: note: candidates are: Foam::Field<Type>::Field(const Foam::Field<Type>&) [with Type = Foam::Vector<double>] lnInclude/Field.C:179: note: Foam::Field<Type>::Field(const Foam::UList<T>&) [with Type = Foam::Vector<double>] lnInclude/syncToolsTemplates.C: In static member function ‘static void Foam::syncTools::syncBoundaryFaceList(const Foam::polyMesh&, Foam::UList<T>&, const CombineOp&, const TransformOp&) [with T = int, CombineOp = Foam::maxEqOp<int>, TransformOp = Foam::mapDistribute::transform]’: lnInclude/syncTools.H:300: instantiated from ‘static void Foam::syncTools::syncBoundaryFaceList(const Foam::polyMesh&, Foam::UList<T>&, const CombineOp&) [with T = int, CombineOp = Foam::maxEqOp<int>]’ meshes/polyMesh/polyMeshTetDecomposition/polyMeshTetDecomposition.C:298: instantiated from here lnInclude/syncToolsTemplates.C:1355: error: call of overloaded ‘Field(Foam::SubField<int>)’ is ambiguous lnInclude/Field.C:141: note: candidates are: Foam::Field<Type>::Field(const Foam::Field<Type>&) [with Type = int] lnInclude/Field.C:179: note: Foam::Field<Type>::Field(const Foam::UList<T>&) [with Type = int] lnInclude/syncToolsTemplates.C:1358: error: call of overloaded ‘Field(Foam::SubField<int>)’ is ambiguous lnInclude/Field.C:141: note: candidates are: Foam::Field<Type>::Field(const Foam::Field<Type>&) [with Type = int] lnInclude/Field.C:179: note: Foam::Field<Type>::Field(const Foam::UList<T>&) [with Type = int] make: *** [Make/linux64GccDPOpt/polyMeshTetDecomposition.o] Error 1 Bryce |
|
October 16, 2011, 05:42 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Bryce,
What Gcc version are you using? Code:
gcc -v Another possibility is to use OpenFOAM version made available by the CentFOAM project: http://sourceforge.net/apps/mediawik...itle=Main_Page Yet another possibility would be to use Intel's compiler, Icc, but I think you'll need at least the version 12.0 for building OpenFOAM 2.0. Best regards and good luck! Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dual Boot Windows and Linux and Go Open Source | andyj | Main CFD Forum | 2 | October 21, 2010 17:49 |
Running Fluent on Red Hat Linux WS version 4 | Bob | FLUENT | 1 | September 4, 2005 06:01 |
Works in Red Hat Linux 6.2 with Alpha Processer? | hongchan | FLUENT | 1 | December 24, 2001 18:32 |
Which version of Red Hat Linux for Fluent 5.4??? | Steve Howell | FLUENT | 6 | August 22, 2001 10:49 |
Fluent5 and Linux Red Hat 7.0 | Anthony Wachs | FLUENT | 0 | March 21, 2001 12:40 |