CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] FOAM Fatal Error wmake failed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2022, 06:34
Exclamation FOAM Fatal Error wmake failed
  #1
New Member
 
Max Vorstadt
Join Date: May 2016
Posts: 28
Rep Power: 10
jet_engine is on a distinguished road
Hi, I was trying to run a case with buoyantBoussinesqSimpleFoam and it kept giving me the following error:


Code:
Reading thermophysical properties

Reading field T

Using dynamicCode for patch slipWall on field T at line 44 in "/home/username/Downloads/case_name/0/T.boundaryField.slipWall"
Could not load "/home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so"
/home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so: cannot open shared object file: No such file or directory
Creating new library in "dynamicCode/customSlipWall/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so"
Invoking wmake libso /home/username/Downloads/case_name/dynamicCode/customSlipWall


--> FOAM FATAL ERROR: (openfoam-2112)
exec(wmake, ...) failed

    From int Foam::system(const Foam::CStringList&, bool)
    in file POSIX.C at line 1638.

FOAM exiting


error::stream() : error stream has failed


�%�MV(openfoam-2112)


    From void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
    in file db/dynamicLibrary/codedBase/codedBase.C at line 240.

FOAM aborting
I've been checking the forum to see if anyone had a similar issue. Here's the list of things I've tried so far:
  1. Installing make (sudo apt-get install make)
  2. Installing gcc (sudo apt-get install gcc)
  3. Adding the following lines to the bashrc file: . /usr/lib/openfoam/openfoam2112/etc/bashrc and source /usr/lib/openfoam/openfoam2112/etc/bashrc
  4. sudo apt install build-essential flex bison
  5. Installing the complete version of openfoam v2112 from the repo
And nothing has worked so far. Does anyone know what may be causing this issue? I can run other solvers but for some reason it won't let me run buoyantBoussinesqSimpleFoam.


Thanks in advance!


Oh and btw here's the bit of the 0/T file where it crashes:
Code:
slipWall
    {
        type            codedFixedValue;
        value          uniform 0;
        name          customSlipWall;
   
        code
        #{
            scalarField& field = *this; 
            scalar Twall  = 1;
            scalar lambda = 0.01;
            scalar sigma  = 1;
            scalar Pr     = 0.71;
            scalar gamma  = 1.4;
            scalar rlx    = 0.95;

            // DT/dn
            scalarField gradient = this->snGrad();

            field = rlx*(*this) + (1-rlx)*(Twall - lambda/Pr*(2-sigma)/sigma*2*gamma/(gamma+1)*gradient);
        #};         

        codeOptions
        #{
                -I$(LIB_SRC)/finiteVolume/lnInclude \
                -I$(LIB_SRC)/meshTools/lnInclude
        #};

        codeInclude
        #{
            #include "fvCFD.H"
            #include <cmath>
            #include <iostream>
        #};
    }
Line 44 is: name customSlipWall;
jet_engine is offline   Reply With Quote

Old   March 30, 2022, 03:52
Default
  #2
New Member
 
陈玮
Join Date: Mar 2022
Posts: 10
Rep Power: 4
duanwuCHEN is on a distinguished road
Quote:
Originally Posted by jet_engine View Post
Hi, I was trying to run a case with buoyantBoussinesqSimpleFoam and it kept giving me the following error:


Code:
Reading thermophysical properties

Reading field T

Using dynamicCode for patch slipWall on field T at line 44 in "/home/username/Downloads/case_name/0/T.boundaryField.slipWall"
Could not load "/home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so"
/home/username/Downloads/case_name/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so: cannot open shared object file: No such file or directory
Creating new library in "dynamicCode/customSlipWall/platforms/linux64GccDPInt32Opt/lib/libcustomSlipWall_f1f1ebc50acbbc2a63e2b97341909b084905be35.so"
Invoking wmake libso /home/username/Downloads/case_name/dynamicCode/customSlipWall


--> FOAM FATAL ERROR: (openfoam-2112)
exec(wmake, ...) failed

    From int Foam::system(const Foam::CStringList&, bool)
    in file POSIX.C at line 1638.

FOAM exiting


error::stream() : error stream has failed


�%�MV(openfoam-2112)


    From void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
    in file db/dynamicLibrary/codedBase/codedBase.C at line 240.

FOAM aborting
I've been checking the forum to see if anyone had a similar issue. Here's the list of things I've tried so far:
  1. Installing make (sudo apt-get install make)
  2. Installing gcc (sudo apt-get install gcc)
  3. Adding the following lines to the bashrc file: . /usr/lib/openfoam/openfoam2112/etc/bashrc and source /usr/lib/openfoam/openfoam2112/etc/bashrc
  4. sudo apt install build-essential flex bison
  5. Installing the complete version of openfoam v2112 from the repo
And nothing has worked so far. Does anyone know what may be causing this issue? I can run other solvers but for some reason it won't let me run buoyantBoussinesqSimpleFoam.


Thanks in advance!


Oh and btw here's the bit of the 0/T file where it crashes:
Code:
slipWall
    {
        type            codedFixedValue;
        value          uniform 0;
        name          customSlipWall;
   
        code
        #{
            scalarField& field = *this; 
            scalar Twall  = 1;
            scalar lambda = 0.01;
            scalar sigma  = 1;
            scalar Pr     = 0.71;
            scalar gamma  = 1.4;
            scalar rlx    = 0.95;

            // DT/dn
            scalarField gradient = this->snGrad();

            field = rlx*(*this) + (1-rlx)*(Twall - lambda/Pr*(2-sigma)/sigma*2*gamma/(gamma+1)*gradient);
        #};         

        codeOptions
        #{
                -I$(LIB_SRC)/finiteVolume/lnInclude \
                -I$(LIB_SRC)/meshTools/lnInclude
        #};

        codeInclude
        #{
            #include "fvCFD.H"
            #include <cmath>
            #include <iostream>
        #};
    }
Line 44 is: name customSlipWall;
I've also get a similar problem, when I try to use inline calculation in blockMeshDict.
duanwuCHEN is offline   Reply With Quote

Old   January 21, 2024, 03:08
Default
  #3
New Member
 
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2
Sjoerd is on a distinguished road
Hi,


I have found several posts on this forum about the error:


'FOAM FATAL ERROR: exec(wmake, ...) failed'


They are always unsolved (apart for the more or less trivial ones, where the user just forgot to install 'make'. The cases where the user did install all prerequisites remain unsolved.)


Did anyone ever solve it?


Thanks!!!
Sjoerd is offline   Reply With Quote

Old   January 22, 2024, 03:59
Default
  #4
New Member
 
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2
Sjoerd is on a distinguished road
The solution, in my case, was to install the openfoamXXXX-dev package from the repo
Sjoerd is offline   Reply With Quote

Reply

Tags
error, fatal error, make, openfoam, wmake


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 03:35
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 02:56
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 08:17.