[Solved] Installing cfmesh-cfdof fails with error

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
xorinet
Posts: 3
Joined: Fri Nov 04, 2022 9:45 pm

[Solved] Installing cfmesh-cfdof fails with error

Post by xorinet »

Hello! Recently, I've been getting errors while trying to install cfmesh-cfdof from the FreeCAD Preferences -> CfdOF window:

Code: Select all

Downloading cfMesh, please wait...
cfMesh downloaded to /tmp/tmpawhd7a48.zip
Extracting cfMesh...
Download completed
Building cfMesh. Lengthy process - please wait...
Log file: /home/xorinet/OpenFOAM/xorinet-v2206/cfmesh-cfdof/log.Allwmake
Install finished with error 2
I am using OpenFOAM v2206 compiled from source. I've taken a look at a problem previously reported that's similar to this one and I think I'm encountering a different problem. Here is the fully detailed log from the output window:
cfmesh-errors-output.txt
(366.56 KiB) Downloaded 37 times
Of particular interest is this section of the log.

Code: Select all

In file included from ../../meshLibrary/lnInclude/DynList.H:254,
                 from ../../meshLibrary/lnInclude/VRWGraph.H:42,
                 from ../../meshLibrary/lnInclude/meshSubset.H:44,
                 from ../../meshLibrary/lnInclude/polyMeshGenPoints.H:49,
                 from ../../meshLibrary/lnInclude/polyMeshGenFaces.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGenCells.H:40,
                 from ../../meshLibrary/lnInclude/polyMeshGen.H:39,
                 from ../../meshLibrary/lnInclude/polyMeshGenModifier.H:40,
                 from generateBoundaryLayers.C:31:
../../meshLibrary/lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16]’:
../../meshLibrary/lnInclude/helperFunctionsTopologyManipulationI.H:491:34:   required from here
../../meshLibrary/lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
  195 |     setSize(l.size());
      |             ~~^~~~
../../meshLibrary/lnInclude/DynListI.H:197:32: error: subscripted value is neither array nor pointer
  197 |         this->operator[](i) = l[i];
      |                               ~^
../../meshLibrary/lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6]’:
../../meshLibrary/lnInclude/helperFunctionsGeometryQueriesI.H:1259:37:   required from here
../../meshLibrary/lnInclude/DynListI.H:195:15: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
  195 |     setSize(l.size());
      |             ~~^~~~
