CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Compilation problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2009, 06:55
Default i have decided to open a new t
  #1
Member
 
antonio segalini
Join Date: Mar 2009
Posts: 75
Rep Power: 17
antonio_ing is on a distinguished road
i have decided to open a new thread. To my openfoam-1.5 dev of 20/01/09 i did wclean in the icoFoam directory and once i did wmake again I got the following error:

+ wmake
Making dependency list for source file icoFoam.C
SOURCE=icoFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/icoFoam.o
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:47,
from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from icoFoam.C:33:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/cpuTime.H:4:3 3: error: asm-generic/cputime.h: No such file or directory
In file included from /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/fvCFD.H:6 ,
from icoFoam.C:33:
/home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/Time.H:68: error: expected class-name before ',' token
icoFoam.C: In function 'int main(int, char**)':
icoFoam.C:103: error: 'class Foam::Time' has no member named 'elapsedCpuTime'
make: *** [Make/linuxGccDPOpt/icoFoam.o] Error 1
any suggestion?
antonio_ing is offline   Reply With Quote

Old   February 15, 2009, 10:04
Default What is the output of these 3
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
What is the output of these 3 commands?

> which g++

> g++ --version

> cd $WM_PROJECT_DIR; svn info


And what Linux distro are you using?

Martin
mbeaudoin is offline   Reply With Quote

Old   February 15, 2009, 11:00
Default 1) /usr/bin/g++ 2) g++ (U
  #3
Member
 
antonio segalini
Join Date: Mar 2009
Posts: 75
Rep Power: 17
antonio_ing is on a distinguished road
1)
/usr/bin/g++

2)
g++ (Ubuntu 4.3.2-1ubuntu12) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

3)
The program 'svn' is currently not installed. You can install it by typing:
sudo apt-get install subversion
-bash: svn: command not found

actually i am using ubuntu 8.10
antonio_ing is offline   Reply With Quote

Old   February 17, 2009, 05:38
Default i finally managed to solve the
  #4
Member
 
antonio segalini
Join Date: Mar 2009
Posts: 75
Rep Power: 17
antonio_ing is on a distinguished road
i finally managed to solve the problem compiling again openfoam-dev from scratch. In the installation section there is my post about the openfoam-1.5-dev installation to everybody. Thanks for all the help guys
antonio_ing is offline   Reply With Quote

Old   February 22, 2009, 16:46
Default Hi everybody, I added H2 Fo
  #5
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Hi everybody,

I added H2 Folder/Class to the existing liquid library of openFoam-1.5 . I
tried to compile as http://openfoamwiki.net/index.php/Co...ropertiesLiqui d, but many errors, saying,
..
/user/lib/../lib64/crt1.o: in function `_start`: (.text+0x20):
undefined reference to `main'
Make/linux64GccDpOpt/H2O.o: In function
`Foam::thermophysicalFunction::type() const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::thermophysicalFunction::typ e() const]+0x3) : undefined reference to `Foam::thermophysicalFunction::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc0::type()
const':
H2O.C.text._ZNK4Foam10NSRDSFunction04typeEv[Foam::NSRDSfunc0::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc0::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc1::type()
const':
H2O.C.text._ZNK4Foam22NSRDSfunction14typeEv[Foam::NSRDSfunc1::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc1::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc2::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc2::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc2::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc4::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc4::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc4::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc5::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc5::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc5::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc6::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc6::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc6::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc7::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc7::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc7::typeName'
..
Any suggestion?
Hamed
haghajani is offline   Reply With Quote

Old   February 22, 2009, 16:49
Default Hi everybody, I added H2 Fo
  #6
Member
 
Hamed Aghajani
Join Date: Mar 2009
Location: London, UK
Posts: 77
Rep Power: 17
haghajani is on a distinguished road
Hi everybody,

I added H2 Folder/Class to the existing liquid library of openFoam-1.5 . I
tried to compile as http://openfoamwiki.net/index.php/Co...ropertiesLiqui d, but many errors, saying,
..
/user/lib/../lib64/crt1.o: in function `_start`: (.text+0x20):
undefined reference to `main'
Make/linux64GccDpOpt/H2O.o: In function
`Foam::thermophysicalFunction::type() const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::thermophysicalFunction::typ e() const]+0x3) : undefined reference to `Foam::thermophysicalFunction::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc0::type()
const':
H2O.C.text._ZNK4Foam10NSRDSFunction04typeEv[Foam::NSRDSfunc0::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc0::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc1::type()
const':
H2O.C.text._ZNK4Foam22NSRDSfunction14typeEv[Foam::NSRDSfunc1::type()
const]+0x3): undefined reference to 'Foam::NSRDSfunc1::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc2::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc2::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc2::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc4::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc4::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc4::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc5::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc5::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc5::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc6::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc6::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc6::typeName'
Make/linux64GccDpOpt/H2O.o: In function `Foam::NSRDSfunc7::type()
const':
H2O.C.text._ZNK4Foam22thermophysicalFunction4typeEv[Foam::NSRDSfunc7::type() const]+0x3): undefined reference to 'Foam::NSRDSfunc7::typeName'
..
Any suggestion?
Hamed
haghajani is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
!!! UDF - Compilation problem !!! Everest FLUENT 1 January 12, 2009 17:56
HPMPI Compilation problem still carsten OpenFOAM Bugs 3 December 16, 2008 12:23
OpenFOAM 14 compilation problem zaferleylek OpenFOAM Installation 4 May 8, 2007 14:52
udf compilation problem co2 FLUENT 4 April 16, 2004 17:34
Compiled UDF / Compilation problem mikhail FLUENT 1 October 13, 2000 06:12


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