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

relocation x has invalid symbol index y

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2012, 02:48
Default relocation x has invalid symbol index y
  #1
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
After installing the openfoam when I open the terminal I get a lot of erros like this:

/usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 12

and then this final error:

/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

yet OF works fine, can you help me around this?
anishtain4 is offline   Reply With Quote

Old   May 17, 2012, 09:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Mahdi,

Without more information, we're left only guessing your problem. My guess is that either ParaView or Open-MPI is complaining about that problem. That should be because you installed a version of ParaView/Open-MPI that is either too recent or too old for your Linux installation.

To help you further, we'll need to know:
  1. How did you build/install OpenFOAM, Open-MPI and ParaView?
  2. Which version of OpenFOAM are you using?
  3. Which Linux distribution are you using?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 17, 2012, 15:24
Default
  #3
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Greeting Bruno

As you said I'm afraid it should be because of MPI because I have used paraview a lot but have not yet used parallel with OF, MPI was installed long before OF for a university course.

1. OF installation is according to the page: http://www.openfoam.org/download/ubuntu.php
2. It is 2.1.0 and paraview 3.12
3. Ubuntu 10.04 - the Lucid Lynx -
anishtain4 is offline   Reply With Quote

Old   May 17, 2012, 18:30
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi Mahdi,

Then... mmm, I'll have to test this for myself on a virtual machine...

But my guess is that your Ubuntu installation needs an update for all of the packages installed, since OpenFOAM's packages might be too recent... or maybe it's the other way around...

The other possibility is that you might have a custom Open-MPI installed...

Do you know if you have more than one MPI installed? And if it a custom version or an Ubuntu default one!?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 17, 2012, 18:56
Default
  #5
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
I always do update it via the update manager. Guess the best way is to first uninstall MPI and then reinstall openfoam. How should i do that?
anishtain4 is offline   Reply With Quote

Old   May 18, 2012, 10:53
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi anishtain4,

Either run:
Code:
sudo apt-get remove name_of_package_to_be_removed
If you know the name of the packages.

If you don't know, then go to the Ubuntu Center and search for the packages that you want to uninstall.

Or even, install Synaptic and use it to search and remove said packages:
Code:
sudo apt-get install synaptic
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 18, 2012, 15:47
Default
  #7
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
It seems this is not the problem. I did remove MPI, Openfoam and paraview and reinstalled them but the same problems insists on
anishtain4 is offline   Reply With Quote

Old   May 19, 2012, 17:51
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Hi Mahdi,

Well, then my suggestion is to build OpenFOAM from source or from the git version:
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 22, 2012, 05:49
Default
  #9
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Thanks wyldkat, I tried to do it with source but in the step to set the environmental variables I get plenty of errors like this:

bash: /home/mahdi/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory

I know it is because it has assumed that openfoam is installed in the home directory but I want to have it in the /opt, to correct this should I change all the references mentioned in the error to my installation link? I don't want to ruin anything

EDITED: got it, just commented a statement and uncommented another one, now everything is ok, but I think I may miss that crap on my terminal

Last edited by anishtain4; May 22, 2012 at 11:44.
anishtain4 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
gamma-ReTheta turbulence model for predicting transitional flows FelixL OpenFOAM Programming & Development 123 August 30, 2022 11:50
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


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