../../meshLibrary/lnInclude/DynListI.H:197:32: error: subscripted value is neither array nor pointer
  197 |         this->operator[](i) = l[i];
      |                               ~^
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/extrudeEdgesInto2DSurface.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/extrudeEdgesInto2DSurface
/usr/bin/ld: Make/linux64GccDPInt64Opt/extrudeEdgesInto2DSurface.o: in function `main':
extrudeEdgesInto2DSurface.C:(.text.startup+0x1a3): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x1b3): undefined reference to `Foam::triSurfaceExtrude2DEdges::triSurfaceExtrude2DEdges(Foam::triSurf const&)'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x1bb): undefined reference to `Foam::triSurfaceExtrude2DEdges::extrudeSurface() const'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x1d2): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x1da): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x213): undefined reference to `Foam::triSurfaceExtrude2DEdges::~triSurfaceExtrude2DEdges()'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x21b): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.startup+0x2b1): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: Make/linux64GccDPInt64Opt/extrudeEdgesInto2DSurface.o: in function `main.cold':
extrudeEdgesInto2DSurface.C:(.text.unlikely+0x1e): undefined reference to `Foam::triSurfaceExtrude2DEdges::~triSurfaceExtrude2DEdges()'
/usr/bin/ld: extrudeEdgesInto2DSurface.C:(.text.unlikely+0x26): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/extrudeEdgesInto2DSurface] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: extrudeEdgesInto2DSurface] Error 2
make: *** Waiting for unfinished jobs....
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/copySurfaceParts.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/copySurfaceParts
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/checkSurfaceMesh.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/checkSurfaceMesh
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/importSurfaceAsSubset.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/importSurfaceAsSubset
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/FLMAToSurface.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FLMAToSurface
/usr/bin/ld: Make/linux64GccDPInt64Opt/copySurfaceParts.o: in function `main':
copySurfaceParts.C:(.text.startup+0x241): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x251): undefined reference to `Foam::triSurfaceCopyParts::triSurfaceCopyParts(Foam::triSurf const&)'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x261): undefined reference to `Foam::triSurf::triSurf()'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x274): undefined reference to `Foam::triSurfaceCopyParts::copySurface(Foam::List<Foam::word> const&, Foam::triSurf&) const'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x27f): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x2b0): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x2b8): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
/usr/bin/ld: copySurfaceParts.C:(.text.startup+0x2c0): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/copySurfaceParts.o: in function `main.cold':
copySurfaceParts.C:(.text.unlikely+0x7): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: copySurfaceParts.C:(.text.unlikely+0xf): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
/usr/bin/ld: copySurfaceParts.C:(.text.unlikely+0x17): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/checkSurfaceMesh.o: in function `main':
checkSurfaceMesh.C:(.text.startup+0x260): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x2a0): undefined reference to `Foam::triSurfaceChecks::calculateBoundingBox(Foam::triSurf const&, Foam::boundBox&)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x43f): undefined reference to `Foam::triSurfaceChecks::checkSurfaceManifolds(Foam::triSurf&, Foam::word)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x541): undefined reference to `Foam::triSurfaceChecks::checkForHoles(Foam::triSurf&, Foam::word)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x603): undefined reference to `Foam::triSurfaceChecks::checkForNonManifoldEdges(Foam::triSurf&, Foam::word)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x6a7): undefined reference to `Foam::triSurfaceChecks::checkDisconnectedParts(Foam::triSurf&, Foam::word)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x754): undefined reference to `Foam::triSurfaceChecks::checkAngles(Foam::triSurf&, Foam::word, double)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x7fe): undefined reference to `Foam::triSurfaceChecks::checkSelfIntersections(Foam::triSurf&, Foam::word, double)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x8bf): undefined reference to `Foam::triSurfaceChecks::checkOverlaps(Foam::triSurf&, Foam::word, double, double)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0x95e): undefined reference to `Foam::triSurfaceChecks::checkCollocatedPoints(Foam::triSurf&, Foam::word, double)'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0xa6c): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: checkSurfaceMesh.C:(.text.startup+0xa95): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/checkSurfaceMesh.o: in function `main.cold':
checkSurfaceMesh.C:(.text.unlikely+0x47): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/copySurfaceParts] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: copySurfaceParts] Error 2
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/checkSurfaceMesh] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: checkSurfaceMesh] Error 2
/usr/bin/ld: Make/linux64GccDPInt64Opt/importSurfaceAsSubset.o: in function `main':
importSurfaceAsSubset.C:(.text.startup+0x1ad): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x1c5): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x1d9): undefined reference to `Foam::triSurfaceImportSurfaceAsSubset::triSurfaceImportSurfaceAsSubset(Foam::triSurf&)'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x288): undefined reference to `Foam::triSurfaceImportSurfaceAsSubset::addSurfaceAsSubset(Foam::triSurf const&, Foam::word const&, double)'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x36d): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x3b1): undefined reference to `Foam::triSurfaceImportSurfaceAsSubset::~triSurfaceImportSurfaceAsSubset()'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x3bb): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x3c3): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.startup+0x432): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: Make/linux64GccDPInt64Opt/importSurfaceAsSubset.o: in function `main.cold':
importSurfaceAsSubset.C:(.text.unlikely+0x12): undefined reference to `Foam::triSurfaceImportSurfaceAsSubset::~triSurfaceImportSurfaceAsSubset()'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.unlikely+0x1c): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: importSurfaceAsSubset.C:(.text.unlikely+0x24): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/FLMAToSurface.o: in function `main':
FLMAToSurface.C:(.text.startup+0x20e): undefined reference to `Foam::triSurf::triSurf()'
/usr/bin/ld: FLMAToSurface.C:(.text.startup+0x223): undefined reference to `Foam::triSurfModifier::triSurfModifier(Foam::triSurf&)'
/usr/bin/ld: FLMAToSurface.C:(.text.startup+0x590): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: FLMAToSurface.C:(.text.startup+0x5d4): undefined reference to `Foam::triSurfModifier::~triSurfModifier()'
/usr/bin/ld: FLMAToSurface.C:(.text.startup+0x5de): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: FLMAToSurface.C:(.text.startup+0x73a): undefined reference to `Foam::triSurfFacets::addFacetSubset(Foam::word const&)'
/usr/bin/ld: Make/linux64GccDPInt64Opt/FLMAToSurface.o: in function `main.cold':
FLMAToSurface.C:(.text.unlikely+0x33): undefined reference to `Foam::triSurfModifier::~triSurfModifier()'
/usr/bin/ld: FLMAToSurface.C:(.text.unlikely+0x3d): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/importSurfaceAsSubset] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: importSurfaceAsSubset] Error 2
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FLMAToSurface] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: FLMAToSurface] Error 2
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/rules/General/transform:35: Make/linux64GccDPInt64Opt/generateBoundaryLayers.o] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: generateBoundaryLayers] Error 2
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/FMSToSurface.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FMSToSurface
/usr/bin/ld: Make/linux64GccDPInt64Opt/FMSToSurface.o: in function `main.cold':
FMSToSurface.C:(.text.unlikely+0xd2): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: FMSToSurface.C:(.text.unlikely+0xdc): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
/usr/bin/ld: FMSToSurface.C:(.text.unlikely+0xf0): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/FMSToSurface.o: in function `main':
FMSToSurface.C:(.text.startup+0x34b): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x356): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x3f9): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x545): undefined reference to `Foam::triSurfaceCopyParts::triSurfaceCopyParts(Foam::triSurf const&)'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x585): undefined reference to `Foam::triSurf::triSurf()'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x5ec): undefined reference to `Foam::triSurfFacets::facetSubsetName(long) const'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x693): undefined reference to `Foam::triSurfaceCopyParts::copySurface(Foam::List<Foam::word> const&, Foam::triSurf&) const'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x8fc): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x967): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: FMSToSurface.C:(.text.startup+0x97f): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FMSToSurface] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: FMSToSurface] Error 2
g++ -std=c++11 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100   -DNoSizeType  -I/opt/openfoam/OpenFOAM-v2206/src/triSurface/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/surfMesh/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/meshTools/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/lib -iquote. -IlnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/opt/openfoam/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt64Opt/FMSToVTK.o -L/opt/openfoam/OpenFOAM-v2206/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FMSToVTK
/usr/bin/ld: Make/linux64GccDPInt64Opt/FMSToVTK.o: in function `main.cold':
FMSToVTK.C:(.text.unlikely+0x949): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: Make/linux64GccDPInt64Opt/FMSToVTK.o: in function `main':
FMSToVTK.C:(.text.startup+0x1cd): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/bin/ld: FMSToVTK.C:(.text.startup+0x13c0): undefined reference to `Foam::triSurf::~triSurf()'
/usr/bin/ld: FMSToVTK.C:(.text.startup+0x17fe): undefined reference to `Foam::triSurfPoints::pointSubsetName(long) const'
/usr/bin/ld: FMSToVTK.C:(.text.startup+0x1c26): undefined reference to `Foam::triSurfFacets::facetSubsetName(long) const'
/usr/bin/ld: FMSToVTK.C:(.text.startup+0x207e): undefined reference to `Foam::triSurfFeatureEdges::edgeSubsetName(long) const'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/general:150: /home/xorinet/OpenFOAM/xorinet-v2206/platforms/linux64GccDPInt64Opt/bin/FMSToVTK] Error 1
make: *** [/opt/openfoam/OpenFOAM-v2206/wmake/makefiles/apps:28: FMSToVTK] Error 2
I have made sure my software is up-to-date, and have compiled OpenFOAM successfully (to the best of my knowledge).

Code: Select all

OS: Arch Linux (XFCE/xfce)
Word size of FreeCAD: 64-bit
Version: 0.21.30832 (Git)
Build type: None
Branch: master
Hash: eeddcfd2aa2d1f28748fee08b83a8242774b6d80
Python 3.10.8, Qt 5.15.7, Coin 4.0.1, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * CfdOF.backup1667597985.941997 1.19.5 (Disabled)
  * CfdOF 1.20.0

Code: Select all

Checking CFD workbench dependencies...
Checking FreeCAD version
Checking for OpenFOAM:
System: Linux
Runtime: Posix
OpenFOAM directory: /opt/openfoam/OpenFOAM-v2206
Running  echo $WM_PROJECT_VERSION
Executing: echo $WM_PROJECT_VERSION in None
CfdConsoleProcess running command: ['bash', '-c', 'source "/opt/openfoam/OpenFOAM-v2206/etc/bashrc" && echo $WM_PROJECT_VERSION']
v2206
Running  wmake -help
Executing: wmake -help in None
CfdConsoleProcess running command: ['bash', '-c', 'source "/opt/openfoam/OpenFOAM-v2206/etc/bashrc" && wmake -help']

Usage: wmake [OPTION] [dir]
       wmake [OPTION] target [dir [MakeDir]]
       wmake -subcommand ...

options:
  -s | -silent      Silent mode (do not echo commands)
  -a | -all         wmake all sub-directories, runs Allwmake if present
  -q | -queue       Collect as single Makefile, runs Allwmake if present
  -k | -keep-going  Keep going even when errors occur (-non-stop)
  -j | -jN | -j N   Compile using all or specified N cores/hyperthreads
  -update           Update lnInclude, dep files, remove deprecated files/dirs
  -pwd              Print root directory containing a Make/ directory
  -version | --version  Print version (same as -show-api)
  -help             Display short help and exit
  -help-full        Display full help and exit

subcommands (wmake subcommand -help for more information):
  -build-info -check-dir -with-bear

General, wrapped make system for multi-platform development.

Some special targets (see -help-full for details):
  all | queue       Same as -all | -queue options
  exe               Executable
  lib libo libso    Libraries (.a .o .so)

Running  cartesianMesh -version
Executing: cartesianMesh -version in None
CfdConsoleProcess running command: ['bash', '-c', 'source "/opt/openfoam/OpenFOAM-v2206/etc/bashrc" && cartesianMesh -version']
Using: OpenFOAM-v2206 (2206) - visit www.openfoam.com
Build: _76d719d1e6-20220624

Invalid option: -version

See 'cartesianMesh -help' for usage

cfMesh (CfdOF version) not found
Running  hisa -version
Executing: hisa -version in None
CfdConsoleProcess running command: ['bash', '-c', 'source "/opt/openfoam/OpenFOAM-v2206/etc/bashrc" && hisa -version']
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2206                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _76d719d1e6-20220624 OPENFOAM=2206 version=v2206
Arch   : "LSB;label=64;scalar=64"
Exec   : hisa -version
Date   : [redacted]
Time   : [redacted]
Host   : [redacted]
PID    : 842561
I/O    : uncollated
Case   : /home/xorinet
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
hisa 1.7.3
Checking for paraview:
Paraview executable: /usr/bin/paraview
Checking Plot module:
Checking for gmsh:
gmsh executable: /usr/bin/gmsh
Running  '/usr/bin/gmsh' -version
Executing: '/usr/bin/gmsh' -version in None
CfdConsoleProcess running command: ['bash', '-c', 'source "/opt/openfoam/OpenFOAM-v2206/etc/bashrc" && \'/usr/bin/gmsh\' -version']
4.10.5-git-fd5fcfe
Completed CFD dependency check
I have tried reinstalling FreeCAD, OpenFOAM, and CfdOF multiple times. I am not sure wherein the issue may lie. How should I proceed from here?

Thank you very much!
Last edited by xorinet on Fri Nov 11, 2022 1:30 am, edited 2 times in total.
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installing cfmesh-cfdof fails with error

Post by oliveroxtoby »

xorinet wrote: Fri Nov 04, 2022 10:08 pm Hello! Recently, I've been getting errors while trying to install cfmesh-cfdof from the FreeCAD Preferences -> CfdOF window:
That is odd. I can only assume it's an issue that comes up with a particular compiler version. Could you report the output of running

Code: Select all

g++ --version
at the command line please?
xorinet
Posts: 3
Joined: Fri Nov 04, 2022 9:45 pm

Re: Installing cfmesh-cfdof fails with error

Post by xorinet »

Here's the output of running the command:

Code: Select all

g++ (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
markrmau
Posts: 37
Joined: Fri Jan 03, 2020 4:03 am

Re: Installing cfmesh-cfdof fails with error

Post by markrmau »

I suspect the issue is to do with setting

WM_LABEL_SIZE=64 in the foam environment.

Regards,
Mark
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installing cfmesh-cfdof fails with error

Post by oliveroxtoby »

xorinet wrote: Sat Nov 05, 2022 3:31 pm Here's the output of running the command:

Code: Select all

g++ (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks. It should be fixed now. It was as @markrmau said - hadn't been tested with the 64 bit label option.
xorinet
Posts: 3
Joined: Fri Nov 04, 2022 9:45 pm

Re: Installing cfmesh-cfdof fails with error

Post by xorinet »

Hi everyone, thank you very much for the help; it works now!
Post Reply