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

Error in compiling new solver in openfoam 1706

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By t.teschner

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2017, 05:49
Default Error in compiling new solver in openfoam 1706
  #1
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 11
k.farnagh is on a distinguished road
Hi,

I would like to make changes on twoPhaseEulerFoam solver which exists in OF 1706 (Windows version). I've followed steps mentioned in below link

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Before any changes in solver and in wmake step I confront with

Code:
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$ wmake
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 407: make: command not found
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 410: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /home/kasra/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$
I must to say that, there is not any directory when I insert below command

Code:
ls $FOAM_USER_APPBIN
Would you please help me to solve it.

Sincerely Yours,

Last edited by k.farnagh; July 18, 2017 at 01:18.
k.farnagh is offline   Reply With Quote

Old   July 26, 2017, 04:42
Default
  #2
New Member
 
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 11
k.farnagh is on a distinguished road
Would you please help me.
If there are any ambiguities please let me to describe.
k.farnagh is offline   Reply With Quote

Old   August 1, 2017, 13:45
Default
  #3
Member
 
Vu
Join Date: Nov 2016
Posts: 42
Rep Power: 9
DoQuocVu is on a distinguished road
Hi Kasra,

I'm not sure but you can try:

Code:
. /opt/OpenFOAM/OpenFOAM-v1706/etc/bashrc
and recompile

Best regards,
Vu
DoQuocVu is offline   Reply With Quote

Old   December 4, 2017, 14:24
Default
  #4
New Member
 
Reid Shaffer
Join Date: Dec 2017
Posts: 2
Rep Power: 0
Reid.d.Shaffer is on a distinguished road
Did you ever find a resolution to this issue? I am running into something similar just trying to run the floatingBody tutorial in overInterDyMFoam.
Reid.d.Shaffer is offline   Reply With Quote

Old   January 1, 2018, 19:05
Default
  #5
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: The original question seems to indicate that GNU Make is not provided with the installation. Please try with the latest OpenFOAM v1712 to see if this still happens and if it does, please open a bug report at http://develop.openfoam.com
vkid185 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 8, 2018, 06:11
Unhappy
  #6
New Member
 
Chen Huang
Join Date: Jul 2009
Location: Gothenburg, Sweden
Posts: 11
Rep Power: 17
chenhu is on a distinguished road
Hello

The OpenFOAM-v1712 on windows 10 has the same problem.

Chen
Quote:
Originally Posted by k.farnagh View Post
Hi,

I would like to make changes on twoPhaseEulerFoam solver which exists in OF 1706 (Windows version). I've followed steps mentioned in below link

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Before any changes in solver and in wmake step I confront with

Code:
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$ wmake
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 407: make: command not found
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 410: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /home/kasra/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$
I must to say that, there is not any directory when I insert below command

Code:
ls $FOAM_USER_APPBIN
Would you please help me to solve it.

Sincerely Yours,
chenhu is offline   Reply With Quote

Old   March 16, 2018, 13:30
Default
  #7
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 206
Rep Power: 16
t.teschner is on a distinguished road
it might be worth to run "sudo apt-get build-essential" in case any GNU compiler / linker / utilities (make) are not installed.
wyldckat likes this.
t.teschner is offline   Reply With Quote

Old   March 19, 2018, 07:32
Default
  #8
New Member
 
tommaso acerbi
Join Date: Feb 2018
Posts: 2
Rep Power: 0
tomshutch is on a distinguished road
Hi all,

I run into the same problems when trying to modify a solver and trying to run a dynamic mesh in version OpenFOAM-v1712 on windows 10.
I run "sudo apt-get install build-essential" and the error previously posted disappeared. However I now get the following:

Code:
acerbi@Hutch:~/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv$ interDyMFoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1712                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : v1712
Arch   : "LSB;label=32;scalar=64"
Exec   : interDyMFoam
Date   : Mar 19 2018
Time   : 09:44:41
Host   : "Hutch"
PID    : 1850
I/O    : uncollated
Case   : /home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv
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

Create mesh for time = 0

Using #calc at line 33 in file "/home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv/constant/dynamicMeshDict.sixDoFRigidBodyMotionCoeffs"
Using #codeStream with "/home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv/dynamicCode/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_082d24c17898f237115c1164b9fdf1e606f283d4.so"
Creating new library in "dynamicCode/_082d24c17898f237115c1164b9fdf1e606f283d4/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_082d24c17898f237115c1164b9fdf1e606f283d4.so"
Invoking wmake libso /home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv/dynamicCode/_082d24c17898f237115c1164b9fdf1e606f283d4
wmake libso /home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv/dynamicCode/_082d24c17898f237115c1164b9fdf1e606f283d4
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file codeStreamTemplate.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -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 -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -g  -IlnInclude -I. -I/home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c codeStreamTemplate.C -o Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o
In file included from /home/acerbi/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/bits/uniform_int_dist.h:35:0,
                 from /home/acerbi/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/bits/stl_algo.h:66,
                 from /home/acerbi/OpenFOAM/ThirdParty-v1712/platforms/linux64/gcc-6.3.0/include/c++/6.3.0/algorithm:62,
                 from /home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/keyTypeI.H:26,
                 from /home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/keyType.H:177,
                 from /home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/entry.H:44,
                 from /home/acerbi/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/dictionary.H:88,
                 from codeStreamTemplate.C:29:
