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

Error after "git pull" and ./Allwmake

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2010, 03:54
Default Error after "git pull" and ./Allwmake
  #1
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
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, 10:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
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, 14:51
Default
  #3
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
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, 03:15
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
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 in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 24, 2010, 18:01
Default
  #5
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
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


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
[OpenFOAM.com] erros in Allwmake jiwon OpenFOAM Installation 7 December 30, 2015 13:34
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 22:45
Install problem in linux navaladi OpenFOAM Installation 11 July 17, 2008 03:24
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 14:28


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