[SOLVED) ]cfMesh : Install finished with error 2

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

herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

[SOLVED) ]cfMesh : Install finished with error 2

Post by herbk »

Hi,
i try to install cfMesh (since 2 days now), but the install fails with "error 2".

Here first my FC Infos :

OS: openSUSE Leap 15.3 (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.20.25176 (Git) AppImage
Build type: Release
Branch: master
Hash: 909dfa7036f9fd36bbd3acee2a5dee161d2819fb
Python version: 3.9.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)

Path to Openfoam and gmsh is checket, - don't remember how often... ;)
Installed Version of Openfoam is 2006 from OpenSuse Repo, i try'd also with 2012 and 1912 with the same result.
GMSH is Version 4.8.3 and i can write to the Openfoam folders..

If i start cfMesh installation, it runs for a few minutes (about 5), then it "finished with error 2".

Here the messages from Output Panel, last lines only, because i got to much charakters...

Code: Select all

13:37:44  Completed CFD dependency check
13:38:35  Running  echo $WM_PROJECT_USER_DIR

snipp...

collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FLMAToSurface] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: FLMAToSurface] Fehler 2
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/checkSurfaceMesh.o: in function `main':
checkSurfaceMesh.C:(.text.startup+0x2b3): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x320): undefined reference to `Foam::triSurfaceChecks::calculateBoundingBox(Foam::triSurf const&, Foam::boundBox&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x4b1): undefined reference to `Foam::triSurfaceChecks::checkSurfaceManifolds(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x5a1): undefined reference to `Foam::triSurfaceChecks::checkForHoles(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x65d): undefined reference to `Foam::triSurfaceChecks::checkForNonManifoldEdges(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x6fb): undefined reference to `Foam::triSurfaceChecks::checkDisconnectedParts(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x7a2): undefined reference to `Foam::triSurfaceChecks::checkAngles(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x846): undefined reference to `Foam::triSurfaceChecks::checkSelfIntersections(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x901): undefined reference to `Foam::triSurfaceChecks::checkOverlaps(Foam::triSurf&, Foam::word, double, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x998): undefined reference to `Foam::triSurfaceChecks::checkCollocatedPoints(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xa9f): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xac6): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xfe9): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: checkSurfaceMesh] Fehler 2
13:39:31  g++ -std=c++14 -m64 -pthread -DOPENFOAM=2106 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas  -O3  -DNoRepository -ftemplate-depth-100 -DOpenCFDSpecific -DFOAM_VERSION_1912 -DFOAM_VERSION_1906 -DNoSizeType  -I/usr/lib/openfoam/openfoam2106/src/triSurface/lnInclude -I/usr/lib/openfoam/openfoam2106/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2106/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2106/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2106/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/lib -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2106/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2106/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt32Opt/FMSToSurface.o -L/usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FMSToSurface
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/FMSToSurface.o: in function `main':
FMSToSurface.C:(.text.startup+0x39f): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x3ac): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x44b): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x5b2): undefined reference to `Foam::triSurfaceCopyParts::triSurfaceCopyParts(Foam::triSurf const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x604): undefined reference to `Foam::triSurf::triSurf()'
13:39:32  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x672): undefined reference to `Foam::triSurfFacets::facetSubsetName(int) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x710): undefined reference to `Foam::triSurfaceCopyParts::copySurface(Foam::List<Foam::word> const&, Foam::triSurf&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x942): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x9bc): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x9e2): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x123c): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x12ed): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x12f7): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FMSToSurface] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: FMSToSurface] Fehler 2
Some idea where i can look at ?
Last edited by herbk on Thu Jul 15, 2021 1:25 pm, edited 1 time in total.
Gruß Herbert
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: cfMesh : Install finished with error 2

Post by oliveroxtoby »

herbk wrote: Fri Jul 09, 2021 12:25 pm Hi,
i try to install cfMesh (since 2 days now), but the install fails with "error 2".

Here first my FC Infos :

OS: openSUSE Leap 15.3 (KDE//usr/share/xsessions/plasma5)
Word size of FreeCAD: 64-bit
Version: 0.20.25176 (Git) AppImage
Build type: Release
Branch: master
Hash: 909dfa7036f9fd36bbd3acee2a5dee161d2819fb
Python version: 3.9.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)

Path to Openfoam and gmsh is checket, - don't remember how often... ;)
Installed Version of Openfoam is 2006 from OpenSuse Repo, i try'd also with 2012 and 1912 with the same result.
GMSH is Version 4.8.3 and i can write to the Openfoam folders..

If i start cfMesh installation, it runs for a few minutes (about 5), then it "finished with error 2".

Here the messages from Output Panel, last lines only, because i got to much charakters...

Code: Select all

13:37:44  Completed CFD dependency check
13:38:35  Running  echo $WM_PROJECT_USER_DIR

snipp...

collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FLMAToSurface] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: FLMAToSurface] Fehler 2
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/checkSurfaceMesh.o: in function `main':
checkSurfaceMesh.C:(.text.startup+0x2b3): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x320): undefined reference to `Foam::triSurfaceChecks::calculateBoundingBox(Foam::triSurf const&, Foam::boundBox&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x4b1): undefined reference to `Foam::triSurfaceChecks::checkSurfaceManifolds(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x5a1): undefined reference to `Foam::triSurfaceChecks::checkForHoles(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x65d): undefined reference to `Foam::triSurfaceChecks::checkForNonManifoldEdges(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x6fb): undefined reference to `Foam::triSurfaceChecks::checkDisconnectedParts(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x7a2): undefined reference to `Foam::triSurfaceChecks::checkAngles(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x846): undefined reference to `Foam::triSurfaceChecks::checkSelfIntersections(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x901): undefined reference to `Foam::triSurfaceChecks::checkOverlaps(Foam::triSurf&, Foam::word, double, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x998): undefined reference to `Foam::triSurfaceChecks::checkCollocatedPoints(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xa9f): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xac6): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xfe9): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: checkSurfaceMesh] Fehler 2
13:39:31  g++ -std=c++14 -m64 -pthread -DOPENFOAM=2106 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas  -O3  -DNoRepository -ftemplate-depth-100 -DOpenCFDSpecific -DFOAM_VERSION_1912 -DFOAM_VERSION_1906 -DNoSizeType  -I/usr/lib/openfoam/openfoam2106/src/triSurface/lnInclude -I/usr/lib/openfoam/openfoam2106/src/surfMesh/lnInclude -I/usr/lib/openfoam/openfoam2106/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2106/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2106/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/lib -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2106/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2106/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed  Make/linux64GccDPInt32Opt/FMSToSurface.o -L/usr/lib/openfoam/openfoam2106/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -lsurfMesh -lmeshLibrary -lOpenFOAM -ldl  \
     -lm -o /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FMSToSurface
13:39:31  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/FMSToSurface.o: in function `main':
FMSToSurface.C:(.text.startup+0x39f): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x3ac): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x44b): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x5b2): undefined reference to `Foam::triSurfaceCopyParts::triSurfaceCopyParts(Foam::triSurf const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x604): undefined reference to `Foam::triSurf::triSurf()'
13:39:32  /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x672): undefined reference to `Foam::triSurfFacets::facetSubsetName(int) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x710): undefined reference to `Foam::triSurfaceCopyParts::copySurface(Foam::List<Foam::word> const&, Foam::triSurf&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x942): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x9bc): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x9e2): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x123c): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x12ed): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: FMSToSurface.C:(.text.startup+0x12f7): undefined reference to `Foam::triSurfaceCopyParts::~triSurfaceCopyParts()'
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/general:150: /home/herbk/OpenFOAM/herbk-2106/platforms/linux64GccDPInt32Opt/bin/FMSToSurface] Fehler 1
make: *** [/usr/lib/openfoam/openfoam2106/wmake/makefiles/apps:29: FMSToSurface] Fehler 2
Some idea where i can look at ?
From the output it looks like you are compiling with OpenFOAM version 2106. This has only just been released and I haven't tested it yet. Are you sure that you have the same error with v2012?
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

A bit different at OpenSuse Tumbleweed, here the install of cfMesh breakes after e few secounds with error 127.

Running the dependeny checker i get a error message

Code: Select all

21:34:05  /usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
Running install cfMesh ends with:

Code: Select all

22:01:23  Running  export WM_NCOMPPROCS=`nproc`; ./Allwmake  ->  log.Allwmake
22:01:23  Raw command:  ['bash', '-c', 'source "/usr/lib/openfoam/openfoam2012/etc/bashrc" && cd "$WM_PROJECT_USER_DIR/cfmesh-cfdof" && { rm log.Allwmake; export WM_NCOMPPROCS=`nproc`; ./Allwmake 1> >(tee -a log.Allwmake) 2> >(tee -a log.Allwmake >&2); }']
[color=#FF0000]22:01:23  /usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
22:01:24  rm: das Entfernen von 'log.Allwmake' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
22:01:24  ./Allwmake: Zeile 3: wmake: Kommando nicht gefunden.
22:01:24  ./Allwmake: Zeile 6: wmake: Kommando nicht gefunden.
./Allwmake: Zeile 9: wmake: Kommando nicht gefunden.
[/color]
For me it looks like the installing process stops at the same error as it is shown at the dependency check.
Gruß Herbert
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

Hi Oliver,
oliveroxtoby wrote: Fri Jul 09, 2021 8:32 pm From the output it looks like you are compiling with OpenFOAM version 2106. This has only just been released and I haven't tested it yet. Are you sure that you have the same error with v2012?
i did not have in mind each line, but yes, i'm in mind it's the same output.
ATM i'm at OpenSuse Tumbleweed, so i can't check back directly... Here are Probs to, but different...
Gruß Herbert
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: cfMesh : Install finished with error 2

Post by oliveroxtoby »

herbk wrote: Fri Jul 09, 2021 8:42 pm A bit different at OpenSuse Tumbleweed, here the install of cfMesh breakes after e few secounds with error 127.

Running the dependeny checker i get a error message

Code: Select all

21:34:05  /usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
Running install cfMesh ends with:

Code: Select all

22:01:23  Running  export WM_NCOMPPROCS=`nproc`; ./Allwmake  ->  log.Allwmake
22:01:23  Raw command:  ['bash', '-c', 'source "/usr/lib/openfoam/openfoam2012/etc/bashrc" && cd "$WM_PROJECT_USER_DIR/cfmesh-cfdof" && { rm log.Allwmake; export WM_NCOMPPROCS=`nproc`; ./Allwmake 1> >(tee -a log.Allwmake) 2> >(tee -a log.Allwmake >&2); }']
[color=#FF0000]22:01:23  /usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
22:01:24  rm: das Entfernen von 'log.Allwmake' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
22:01:24  ./Allwmake: Zeile 3: wmake: Kommando nicht gefunden.
22:01:24  ./Allwmake: Zeile 6: wmake: Kommando nicht gefunden.
./Allwmake: Zeile 9: wmake: Kommando nicht gefunden.
[/color]
For me it looks like the installing process stops at the same error as it is shown at the dependency check.
It looks as if you might not have MPI installed. I would urge you to make sure your openfoam installation is working by following the help on the openfoam.com website and other resources if necessary, before trying it with CfdOF.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

MPI is installed, also mpi selector, OK i'l try if OpenFoam works
Gruß Herbert
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: cfMesh : Install finished with error 2

Post by oliveroxtoby »

herbk wrote: Fri Jul 09, 2021 8:52 pm MPI is installed, also mpi selector, OK i'l try if OpenFoam works
I suspect it might be the same as this issue: https://github.com/jaheyns/CfdOF/issues/45
It looks like some of the system-supplied openfoam packages do not expect to have their bashrc sourced and do not include the wmake build system, which is needed for cfMesh and hisa support. For now I would try installing one of the packages from the openfoam website instead.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

yes, it looks like it is the same thing, - i get also a "command not found" message if i call simpleFoam

OpenSuse installs OpenFoam to this directory : /usr/lib/openfoam/openfoam2012, the folder openfoam2012 contends a folder wmake, openfoam2006 dos not.
Gruß Herbert
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

One Note:

What we are talking about at the last post is something and affects only Tumbleweed !
It is different to my first post, which describes the behavior at LEAP 15.3, - may be it wold better to split it to differen Threads ?

At LEAP i don't get the error message

Code: Select all

/usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
but get also a "file not found error" if i call simpleFoam...

So may be mpi works at Leap and at Tumbleweed also not...

Edit:
could it be a problem that there is a selctor in front of MPI and OpenFoam at newer distris ?

Edit Edit :

i took a look at the bashrc file and found a line

Code: Select all

export WM_LABEL_SIZE=32
could it be that OpenFoam needs some 32 bit packages ?


Edit Edit Edit :
I installed the 32 bit packages for openmpi (opensuse installs about 20 packages more to solve dependecys).
If i run the Dependency Cheker at cfdOF Setup, i don't get the

Code: Select all

/usr/lib/openfoam/openfoam2012/etc/config.sh/mpi: Zeile 79: mpicc: Kommando nicht gefunden.
error at Tumbleweed to.
may be one step...
If i run simpleFoam i get a different message now

Code: Select all

simpleFoam: error while loading shared libraries: libmpi.so.12: cannot open shared object file: No such file or directory
libmpi.so.12 is part of openmpi1, openmpi1-32 and mpich, which are installed..

trying to install cfMesh now it results at the same error 2 like at LEAP 15.3
Gruß Herbert
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: cfMesh : Install finished with error 2

Post by herbk »

OK, some more findings:

run the Dependecy Checker shows an new error now:

Code: Select all

cartesianMesh: error while loading shared libraries: libmpi.so.12: wrong ELF class: ELFCLASS32
[/color]
If i run simpleFoam at a regular user terminal i get the message:

Code: Select all

libmpi.so.12: cannot open shared object file: No such file or directory
if i run simpleFoam at a root terminal i get

Code: Select all

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2012                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _3b29395a-20210618 OPENFOAM=2012 patch=210618
Arch   : "LSB;label=32;scalar=64"
Exec   : simpleFoam
Date   : Jul 10 2021
Time   : 17:43:48
Host   : p200300ec574cb2ade284eddefae76209.dip0.t-ipconnect.de
PID    : 28250
I/O    : uncollated
Case   : /root
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

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR: (openfoam-2012 patch=210618)
cannot find file "/root/system/controlDict"

    From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
    in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 547.

FOAM exiting
The FOAM FATAL ERROR is to ignore i think, because there is no case...

It looks like there is a permisson problem again, but i don't have an idea where to look at... the whole OpenFoam folder i set to rw for all and give the same rights to the mpi folders don't change anything.
Gruß Herbert
Post Reply