View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003034 | OpenFOAM | Bug | public | 2018-08-08 04:02 | 2018-08-24 12:42 |
Reporter | SamMallinson | Assigned To | chris | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | windows | OS | Ubuntu | OS Version | 18.04 |
Summary | 0003034: Cannot run tutorials which use #calc | ||||
Description | Installed OF-6 on Windows, as per https://openfoam.org/download/windows-10/ (although I actually followed the latest instructions for setting up WSL - https://docs.microsoft.com/en-gb/windows/wsl/install-win10) Successfully rang pitzDaily tutorial. Tried running pipeCyclic tutorial, got the following error during blockMesh: Creating block mesh from "/home/samuel/projects/test/pipeCyclic/system/blockMeshDict" Using #calcEntry at line 26 in file "/home/samuel/projects/test/pipeCyclic/system/blockMeshDict" Using #codeStream with "/home/samuel/projects/test/pipeCyclic/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libcodeStream_9f0331af3df6a7cc6ee98d1c4223d443c63f0773.so" Creating new library in "dynamicCode/_9f0331af3df6a7cc6ee98d1c4223d443c63f0773/platforms/linux64GccDPInt32Opt/lib/libcodeStream_9f0331af3df6a7cc6ee98d1c4223d443c63f0773.so" Invoking "wmake -s libso /home/samuel/projects/test/pipeCyclic/dynamicCode/_9f0331af3df6a7cc6ee98d1c4223d443c63f0773" wmake libso /home/samuel/projects/test/pipeCyclic/dynamicCode/_9f0331af3df6a7cc6ee98d1c4223d443c63f0773 /opt/openfoam6/wmake/wmake: line 410: make: command not found /opt/openfoam6/wmake/wmake: line 413: make: command not found wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/samuel/projects/test/pipeCyclic/dynamicCode/_9f0331af3df6a7cc6ee98d1c4223d443c63f0773 --> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_9f0331af3df6a7cc6ee98d1c4223d443c63f0773/platforms/linux64GccDPInt32Opt/lib/libcodeStream_9f0331af3df6a7cc6ee98d1c4223d443c63f0773.so" file: /home/samuel/projects/test/pipeCyclic/system/blockMeshDict from line 17 to line 23. From function static void (* Foam::functionEntries::codeStream::getFunction(const Foam::dictionary&, const Foam::dictionary&))(Foam::Ostream&, const Foam::dictionary&) in file db/dictionary/functionEntries/codeStream/codeStream.C at line 218. FOAM exiting === Ran other cases which use #calc and got the same error. | ||||
Steps To Reproduce | Install OF-6 on Windows. Copy simpleFoam/pipeCyclic tutorial to working directory. ./Allrun | ||||
Additional Information | Have not encountered this error with OF-6 on other linux distros. | ||||
Tags | #calc, OpenFOAM-6, Windows-10 | ||||
|
The #calc functionality needs to be able to compile some code which requires a working build environment. I guess that by default, WSL does not include such packages. From https://openfoam.org/download/source/software-for-compilation/ the following command should install all packages for the build environment: "sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev" Of these at least the build-essential -package is needed for make. |
|
@Chris: I believe the minimum changes needed so far in the page https://openfoam.org/download/windows-10/ are as follows: 1. In the section "Installing OpenFOAM", update from OpenFOAM 5 to 6 or simply point to a category of Ubuntu packs? 2. Also in the section "Installing OpenFOAM", add a link to https://openfoam.org/download/source/software-for-compilation/ - as pointed out by tniemi. Beyond this: - I'm not sure if the section "Install Windows 10 Anniversary Update" is still needed. - As for section "Activate Windows Subsystem for Linux", the link provided in the original report can be added as an alternative, namely https://docs.microsoft.com/en-gb/windows/wsl/install-win10 |
|
Thanks tniemi! I can confirm that this worked for me on WSL/Ubunt1804. Cheers, Sam |
|
@wyldckat, @tniemi: Did a bit of an overhaul of the page, according to your suggestions: https://openfoam.org/download/windows-10/ I prefer the option suggested by @tniemi of just installing build-essential. The packaged version is not intended for a full compilation of source, but is clearly meant to support compilation of add-on applications and libraries, on-the-fly compiled code, etc build-essential includes g++, gcc and make. g++ is a dependency on the openfoam pack itself, and I think gcc is a dependency of g++. My suspicion is that only "make" is missing, which we should probably just add as a dependency of the openfoam pack. |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-08-08 04:02 | SamMallinson | New Issue | |
2018-08-08 04:02 | SamMallinson | Tag Attached: #calc | |
2018-08-08 04:02 | SamMallinson | Tag Attached: OpenFOAM-6 | |
2018-08-08 04:02 | SamMallinson | Tag Attached: Windows-10 | |
2018-08-08 13:04 | tniemi | Note Added: 0009922 | |
2018-08-08 22:01 | wyldckat | Assigned To | => chris |
2018-08-08 22:01 | wyldckat | Status | new => assigned |
2018-08-08 22:10 | wyldckat | Note Added: 0009933 | |
2018-08-09 06:41 | SamMallinson | Note Added: 0009937 | |
2018-08-23 10:18 | chris | Note Added: 0009992 | |
2018-08-24 12:42 | chris | Status | assigned => closed |
2018-08-24 12:42 | chris | Resolution | open => fixed |