CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Error on foam-extend build/comilation (https://www.cfd-online.com/Forums/openfoam-installation/216743-error-foam-extend-build-comilation.html)

govind_IITD April 18, 2019 03:03

Error on foam-extend build/comilation
 
1 Attachment(s)
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

govind_IITD April 20, 2019 04:58

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.

wyldckat April 21, 2019 06:27

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

gsiitd April 21, 2019 23:27

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

wyldckat April 22, 2019 20:14

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

govind_IITD April 23, 2019 10:53

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


wyldckat April 23, 2019 19:21

Quick answer: :eek: 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.

gsiitd April 24, 2019 00:55

Thanks,


I will follow this to complete the installation. By the way I tried to run icoFoam it has run without any error.

wyldckat April 25, 2019 07:43

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/

gsiitd April 26, 2019 07:51

Thanks for your quick replies. It helped me to understand subtle things about foam compilation issues.


All times are GMT -4. The time now is 07:16.