|
[Sponsors] |
March 1, 2018, 20:50 |
OpenFOAM 1712 cfmesh compile error
|
#1 |
New Member
Xuefeng Zou
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
I try to compile OpenFOAM 1712 from source code on linux mint 18.All components are successfully finished except cfmesh.Cfmesh is a new module .Error message will like these below:
2018-02-28 21:03:05 +0800 Starting compile of cfMesh with OpenFOAM-v1712 Gcc system compiler linux64GccDPInt64Opt, with SYSTEMOPENMPI openmpi-system wmake libso meshLibrary make[1]: Entering directory '/home/zou/OpenFOAM/OpenFOAM-v1712/modules/cfmesh/meshLibrary' g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/surfMesh/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -IlnInclude -I. -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/zou/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o /home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o In file included from lnInclude/DynList.H:254:0, from lnInclude/VRWGraph.H:41, from lnInclude/meshSubset.H:40, from lnInclude/polyMeshGenPoints.H:41, from lnInclude/polyMeshGenFaces.H:40, from lnInclude/polyMeshGenCells.H:40, from lnInclude/polyMeshGen.H:40, from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40, from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:26: lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’: lnInclude/helperFunctionsTopologyManipulationI.H:600:34: required from here lnInclude/DynListI.H:218:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’ setSize(l.size()); ^ lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer this->operator[](i) = l[i]; ^ lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’: lnInclude/helperFunctionsGeometryQueriesI.H:1144:37: required from here lnInclude/DynListI.H:218:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’ setSize(l.size()); ^ lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer this->operator[](i) = l[i]; ^ /home/zou/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target '/home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o' failed make[1]: *** [/home/zou/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Error 1 make[1]: Leaving directory '/home/zou/OpenFOAM/OpenFOAM-v1712/modules/cfmesh/meshLibrary' /home/zou/OpenFOAM/OpenFOAM-v1712/wmake/makefiles/apps:39: recipe for target 'cfmesh' failed make: *** [cfmesh] Error 2 |
|
March 2, 2018, 08:27 |
|
#2 |
Member
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11 |
What branch of cfMesh are you using? AFAIK, the development branch should compile as reported in the following thread
Compiling cfMesh with OpenFOAM 4.x |
|
March 4, 2018, 04:43 |
|
#3 |
New Member
Xuefeng Zou
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
I dont now ,newest openfoam 1712 has included cfmesh , may just use built-in version.
|
|
April 17, 2018, 00:56 |
|
#4 |
Member
YS
Join Date: Jan 2010
Posts: 93
Rep Power: 16 |
Has anyone solved this issue? I got similar compilation error on building cfmesh in OF-v1712.
======================================== 2018-04-17 10:06:21 +0800 Starting compile of cfMesh with OpenFOAM-v1712 Gcc system compiler linux64GccDPInt64Opt, with OPENMPI openmpi-1.10.4 wmake libso meshLibrary g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3 -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/fileFormats/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/surfMesh/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/meshTools/lnInclude -IlnInclude -I. -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o /scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o In file included from lnInclude/DynList.H:254:0, from lnInclude/VRWGraph.H:41, from lnInclude/meshSubset.H:40, from lnInclude/polyMeshGenPoints.H:41, from lnInclude/polyMeshGenFaces.H:40, from lnInclude/polyMeshGenCells.H:40, from lnInclude/polyMeshGen.H:40, from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40, from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:26: lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’: lnInclude/helperFunctionsTopologyManipulationI.H:600:34: required from here lnInclude/DynListI.H:218:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’ setSize(l.size()); ^ lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer this->operator[](i) = l[i]; ^ lnInclude/DynListI.H: In instantiation of ‘Foam::Module:ynList<T, staticSize>:ynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’: lnInclude/helperFunctionsGeometryQueriesI.H:1144:37: required from here lnInclude/DynListI.H:218:21: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’ setSize(l.size()); ^ lnInclude/DynListI.H:221:32: error: subscripted value is neither array nor pointer this->operator[](i) = l[i]; ^ make: *** [/scratch_fdns/lux/OpenFOAM/OpenFOAM-v1712/build/linux64GccDPInt64Opt/modules/cfmesh/meshLibrary/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Error 1 |
|
May 18, 2018, 02:36 |
|
#5 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
I get the same error.
|
|
May 18, 2018, 03:38 |
|
#6 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
Just to follow up. OpenFOAM appears to work despite the error. I'm guessing anything that requires cfmesh will not work, though.
This thread: Compiling cfMesh with OpenFOAM 4.x shows people grabbing cfmesh from v1606 and compiling it for use with OpenFOAM v4. I haven't tried it because I don't really understand how that works, but that might work. |
|
May 18, 2018, 11:51 |
|
#7 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
Oh. Has anyone filed a bug report for this yet?
edit: I just filed one Last edited by spaceprop; May 21, 2018 at 05:17. |
|
May 28, 2018, 03:19 |
|
#8 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,686
Rep Power: 40 |
Quote:
I think that the problem noted is related to 64-bit label sizes and should be addressed by this commit (5-JAN-2018): https://develop.openfoam.com/Communi...367fd9565ad8ae |
||
May 29, 2018, 06:39 |
|
#9 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
I can confirm this fixed my problem.
Before building openfoam: 1. Delete the cfmesh folder in your download. 2. Clone the whole master branch of cfmesh to "cfmesh" in the same location that you just deleted the old cfmesh from. 3. Build openfoam normally. I think you can probably compile it after openfoam is built using the instructions in the cfmesh readme. |
|
Tags |
intallation;openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x | Saxwax | OpenFOAM Installation | 25 | November 29, 2013 05:34 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 20:30 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 17:38 |