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

mySolver custom solver

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2017, 07:42
Default mySolver custom solver
  #1
Member
 
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8
Fridrik is on a distinguished road
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
- Fridrik Magnusson
Fridrik is offline   Reply With Quote

Old   November 8, 2017, 08:57
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

The error is...

Code:
internal compiler error: Ulovlig instruktion (SIGILL)
http://man7.org/linux/man-pages/man7/signal.7.html
Code:
SIGILL        4       Core    Illegal Instruction
Since you run OpenFOAM+ inside virtual machine under Windows, the real reason can be anywhere.

Can you compile anything at all (say simple Hello, world code) in this virtual machine?
alexeym is offline   Reply With Quote

Old   November 8, 2017, 09:23
Default
  #3
Member
 
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8
Fridrik is on a distinguished road
hi alexeym

Code:
Can you compile anything at all (say simple Hello, world code) in this virtual machine?
yes i can, just did this one:
https://www.developerinsider.in/comp...on-windows-10/

and successfully printed:
Code:
hello world!
Fridrik is offline   Reply With Quote

Old   November 8, 2017, 14:12
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.
alexeym is offline   Reply With Quote

Old   November 8, 2017, 16:45
Default [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
Fridrik is on a distinguished road
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:
There is OpenFOAM+ "installation" which is Docker image with separate Linux installation (it should be something CentOS-like)
And thanks a lot for taking time to help me on this issue alex

- Fridrik Magnusson
Fridrik is offline   Reply With Quote

Old   November 9, 2017, 03:09
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.
Fridrik likes this.
alexeym is offline   Reply With Quote

Old   December 8, 2017, 14:51
Default
  #7
New Member
 
Reid Shaffer
Join Date: Dec 2017
Posts: 2
Rep Power: 0
Reid.d.Shaffer is on a distinguished road
Fridrik, Did you ever find a solution to this problem? I am seeing the same thing.
Reid.d.Shaffer is offline   Reply With Quote

Old   December 11, 2017, 02:58
Default
  #8
Member
 
Fridrik Magnusson
Join Date: Aug 2017
Location: Denmark
Posts: 34
Rep Power: 8
Fridrik is on a distinguished road
Quote:
Fridrik, Did you ever find a solution to this problem? I am seeing the same thing.
Nope, not yet
Fridrik is offline   Reply With Quote

Old   January 1, 2018, 19:04
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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.
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
bash on ubuntu on windows, mysolver


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
[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


All times are GMT -4. The time now is 00:32.