blockMesh do not work properly when using OF WSL installation
- Install openfoam windows 10 native, following official instructions.
- Copy pipeCylic tutorial.
- Run ./Allrun. Not expected: all commands are executed quickly but no results are generated.
- Run blockMesh manually. Not expected: error
krzychu@DESKTOP:/mnt/c/Users/Krzysiek/open/pipeCylic$ blockMesh
/---------------------------------------------------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: v1806 |
| \ / A nd | Web: www.OpenFOAM.com |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
Build : v1806
Arch : "LSB;label=32;scalar=64"
Exec : blockMesh
Date : Oct 25 2018
Time : 13:57:03
Host : "DESKTOP"
PID : 2290
I/O : uncollated
Case : /mnt/c/Users/Krzysiek/open/pipeCylic
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 "/mnt/c/Users/Krzysiek/open/pipeCylic/system/blockMeshDict" Using #calc at line 26 in file "/mnt/c/Users/Krzysiek/open/pipeCylic/system/blockMeshDict" Using #codeStream with "/mnt/c/Users/Krzysiek/open/pipeCylic/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6256a.so" Creating new library in "dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6256a.so" Invoking wmake libso /mnt/c/Users/Krzysiek/open/pipeCylic/dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a wmake libso /mnt/c/Users/Krzysiek/open/pipeCylic/dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a ln: ./lnInclude dep: codeStreamTemplate.C Ctoo: codeStreamTemplate.C In file included from /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/bits/uniform_int_dist.h:35:0, from /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/bits/stl_algo.h:66, from /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/algorithm:62, from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/keyTypeI.H:26, from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/keyType.H:178, from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/entry.H:44, from /opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude/dictionary.H:88, from codeStreamTemplate.C:29: /opt/OpenFOAM/ThirdParty-v1806/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/limits:1601:7: internal compiler error: Illegal instruction max() _GLIBCXX_USE_NOEXCEPT { return FLT_MAX; } ^~~ 0xac5ddf crash_signal /home/pgh/OpenFOAM/ThirdParty-1706/gcc-6.3.0/gcc/toplev.c:333 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See http://gcc.gnu.org/bugs.html for instructions. /opt/OpenFOAM/OpenFOAM-v1806/wmake/rules/General/transform:34: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1
--> FOAM FATAL IO ERROR: Failed wmake "dynamicCode/_2c1a7ee7b5369acae9da148f9823fdd8cde6256a/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_2c1a7ee7b5369acae9da148f9823fdd8cde6256a.so"
file: /mnt/c/Users/Krzysiek/open/pipeCylic/system/blockMeshDict
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 220.
FOAM exiting
## Reattaching the author to the issue ticket: @Krzysiek111 ##