|
[Sponsors] |
Error in compiling new solver in openfoam 1706 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12 ![]() |
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$ Code:
ls $FOAM_USER_APPBIN Sincerely Yours, Last edited by k.farnagh; July 18, 2017 at 02:18. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Kasra
Join Date: Aug 2014
Posts: 29
Rep Power: 12 ![]() |
Would you please help me.
If there are any ambiguities please let me to describe. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Vu
Join Date: Nov 2016
Posts: 42
Rep Power: 10 ![]() |
Hi Kasra,
I'm not sure but you can try: Code:
. /opt/OpenFOAM/OpenFOAM-v1706/etc/bashrc Best regards, Vu |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Reid Shaffer
Join Date: Dec 2017
Posts: 2
Rep Power: 0 ![]() |
Did you ever find a resolution to this issue? I am running into something similar just trying to run the floatingBody tutorial in overInterDyMFoam.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
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
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#6 | |
New Member
Chen Huang
Join Date: Jul 2009
Location: Gothenburg, Sweden
Posts: 14
Rep Power: 17 ![]() |
Hello
The OpenFOAM-v1712 on windows 10 has the same problem. Chen Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 211
Rep Power: 17 ![]() |
it might be worth to run "sudo apt-get build-essential" in case any GNU compiler / linker / utilities (make) are not installed.
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
tommaso acerbi
Join Date: Feb 2018
Posts: 2
Rep Power: 0 ![]() |
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 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 Regards, Tommaso |
|
![]() |
![]() |
![]() |
![]() |
#9 |
New Member
Cole
Join Date: Jul 2018
Posts: 3
Rep Power: 8 ![]() |
Was this problem ever solved. I'm having the same issue.
|
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
Muhammad Tamoor
Join Date: Jul 2018
Posts: 1
Rep Power: 0 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Join Date: Nov 2019
Posts: 3
Rep Power: 7 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#12 | |
New Member
Nima Amanifard
Join Date: Feb 2020
Posts: 2
Rep Power: 0 ![]() |
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 |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 10:50 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 20:20 |
Add lagrangian particles to OpenFoam solver | luchen2408 | OpenFOAM | 0 | June 2, 2015 04:10 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
Can't get data from OpenFoam to external solver using externalCoupled | perry | OpenFOAM Running, Solving & CFD | 4 | May 26, 2014 09:09 |