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

[foam-extend.org] Error on foam-extend build/comilation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2019, 04:03
Default Error on foam-extend build/comilation
  #1
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 7
Rep Power: 4
govind_IITD is on a distinguished road
Hello,


I am facing compilation/build problem with foam-extend.4.0. I check that issue with ThirdParty so I try to compile it separate with ./AllMake. I am struggling to understand error output of ./AllMake.


Can Any one help me to figure out this? I am attaching error logs.


Regards,
Govind Sharma
Attached Files
File Type: gz logs.tar.gz (5.3 KB, 7 views)
govind_IITD is offline   Reply With Quote

Old   April 20, 2019, 05:58
Default
  #2
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 7
Rep Power: 4
govind_IITD is on a distinguished road
Please reply anyone has idea of this. I have searched on forum and read about installation of foam-extended. But still I am not figuring out.
govind_IITD is offline   Reply With Quote

Old   April 21, 2019, 07:27
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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 questions:
  1. Which Linux Distribution or operating system are you using and which version?
  2. Which installation instructions are you following?
Because based on just the information you've provided, I can only guess that flex is missing...
__________________
wyldckat is offline   Reply With Quote

Old   April 22, 2019, 00:27
Default
  #4
New Member
 
govind
Join Date: Apr 2018
Posts: 8
Rep Power: 4
gsiitd is on a distinguished road
Thanks wyldckat,


I am using Ubuntu 16.04LTS.
And following the https://openfoamwiki.net/index.php/I...oam-extend-4.0 installation instructions.


Regards,
Govind

Last edited by wyldckat; April 22, 2019 at 21:13. Reason: removed quotes so that the link would activate
gsiitd is offline   Reply With Quote

Old   April 22, 2019, 21:14
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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 question: And did you follow the instructions given on section Ubuntu 16.04 in this page: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 ??
Daniel_Khazaei likes this.
wyldckat is offline   Reply With Quote

Old   April 23, 2019, 11:53
Default
  #6
New Member
 
Goind Sharma
Join Date: Sep 2018
Posts: 7
Rep Power: 4
govind_IITD is on a distinguished road
Thanks,


Yeah It compiled whole but still I there is error. It is asking Bison version above 3.


Code:
removing .dep files referring to filesThatAreOnlyInSomeDistributions ...
wclean funkySetFields
wclean funkySetBoundaryField
wclean replayTransientBC
wclean funkySetAreaFields
wclean funkyDoCalc
wclean calcNonUniformOffsetsForMapped
wclean fieldReport
wclean funkyPythonPostproc
wclean funkySetLagrangianField
wclean funkyWarpMesh
Current OpenFOAM version is 4.0.
This is a clean install
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.4.2
hg info: a31fc64df7c6+
Bison: /home/govind/foam/foam-extend-4.0/ThirdParty/packages/bison-2.7/platforms/linux64GccDPOpt/bin/bison
Flex: /usr/bin/flex
Bison is version 2.7
swak4Foam only confirmed to work with Bison >= 3
Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard

Last edited by wyldckat; April 23, 2019 at 19:29. Reason: Added [CODE][/CODE] markers
govind_IITD is offline   Reply With Quote

Old   April 23, 2019, 20:21
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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: Oooohhh... OK, this explains a few posts I've been seeing about people complaining that they aren't able to fully build foam-extend 4.0 due to Bison...

My guess is that the version of swak4Foam that was pulled-in within foam-extend 4.0 script, got the latest instead of the latest known to be working for this version of foam-extend...

Ah, OK, so signs initially pointed to Mercurial not being installed in your system, hence the problem... I say this because the version you've gotten is 0.4.2, when 0.4.0 is the one meant to be used... mmm, let me try this manually... OK, I get this error:
Code:
abort: unknown revision 'version_0.4.0_v2.x'!
This means that the problem isn't due to not having Mercurial installed, it's because the Mercurial repository actually is missing the branch/revision "version_0.4.0_v2.x".

edit on the 25th of April: The issue has been solved on swak4Foam's repo!

OK, the following commands might solve the problem:
Code:
cd $WM_THIRD_PARTY_DIR
cd rpmBuild/BUILD/swak4Foam-0.4.0
./Allwclean
hg update --clean .
hg checkout v0.4.1
./Allwmake > log.make 2>&1
./Allwmake > log.make.2nd  2>&1
The last 2 commands will send the screen output to the files "log.make" and "log.make.2nd", so that it's easier to check what went wrong, if anything goes wrong...
  • WARNING: the command "hg update" has a space and a dot right at the end of the line. Please do not miss them.

If you then run:
Code:
cat log.make.2nd
it will hopefully show something similar to this:
Code:
Previously compiled for OpenFOAM (4.0)
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.4.1
Bison is version 2.7
Flex is version 2.6.0 (Minor version: 0)
OpenFOAM-version: Major 4 Minor 0 Patch 0 (-1 == x / 0) Fork: extend
No change to swak4FoamParsers/foamVersion4swak.H
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswak4FoamParsers.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLagrangianParser.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libgroovyBC.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleSearchableSurfaces.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libsimpleSwakFunctionObjects.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakTopoSources.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakStateMachine.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakDynamicMesh.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakSourceFields.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFiniteArea.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libgroovyStandardBCs.so' is up to date.

SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it

'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakDynamicMeshFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakMRFFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakQuantileFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakRandomFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakShiftFieldFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakVelocityFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakFacSchemesFunctionPlugin.so' is up to date.
'/home/ofuser/foam/ofuser-4.0/lib/linux64GccDPOpt/libswakCoalCloudAdaptor.so' is up to date.

If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it


SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled

make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/calcNonUniformOffsetsForMapped' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/fieldReport' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetAreaFields' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkyDoCalc' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetBoundaryField' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetLagrangianField' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkySetFields' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/funkyWarpMesh' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/replayTransientBC' is up to date.
make[1]: '/home/ofuser/foam/ofuser-4.0/applications/bin/linux64GccDPOpt/writeBoundarySubfields' is up to date.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ofuser/foam/foam-extend-4.0/ThirdParty/tmp/swak4Foam/Libraries (most people will be fine without setting that variable)
As long as no "Error" words appear on this second log file, we should be OK.

Last edited by wyldckat; April 25, 2019 at 13:33. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   April 24, 2019, 01:55
Default
  #8
New Member
 
govind
Join Date: Apr 2018
Posts: 8
Rep Power: 4
gsiitd is on a distinguished road
Thanks,


I will follow this to complete the installation. By the way I tried to run icoFoam it has run without any error.
gsiitd is offline   Reply With Quote

Old   April 25, 2019, 08:43
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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: Yes, I didn't mention it, because from your post I had assumed you knew that everything had been built, except for swak4Foam.

The error you reported was just affecting swak4Foam, which is the last thing being built in the foam-extend stack.

By the way, I've reported the issue regarding swak4Foam here: https://sourceforge.net/p/openfoam-e...swak4foam/246/
__________________
wyldckat is offline   Reply With Quote

Old   April 26, 2019, 08:51
Default
  #10
New Member
 
govind
Join Date: Apr 2018
Posts: 8
Rep Power: 4
gsiitd is on a distinguished road
Thanks for your quick replies. It helped me to understand subtle things about foam compilation issues.
gsiitd is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 03:21
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 04:21.