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

OF 1.6.x pulled at 03/05/2009 compilation error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 4, 2010, 10:28
Default OF 1.6.x pulled at 03/05/2009 compilation error
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 8
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
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
ivan_cozza is offline   Reply With Quote

Old   May 6, 2010, 01:24
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by ivan_cozza View Post
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.
olesen is offline   Reply With Quote

Old   May 6, 2010, 03:38
Default
  #3
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 8
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
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
ivan_cozza is offline   Reply With Quote

Old   May 6, 2010, 04:42
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
Quote:
Originally Posted by ivan_cozza View Post
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.
olesen is offline   Reply With Quote

Old   May 6, 2010, 10:00
Default
  #5
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 8
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Thank to Mark's suggestions, now it compile correctly!
Have a nice day,
Ivan


Quote:
Originally Posted by olesen View Post
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 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
Native ParaView Reader Bugs tj22 OpenFOAM Paraview & paraFoam 264 August 23, 2014 10:29
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


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