CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   relocation x has invalid symbol index y (

anishtain4 May 17, 2012 02:48

relocation x has invalid symbol index y
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?

wyldckat May 17, 2012 09:42

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,

anishtain4 May 17, 2012 15:24

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:
2. It is 2.1.0 and paraview 3.12
3. Ubuntu 10.04 - the Lucid Lynx -

wyldckat May 17, 2012 18:30

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,

anishtain4 May 17, 2012 18:56

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?

wyldckat May 18, 2012 10:53

Hi anishtain4,

Either run:

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:

sudo apt-get install synaptic
Best regards,

anishtain4 May 18, 2012 15:47

It seems this is not the problem. I did remove MPI, Openfoam and paraview and reinstalled them but the same problems insists on

wyldckat May 19, 2012 17:51

Hi Mahdi,

Well, then my suggestion is to build OpenFOAM from source or from the git version:
Best regards,

anishtain4 May 22, 2012 05:49

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

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