/home/acerbi/OpenFOAM/ThirdParty-v1712/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.
/home/acerbi/OpenFOAM/OpenFOAM-v1712/wmake/rules/General/transform:28: recipe for target 'Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o' failed
make: *** [Make/linux64Gcc63DPInt32Opt/codeStreamTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/_082d24c17898f237115c1164b9fdf1e606f283d4/platforms/linux64Gcc63DPInt32Opt/lib/libcodeStream_082d24c17898f237115c1164b9fdf1e606f283d4.so"


file: /home/acerbi/OpenFOAM/acerbi-v1712/run/tutorials/multiphase/interFoam/RAS/damBreakInv/constant/dynamicMeshDict.sixDoFRigidBodyMotionCoeffs

    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 219.

FOAM exiting
Here above I modified the damBreak tutorial so that water would move toward the atmosphere boundary and impact against a falling object. However, same error occurs if I just run the floatingObject tutorial.

An error occurs also when trying an ./Allwmake, as follows

Code:
========================================
Compile OpenFOAM libraries

no git description found
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
wmakeLnInclude: linking include files to OSspecific/POSIX/lnInclude
wmake  dummy
wmake dummy
Making dependency list for source file UOPwrite.C
Making dependency list for source file UIPread.C
Making dependency list for source file UPstream.C
g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1712 -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 -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1712/src/OSspecific/POSIX/lnInclude   -fPIC -c UPstream.C -o /opt/OpenFOAM/OpenFOAM-v1712/build/linux64Gcc63DPInt32Opt/src/Pstream/dummy/UPstream.o
In file included from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/scalar.H:39:0,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/IOstream.H:49,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Ostream.H:39,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/OSstream.H:39,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/messageStream.H:216,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/error.H:51,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UListI.H:26,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UList.H:604,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/List.H:43,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/labelList.H:60,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/UPstream.H:42,
                 from /opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/Pstream.H:42,
                 from UPstream.C:26:
/opt/OpenFOAM/OpenFOAM-v1712/src/OpenFOAM/lnInclude/floatScalar.H:54:1: internal compiler error: Illegal instruction
 constexpr 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-v1712/wmake/rules/General/transform:28: recipe for target '/opt/OpenFOAM/OpenFOAM-v1712/build/linux64Gcc63DPInt32Opt/src/Pstream/dummy/UPstream.o' failed
make: *** [/opt/OpenFOAM/OpenFOAM-v1712/build/linux64Gcc63DPInt32Opt/src/Pstream/dummy/UPstream.o] Error 1
If anyone has any suggestions on how to fix this, I'd be really grateful.

Regards,
Tommaso
tomshutch is offline   Reply With Quote

Old   July 20, 2018, 12:40
Default
  #9
New Member
 
Cole
Join Date: Jul 2018
Posts: 3
Rep Power: 8
colemuel is on a distinguished road
Was this problem ever solved. I'm having the same issue.
colemuel is offline   Reply With Quote

Old   July 23, 2018, 02:40
Default fvIOoptionList
  #10
New Member
 
Muhammad Tamoor
Join Date: Jul 2018
Posts: 1
Rep Power: 0
taimijan is on a distinguished road
Hi all,

I am beginner in the CFD world, I did some modification in "twoPhaseEulerFoam" application but I don't know how to make the "fvIOoptionList.(C & H) files". Please help me in this regard. Also if you send me some sample file from which I learn how I can fix my work.

Thanks in anticipation!
taimijan is offline   Reply With Quote

Old   December 17, 2019, 08:43
Default
  #11
New Member
 
Join Date: Nov 2019
Posts: 3
Rep Power: 6
bartimore is on a distinguished road
I am having exactly the same error message as Tomasso has if I try to run the wmake of a newly created solver. I am running openfoamv1906 from the ubuntu 16.04 bash in windows.
bartimore is offline   Reply With Quote

Old   February 25, 2020, 10:43
Post The folder $FOAM-USER-APPIN
  #12
New Member
 
Nima Amanifard
Join Date: Feb 2020
Posts: 2
Rep Power: 0
Nima44 is on a distinguished road
Quote:
Originally Posted by k.farnagh View Post
Hi,

I would like to make changes on twoPhaseEulerFoam solver which exists in OF 1706 (Windows version). I've followed steps mentioned in below link

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Before any changes in solver and in wmake step I confront with

Code:
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$ wmake
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 407: make: command not found
/opt/OpenFOAM/OpenFOAM-v1706/wmake/wmake: line 410: make: command not found
wmake error: file 'Make/linux64Gcc63DPInt32Opt/sourceFiles' could not be created in /home/kasra/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1
kasra@Kasra-PC:~/OpenFOAM/kasra-v1706/applications/solvers/twoPhaseEulerFoam_v1$
I must to say that, there is not any directory when I insert below command

Code:
ls $FOAM_USER_APPBIN
Would you please help me to solve it.

Sincerely Yours,
Dear QUOTE
may be it is too late to answer, but this folder can be found so easily jur type in your terminal:
cd $FOAM-USER-APPIN

then you are in the folder. In blueCFD-core version OpenFoam it is the folder which is called "ofuser":
blueCFD-Core-2017/mysys64/home/ofuser
Nima44 is offline   Reply With Quote

Reply


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
Compilation error for OpenFoam FSI solver with third party FEA code danny261083 OpenFOAM Running, Solving & CFD 1 October 6, 2017 09:50
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 03:10
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Can't get data from OpenFoam to external solver using externalCoupled perry OpenFOAM Running, Solving & CFD 4 May 26, 2014 08:09


All times are GMT -4. The time now is 01:24.