|
[Sponsors] |
November 8, 2017, 07:42 |
mySolver custom solver
|
#1 |
Member
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8 |
Hallo everyone
Im trying to compile my own solver, which is why i have followed the tutorial from: https://www.youtube.com/watch?v=MiUDCOhbQaM which shows the basic steps, i tried to follow the steps but kept getting the same error: (Im running OpenFOAM on ununtu on bash on windows.) This error is comes from "wmake" on a mint pimpleDyMFoam Code:
Making dependency list for source file pimpleDyMFoam.C g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I. -I.. -I/opt/OpenFOAM/OpenFOAM-v1706/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/transportModels -I/opt/OpenFOAM/OpenFOAM-v1706/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/OpenFOAM/OpenFOAM-v1706/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/dynamicFvMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude -fPIC -c pimpleDyMFoam.C -o Make/linux64Gcc63DPInt32Opt/pimpleDyMFoam.o In file included from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/scalar.H:39:0, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/IOstream.H:49, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/Ostream.H:39, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/OSstream.H:39, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/messageStream.H:216, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/error.H:51, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UListI.H:26, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UList.H:462, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/List.H:43, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/labelList.H:48, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/UPstream.H:42, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/Pstream.H:42, from /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/parRun.H:35, from /opt/OpenFOAM/OpenFOAM-v1706/src/finiteVolume/lnInclude/fvCFD.H:4, from pimpleDyMFoam.C:38: /opt/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Ulovlig instruktion (SIGILL) static const floatScalar floatScalarGREAT = 1.0e+6; ^~~~~~ 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-v1706/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/pimpleDyMFoam.o' failed make: *** [Make/linux64Gcc63DPInt32Opt/pimpleDyMFoam.o] Error 1 |
|
November 8, 2017, 08:57 |
|
#2 |
Senior Member
|
Hi,
The error is... Code:
internal compiler error: Ulovlig instruktion (SIGILL) Code:
SIGILL 4 Core Illegal Instruction Can you compile anything at all (say simple Hello, world code) in this virtual machine? |
|
November 8, 2017, 09:23 |
|
#3 |
Member
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8 |
hi alexeym
Code:
Can you compile anything at all (say simple Hello, world code) in this virtual machine? https://www.developerinsider.in/comp...on-windows-10/ and successfully printed: Code:
hello world! |
|
November 8, 2017, 14:12 |
|
#4 |
Senior Member
|
I think there is certain misunderstanding of what is happening.
There is Ubuntu on your Windows 10. You can use g++ there (btw what is output of "g++ --version"?). There is OpenFOAM+ "installation" which is Docker image with separate Linux installation (it should be something CentOS-like). Though, it is just a guess, "/home/pgh" suggests, the guess can be correct. Could you try to compile hello world example inside the virtual machine? One the other hand, you can correct title of your post to "[OpenFOAM+][1706][Windows 10] SIGILL during compilation of custom solver" and wait for people from ESI to come and resolve your problem. Also, you can post the message on develop.openfoam.com instead of cfd-online.com. |
|
November 8, 2017, 16:45 |
[OpenFOAM+][1706][Windows 10] SIGILL during compilation of custom solver
|
#5 | |
Member
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8 |
Yes there is "ubuntu on bash on windows" on my computer. I have posted a link for it's description:
https://msdn.microsoft.com/en-us/com...or=-2147217396 g++ version is :"g++ (OpenFOAM) 6.3.0" I compile the HelloWorld inside the "ubuntu on bash on window" Virtual maschine, which succeded. have reposted the issue as a snippet on: https://develop.openfoam.com/snippets/11 can you expand a bit on what this means: Quote:
- Fridrik Magnusson |
||
November 9, 2017, 03:09 |
|
#6 |
Senior Member
|
Oh, I was not aware, they distribute "native" Windows build.
Since binaries, you have installed, were produced by some ESI internal process, you have to wait for comments from them. |
|
December 8, 2017, 14:51 |
|
#7 |
New Member
Reid Shaffer
Join Date: Dec 2017
Posts: 2
Rep Power: 0 |
Fridrik, Did you ever find a solution to this problem? I am seeing the same thing.
|
|
December 11, 2017, 02:58 |
|
#8 | |
Member
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8 |
Quote:
|
||
January 1, 2018, 19:04 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Please open a bug report at http://develop.openfoam.com - and please post here the answer you get there, so that others can find out the answer.
__________________
|
|
Tags |
bash on ubuntu on windows, mysolver |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 07:54 |
Problem with compiling the custom solver evapVOFHardt | lukasz0004 | OpenFOAM Programming & Development | 6 | March 13, 2016 14:04 |
Problems with running a custom solver: "Unknown psiCombustionModel" | AlexKam | OpenFOAM Programming & Development | 25 | November 23, 2015 20:51 |
Custom derivative method in ODE solver. | l_r_mcglashan | OpenFOAM | 1 | January 27, 2011 23:12 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 14:08 |