|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 9 ![]() |
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 Code:
su - ofuser Code:
source /usr/share/openfoam/etc/bashrc export WM_OPTIONS="$WM_ARCH$WM_COMPILER$WM_PRECISION_OPTION$WM_LABEL_OPTION$WM_COMPILE_OPTION" Code:
sudo chmod 777 <PartentFolder>/* Code:
blockMesh -case <CaseFolder> -blockTopology 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) P.S. Funny enough, I had posted a similar issue here, ages ago! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2 ![]() |
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!!! |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2 ![]() |
Never mind, it turns out that the Debian package for 2306 does not contain wmake!
Upgraded to 2312 and everything is fine |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Sjoerd van der Veen
Join Date: Jan 2024
Posts: 5
Rep Power: 2 ![]() |
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. |
|
![]() |
![]() |
![]() |
Tags |
codestream, fatal error, ubuntu, wmake, wsl2 |
|
|
![]() |
||||
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 04:35 |
Initial conditions for uniform flow | andreas | OpenFOAM | 5 | November 16, 2012 16:00 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 10:54 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |