CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error after "git pull" and ./Allwmake (https://www.cfd-online.com/Forums/openfoam-installation/80345-error-after-git-pull-allwmake.html)

bhh September 23, 2010 02:54

Error after "git pull" and ./Allwmake
 
Hi,

I have made git pull and ./Allwmake for OF1.7.x sucessfulluy for a long time. Some time ago I got the following after git pull and ./Allwmake:

make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/compressible/rhoSimpleFoam'
wmake error: file 'Make/files' does not exist
make[1]: *** [rhoSonicFoam] Error 1
wmake error: file 'Make/files' does not exist
make[1]: *** [rhopSonicFoam] Error 1
..
make[2]: Target `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/chtMultiRegionFoam' not remade because of errors.
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/heatTransfer/chtMultiRegionFoam'
make[1]: *** [chtMultiRegionFoam] Error 2
...
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/heatTransfer/chtMultiRegionSimpleFoam'
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/heatTransfer'
make: *** [heatTransfer] Error 2
...
make[2]: Entering directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/interMixingFoam'
make[2]: *** No rule to make target `/home/user/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/interfaceProperties/lnInclude/alphaContactAngleFvPatchScalarField.H', needed by `threePhaseInterfaceProperties/threePhaseInterfaceProperties.dep'.
make[2]: Failed to remake makefile `threePhaseInterfaceProperties/threePhaseInterfaceProperties.dep'.
make[2]: Target `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/interMixingFoam' not remade because of errors.
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/interMixingFoam'
make[1]: *** [interMixingFoam] Error 2
...
make[2]: Entering directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/multiphaseInterFoam'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I../interFoam -ImultiphaseMixture/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/interfaceProperties/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/multiphaseInterFoam.o -L/home/user/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt \
-lmultiphaseInterFoam -linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/multiphaseInterFoam
/usr/bin/ld: cannot find -lmultiphaseInterFoam
collect2: ld returned 1 exit status
make[2]: *** [/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/multiphaseInterFoam] Error 1
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/multiphaseInterFoam'
+ wmake MRFMultiphaseInterFoam
..
make[2]: *** [/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/MRFMultiphaseInterFoam] Error 1
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase/multiphaseInterFoam/MRFMultiphaseInterFoam'
make[1]: *** [multiphaseInterFoam] Error 2
...
make[1]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/multiphase'
make: *** [multiphase] Error 2
...
make[2]: Target `application' not remade because of errors.
make[2]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/postProcessing/dataConversion'
make[1]: *** [dataConversion] Error 2
..
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/user/OpenFOAM/OpenFOAM-1.7.x/applications/utilities/postProcessing'
make: *** [postProcessing] Error 2
...

Any clue to what went wrong and how to correct the problem?

Kind regards
Bjorn

wyldckat September 23, 2010 09:29

Greetings Bjorn,

When that happens, try running this where you ran Allwmake:
Code:

wclean all
And then run Allwmake again.

Additionally, in order to keep a log of the build, you can run:
Code:

Allwmake > make.log 2>&1
Best regards,
Bruno

nsf September 23, 2010 13:51

Thanks Bruno,

I had the same issue as Bjorn and wclean fixed it.

I might be worth noting that I didn't have to "wclean all" the entire OpenFOAM-1.7.x directory. I was sufficient to only "wclean" the components that failed.

To get the failed components one could do
Code:

grep "^make.*Error " make.log
Then one has to run
Code:

wclean
in each corresponding directory.

Best regards

Nicolas

alberto September 24, 2010 02:15

Sometime it's enough to use

wcleanLnIncludeAll

so that links are generated again. This might save quite some compile time.

bhh September 24, 2010 17:01

Hi,

Thank you all! This works OK and the compilation runs smoothly

rgds
Bjorn


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