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

exec(wmake, ...) failed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2023, 09:33
Default exec(wmake, ...) failed
  #1
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 8
foadsf is on a distinguished road
I have installed OpenFOAM on WSL2/Ubuntu as described here and here. created a non-root user

Code:
adduser ofuser --disabled-password
passwd -d ofuser
adduser ofuser sudo
logged in as the ofuser

Code:
su - ofuser
and then

Code:
source /usr/share/openfoam/etc/bashrc
export WM_OPTIONS="$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION$WM_COMPILE_OPTION"
gave the user full privilege on the case folder

Code:
sudo chmod 777 <PartentFolder>/*
but when trying to mesh with

Code:
blockMesh -case <CaseFolder> -blockTopology
I get the error message:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:                                        |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : OPENFOAM=1906 patch=191111
Arch   : "LSB;label=32;scalar=64"
Exec   : blockMesh -case <CaseFolder> -blockTopology
Date   : Jan 06 2023
Time   : 14:59:17
Host   : foo-bar
PID    : 720
I/O    : uncollated
Case   : /home/ofuser/<CaseFolder>
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Creating block mesh from "system/blockMeshDict"
Using #calc at line 21 in file "/home/ofuser/<CaseFolder>/system/blockMeshDict"
Using #codeStream with "/home/ofuser/<CaseFolder>/dynamicCode/platforms/GccDPOpt/lib/libcodeStream_0cf83d7552ea205a3d45d9e35cba292a4e0ae9d6.so"
Invoking wmake libso /home/ofuser/<CaseFolder>/dynamicCode/_0cf83d7552ea205a3d45d9e35cba292a4e0ae9d6


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

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

FOAM exiting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigSegv::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libc.so.6
Segmentation fault (core dumped)
you may find the archived version of the case folder in the attachments.

P.S. Funny enough, I had posted a similar issue here, ages ago!
Attached Files
File Type: zip AirBearing.zip (1.9 KB, 1 views)
foadsf is offline   Reply With Quote

Old   January 21, 2024, 03:09
Default
  #2
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 21, 2024, 03:29
Default
  #3
New Member
 
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2
Sjoerd is on a distinguished road
Never mind, it turns out that the Debian package for 2306 does not contain wmake!
Upgraded to 2312 and everything is fine
Sjoerd is offline   Reply With Quote

Old   January 22, 2024, 04:00
Default
  #4
New Member
 
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2
Sjoerd is on a distinguished road
Correction: the solution, in my case, was to install openfoamXXXX-dev.

For some reason, it was automatically installed for 2312, but not for 2306. Adding it solved the problem for me.
Sjoerd is offline   Reply With Quote

Reply

Tags
codestream, fatal error, ubuntu, wmake, wsl2


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
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 15:00
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 09:54
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 17:15.