CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   OF 1.6.x pulled at 03/05/2009 compilation error (http://www.cfd-online.com/Forums/openfoam-bugs/75753-1-6-x-pulled-03-05-2009-compilation-error.html)

ivan_cozza May 4, 2010 10:28

OF 1.6.x pulled at 03/05/2009 compilation error
 
Hi Foamers,
I've just pulled the 1.6.x release, but when I do Allwmake it gives me some errors:

In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:41:31: error: geometricOneField.H: No such file or directory
In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:63: error: expected ',' or '...' before '&' token
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:65: error: ISO C++ forbids declaration of 'geometricOneField' with no type
In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:90,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:63: error: expected ',' or '...' before '&' token
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:65: error: ISO C++ forbids declaration of 'geometricOneField' with no type


It repeats many times this error with geometricOneField.H.

It's a bug or it depends on something on my machine?
Thanks, Ivan

olesen May 6, 2010 01:24

Quote:

Originally Posted by ivan_cozza (Post 257528)
Hi Foamers,
I've just pulled the 1.6.x release, but when I do Allwmake it gives me some errors:

In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:41:31: error: geometricOneField.H: No such file or directory
In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:63: error: expected ',' or '...' before '&' token
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:65: error: ISO C++ forbids declaration of 'geometricOneField' with no type
In file included from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.H:90,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvm.H:44,
from /opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvCFD.H:10,
from wallGradU.C:33:
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:63: error: expected ',' or '...' before '&' token
/opt/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvmDdt.C:65: error: ISO C++ forbids declaration of 'geometricOneField' with no type


It repeats many times this error with geometricOneField.H.

It's a bug or it depends on something on my machine?
Thanks, Ivan

If a completely new file is added, or an existing file is moved around, it is very likely that the corresponding link in the lnInclude/ directory is not made or updated.

Try the following:
Code:

cd $WM_PROJECT_DIR
wmakeLnIncludeAll src applications
# use wmakeLnIncludeAll -help to see what the command does

After this, rebuilding should presumably work. Another problem that can sometimes occur is when a file is completely removed without updating any of the *.dep files. The 'rmdepall' and 'rmdepold' commands can be helpful there. See the corresponding '-help' for these commands.

ivan_cozza May 6, 2010 03:38

Hi to everybody,

this morning I tried with the suggestions of Olesen, in particular I did rmdepold and wmakeLnIncludeAll before Allwmake, but now new errors:

make: *** No rule to make target `lnInclude/makeParcelIOList.H', needed by `parcels/derived/BasicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.dep'. Stop.

and

+ wmake libso coalCombustion
make: *** No rule to make target `/opt/OpenFOAM/OpenFOAM-1.6.x/src/lagrangian/intermediate/lnInclude/makeParcelIOList.H', needed by `CoalParcel/defineCoalParcel.dep'. Stop.

It seems to complains on something in lagrangian models and combustion. As a result, obviously it do not build the related applications.
Some suggestions?
Thanks, Ivan

olesen May 6, 2010 04:42

Quote:

Originally Posted by ivan_cozza (Post 257771)
Hi to everybody,

this morning I tried with the suggestions of Olesen, in particular I did rmdepold and wmakeLnIncludeAll before Allwmake, but now new errors:

make: *** No rule to make target `lnInclude/makeParcelIOList.H', needed by `parcels/derived/BasicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.dep'. Stop.

What happened when you removed the depend reference to the old file?
For example,
Code:

rmdepall makeParcelIOList.H
If that didn't do it, I don't know where the problem is.

ivan_cozza May 6, 2010 10:00

Thank to Mark's suggestions, now it compile correctly!
Have a nice day,
Ivan


Quote:

Originally Posted by olesen (Post 257784)
What happened when you removed the depend reference to the old file?
For example,
Code:

rmdepall makeParcelIOList.H
If that didn't do it, I don't know where the problem is.



All times are GMT -4. The time now is 03:37.