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

Compilation error OF 2.0.x (UIPstream)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 11, 2011, 02:21
Default Compilation error OF 2.0.x (UIPstream)
  #1
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 7
prapanj is on a distinguished road
I was trying to compile OF 2.0.x from source. I got all the dependent packages installed as per website. But in stressAnalysis/solidEquilibriumDisplacementFoam/ I am getting the following error:
undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)'
collect2: ld returned 1 exit status

I am on a 64 bit Ubuntu box. I installed posixthread development libraries from my package manager and tried again and it gave me the same error.

Please help.
prapanj is offline   Reply With Quote

Old   July 12, 2011, 06:17
Default
  #2
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 7
prapanj is on a distinguished road
It is to be noted that, I am able to compile OF 1.7.0 successfully on the same box. Are there any additional dependencies that come with OF 2.0, which are not mentioned in OF website?
prapanj is offline   Reply With Quote

Old   July 12, 2011, 19:09
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,453
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Prapanj,

When they released OpenFOAM 2.0.0, I was one of the guys that gave some feedback of what packages were needed in Ubuntu. I tested the options in a clean install on a new Ubuntu installation to verify which packages were needed, as well as keeping up with feedback from other forum users.
In other words, if you followed the instructions at www.openfoam.com for the specific installation you are trying to do, then you should have everything you need. You'll only lack packages it you try to build the git or source version, while only having installed the OpenFOAM packages for Ubuntu.

My advice is to do the following commands, similarly to what I suggested the other day on a nearby thread:
Code:
foam
git stash
git pull
git stash pop
wcleanAll
wcleanLnIncludeAll
./Allwmake > make.log 2>&1
The stash subcommand will store any changes you might have done to the local git repository (the one created with the clone subcommand). And stash pop will bring those changes back on top of the latest git version.

Good luck!
Bruno

Last edited by wyldckat; July 12, 2011 at 19:10. Reason: 1200th post!! woot! :D
wyldckat is offline   Reply With Quote

Old   July 14, 2011, 14:24
Default
  #4
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 7
prapanj is on a distinguished road
Hi Wyldckat,

I am trying to install from source. And I am getting the above error for both OF 2.0.0 and 2.0.x . On 2.0.x, i tried the commands you mentioned, to no avail. Surprisingly OF 1.7 compiles on the same machine. I have installed all the packages as mentioned in the OF website. Any more suggestions?
prapanj is offline   Reply With Quote

Old   July 16, 2011, 09:24
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,453
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Prapanj,

I've tried to reproduce the same issues you've had on an Ubuntu 10.04 x86_64 and I've only be able to do so replicate these issues if I:
  1. Download the two .gtgz files indicated at http://www.openfoam.com/download/source.php
  2. Unpack only OpenFOAM-2.0.0.gtgz.
  3. Install all packages indicated in the System Requirements chapter, i.e. the base packages + OpenMPI and Scotch.
  4. Initialize the environment and get things rolling.
This results in things not building properly, because in this scenario we are assuming that the ThirdParty package isn’t necessary since we installed OpenMPI and Scotch from the repos.

So, I'll need to know if this was what you did or not.
On the other hand, if you followed all of the instructions on that web page, I suggest that you attach the log from the build made with that last command I posted before. To generate a file small enough to be attached, run the following command:
Code:
tar -czf make.log.tar.gz make.log
Then attach the file make.log.tar.gz to your next post.

Otherwise, I would need a magical crystal ball

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 19, 2011, 13:58
Default magic crystal ball
  #6
Senior Member
 
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 7
prapanj is on a distinguished road
Often we find ourselves fantasize situations which can be handled only by magical crystal balls. We end up realizing that either a crystal ball is not needed or that nothing on earth can save us.
So here, you are right, spot on. I was trying to fiddle with the old third party folder that I had and assumed, like you mentioned, that the mpi and scotch installation would take care of everything. So all we need to do is follow the instruction step by step exactly. Thank you for the help and btw, you have an amazing insight into how things may go wrong (I know no one that can reproduce errors exactly!)

Thanks again.
prapanj is offline   Reply With Quote

Old   July 19, 2011, 17:32
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,453
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Prapanj,

Quote:
Originally Posted by prapanj View Post
Often we find ourselves fantasize situations which can be handled only by magical crystal balls. We end up realizing that either a crystal ball is not needed or that nothing on earth can save us.
This reminds me of the novel "The Hitchhiker's Guide to the Galaxy", where a «race of "hyper-intelligent," "pan-dimensional" beings (...) had earlier built a supercomputer called Deep Thought to calculate the Answer to the Ultimate Question of Life, the Universe, and Everything. This computer, after seven and a half million years of calculation, had announced that the Answer is in fact 42
The story doesn't end there, it gets crazier and funnier But it pretty much sums up that no matter how smart/intelligent we think we are, only by asking the right questions will we be able to find at the very least good solutions

Quote:
Originally Posted by prapanj View Post
Thank you for the help and btw, you have an amazing insight into how things may go wrong (I know no one that can reproduce errors exactly!)
Well, installing OpenFOAM is my strongest point when it comes to using it . Lots of building and rebuilding and modifying it for working in Windows and such... so I got to know my way around with building it

Quote:
Originally Posted by prapanj View Post
Thanks again.
You're very welcome I'm glad I was able to help you! Only by combining my experience with me liking a good challenge, was I able to help you!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
compilation, openfoam 2.0.x, uipstream

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
ParMetis Thirdparty Compilation error in OpenFoam-1.6-ext juliasp OpenFOAM Installation 1 June 30, 2011 11:14
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 07:07
Compilation Error when running Tutorial 2.4 zhihuali CD-adapco 7 April 1, 2008 08:34
Compilation error with uparm.f Raghu CD-adapco 2 May 30, 2007 03:09
Compilation Error.... Arnab CD-adapco 4 September 12, 2004 16:54


All times are GMT -4. The time now is 14:32.