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

Error after "git pull" and ./Allwmake

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 23, 2010, 02:54
Default Error after "git pull" and ./Allwmake
  #1
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 69
Rep Power: 8
bhh is on a distinguished road
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
bhh is offline   Reply With Quote

Old   September 23, 2010, 09:29
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   September 23, 2010, 13:51
Default
  #3
nsf
Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 85
Rep Power: 7
nsf is on a distinguished road
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
nsf is offline   Reply With Quote

Old   September 24, 2010, 02:15
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Sometime it's enough to use

wcleanLnIncludeAll

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

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   September 24, 2010, 17:01
Default
  #5
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 69
Rep Power: 8
bhh is on a distinguished road
Hi,

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

rgds
Bjorn
bhh is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
erros in Allwmake jiwon OpenFOAM Installation 6 February 15, 2014 07:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
Install problem in linux navaladi OpenFOAM Installation 11 July 17, 2008 02:24
ParaFoam error message joey OpenFOAM Paraview & paraFoam 1 October 2, 2006 13:28


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