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

Compilation error with OF 2.1.x

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2012, 07:29
Default Compilation error with OF 2.1.x
  #1
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Hello,

I tried to update my OpenFOAM 2.1.x so I typed

Code:
git pull
and then

Code:
./Allwmake
This way I updated my OpenFOAM 2.1.x several times since I installed it. It always worked, until now.

Unfortunately, the compilation produces some error messages and stops.

Some errors are about files which aren't found:

DataEntryFwd.H
MapDimensionedFields.H
ParticleTrap.H


and some errors are about "undefined reference"

Foam:olyMesh::clearAdditionalGeom()
Foam:ointMesh::typeName
Foam:olyMesh::movePoints()

After the unsuccessful compilation some commands, presumably those affected by the compilation errors, are not found anymore.
Attached Files
File Type: gz make.log.tar.gz (12.1 KB, 1 views)
GerhardHolzinger is offline   Reply With Quote

Old   September 18, 2012, 08: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 Gerhard,

It's somewhat simple: new files were added to the main OpenFOAM library. The simplest fix is this:
Code:
src
wclean libso OpenFOAM
wmake libso OpenFOAM
When it finishes building, you can run Allwmake once again. Whenever you see that a library does this, you can perform steps similar to these.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 18, 2012, 08:33
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Thanks for the reply.

In the mean time I found a bug report about my problem and there the same solution is explained.

I should have been googling a little longer before posting my problem here.

http://www.openfoam.org/mantisbt/view.php?id=626

EDIT: It is you who (wyldckat) who posted the solution in the bug report. The world is a small one.
GerhardHolzinger is offline   Reply With Quote

Old   September 18, 2012, 09:02
Default
  #4
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
There is still the error about the missing file particleTrap.H
Attached Files
File Type: gz logAllwmake.tar.gz (5.9 KB, 2 views)
GerhardHolzinger is offline   Reply With Quote

Old   September 18, 2012, 09:30
Default
  #5
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
OK, this time it stopped on this command:
Code:
wmake libso intermediate
Since I don't know by heart the location of this library, this is what I would do:
Code:
src
find . -name intermediate
Then cd to the given folder and do:
Code:
wclean libso
wmake libso
Then back to Allwmake
__________________
wyldckat is offline   Reply With Quote

Old   September 18, 2012, 10:04
Default
  #6
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
I did it the brute force way

Code:
wclean all
./Allwmake
It took a while, but now it is working again.
GerhardHolzinger 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
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 06:21
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 07:58
Compilation problems OF 2.1.x ivan_cozza OpenFOAM Installation 8 March 23, 2012 10:31
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
Compilation Error.... Arnab Siemens 4 September 12, 2004 16:54


All times are GMT -4. The time now is 12:15.