Hello,
I am trying to compile swak4foam, version 0.4.3, development version, together with Openfoam v1912. We are using intel compiler, Icc. Many things are compile ok, but at a certain stage, it seems that it looks for wmkdepend in a wrong directory:
wmake calcNonUniformOffsetsForMapped
make[1]: Entering directory /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
Making dependency list for source file calcNonUniformOffsetsForMapped.C
make[1]: /software/sse/manual/OpenFOAM.com/1912/intel-2018b/nsc1/OpenFOAM-v1912/wmake/platforms/linux64Gcc/wmkdepend: Command not found
make[1]: *** No rule to make target
Make/linux64IccDPInt32Opt/calcNonUniformOffsetsForMapped.C.dep', needed by `Make/linux64IccDPInt32Opt/calcNonUniformOffsetsForMapped.o'. Stop.
It somehow searches in the directory linux64Gcc. But since we are using intel "Icc", the "Gcc" directory does not exist. Before, it calls wmkdepend without any problems, until this stage. At the moment I cannot find where it picks up this path. In the openfoam bashrc, it is set to Icc.
In swak4Foam, I tried AllwmakeAll as well as Allwmake, which leads to the same problem. I think that we had swak4Foam running intel compilers before. I am unfortunately not so experienced with swak4foam, but I try to help people to get it running on our cluster.
Here is the complete output. Maybe you have an idea what could be the reason why it suddenly picks up a wrong path with Gcc.
Thanks a lot, Frank Bramkamp
[bramkamp@tetralith1 swak4Foam]$ Allwmake
Current OpenFOAM version is v1912.
Previously compiled for OpenFOAM (v1912)
/home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)
Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /bin/python2.7-config for python2
Looking for Python 3
Found Python 3.6
Configuring Python 3.6
Using python3.6 at /bin/python3.6-config for python3
Using our own Lua at /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 0.4.3
abort: there is no Mercurial repository here (.hg not found)
Could not get version of the sources
Bison: /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/privateRequirements/bin/bison
Flex: /bin/flex
Bison at /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 1912 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H
Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem
wmake libso swak4FoamParsers
wmake libso swakLagrangianParser
wmake libso groovyBC
wmake libso swakFunctionObjects
wmake libso simpleFunctionObjects
wmake libso simpleLagrangianFunctionObjects
wmake libso simpleSearchableSurfaces
wmake libso simpleSwakFunctionObjects
wmake libso swakTopoSources
wmake libso swakDynamicMesh
wmake libso swakSourceFields
Compiling swakFvOptions
wmake libso swakFvOptions
wmake libso swakFiniteArea
wmake libso swakStateMachine
wmake libso groovyStandardBCs
Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /bin/python2.7-config for python2
Looking for Python 3
Found Python 3.6
Configuring Python 3.6
Using python3.6 at /bin/python3.6-config for python3
Using our own Lua at /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/privateRequirements
wmake libso swakGeneralLanguageIntegration
wmake libso swakPythonIntegration
wmake libso swakPython3Integration
wmake libso swakLuaIntegration
wmake libso swakScriptableLagrangian
wmake libso swakChemistryModelFunctionPlugin
wmake libso swakDynamicMeshFunctionPlugin
wmake libso swakFvcSchemesFunctionPlugin
wmake libso swakLagrangianCloudSourcesFunctionPlugin
wmake libso swakLocalCalculationsFunctionPlugin
wmake libso swakMRFFunctionPlugin
wmake libso swakMeshQualityFunctionPlugin
wmake libso swakMeshWaveFunctionPlugin
wmake libso swakQuantileFunctionPlugin
wmake libso swakRadiationModelFunctionPlugin
wmake libso swakRandomFunctionPlugin
wmake libso swakShiftFieldFunctionPlugin
wmake libso swakSurfacesAndSetsFunctionPlugin
wmake libso swakThermoTurbFunctionPlugin
wmake libso swakTransportTurbFunctionPlugin
wmake libso swakVelocityFunctionPlugin
wmake libso swakFacSchemesFunctionPlugin
wmake libso coalCloudAdaptor
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
wmake libso simpleCloudFunctionObjects
wmake libso swakCloudFunctionObjects
wmake calcNonUniformOffsetsForMapped
make[1]: Entering directory /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
Making dependency list for source file calcNonUniformOffsetsForMapped.C
make[1]: /software/sse/manual/OpenFOAM.com/1912/intel-2018b/nsc1/OpenFOAM-v1912/wmake/platforms/linux64Gcc/wmkdepend: Command not found
make[1]: *** No rule to make target
Make/linux64IccDPInt32Opt/calcNonUniformOffsetsForMapped.C.dep', needed by Make/linux64IccDPInt32Opt/calcNonUniformOffsetsForMapped.o'. Stop.
make[1]: Leaving directory
/home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/Utilities/calcNonUniformOffsetsForMapped'
make: *** [calcNonUniformOffsetsForMapped] Error 2
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/bramkamp/OpenFOAM/bramkamp-v1912/run/swak4Foam/Libraries (most people will be fine without setting that variable)