Re: [Gems-users] libelf.so.0 and libpython2.4.so problem


Date: Tue, 14 Jul 2009 09:36:45 -0500
From: Polina Dudnik <pdudnik@xxxxxxxxx>
Subject: Re: [Gems-users] libelf.so.0 and libpython2.4.so problem
Well, the relocation error occurs if you have pointers for example that are pointing beyond what a 32-bit value can accommodate. So, if for example your program allocates a lot of data. fPIC makes code position independent. Alternatively you could instead specify mcmodel=medium and that should also help. I'm wondering why you got a relocation error though. I don't think gems allocates enough data to cause this problem.

2009/7/14 Daniel Sánchez Pedreño <sanatox@xxxxxxxxx>
No no, it is an amd64-linux host type.


On Tue, Jul 14, 2009 at 4:23 PM, Polina Dudnik <pdudnik@xxxxxxxxx> wrote:
I see. Are you compiling on a 32 bit host?


2009/7/14 Daniel Sánchez Pedreño <sanatox@xxxxxxxxx>
OK, I have already solved my problem.

If you do "export LANG=en" (if you are sugin another language) you can see an error related to "relocation R_X86_64_32 can not be used when making a shared object".

The solution I found is to add the -fPIC command to CC=g++ in common/Makefile.common. You must be sure to perform a "make clean" and to remove manually the "ruby.o" object before a new attempt.

I hope this can be useful to anybody.

Chau!!!


2009/7/14 Daniel Sánchez Pedreño <sanatox@xxxxxxxxx>

Hi Polina,

actually these libraries are included within the simics 3 installation. So, I just pointed LD_LIBRARY_PATH to $HOME/virtutech/simics-3.0.31/amd64-linux/sys/lib/ (where I installed simics).

The previous error has been solved. But know the compilation breaks without any othe information, as you can see here:

=== Building module "ruby" ===
make[2]: se ingresa al directorio `$HOME/gems-2.1/simics_3_workspace/amd64-linux/obj/modules/ruby'

Using the Simics 3.0 API for ruby module
CCLD    ruby.so
make[2]: *** [$HOME/gems-2.1/simics_3_workspace/amd64-linux/lib/ruby.so] Error 2
make[2]: *** Se borra el archivo `$HOME/gems-2.1/simics_3_workspace/amd64-linux/lib/ruby.so'
make[2]: se sale del directorio `$HOME/gems-2.1/simics_3_workspace/amd64-linux/obj/modules/ruby'
make[1]: *** [ruby] Error 2
make[1]: se sale del directorio `/home/sanatox/gems-2.1/simics_3_workspace'
make: *** [all] Error 2

Any idea on how to know what is going on?

PS. Sorry for the comments in spanish :(



On Fri, Jul 10, 2009 at 6:51 PM, Polina Dudnik <pdudnik@xxxxxxxxx> wrote:
I think you're best off checking the Simics requirements in terms of libraries. Do you have the libraries it's looking for?

Polina

2009/7/8 Daniel Sánchez Pedreño <sanatox@xxxxxxxxx>
Dear list,

I am trying to install gems-2.1 with simics-3.0 in a machine which is now properly working with gems-2.1 and simics-2.1.

The compilation of ruby is OK but the problem arises when creating the module. The error message I get is:

=== Building module "ruby" ===
make[2]: se ingresa al directorio `$HOME/GEMS/gems-2.1-simics-3/simics_3_workspace/amd64-linux/obj/modules/ruby'
       module_id.c
DEP     ruby.d
DEP     module_id.d
make[2]: se sale del directorio `$HOME/GEMS/gems-2.1-simics-3/simics_3_workspace/amd64-linux/obj/modules/ruby'
make[2]: se ingresa al directorio `$HOME/GEMS/gems-2.1-simics-3/simics_3_workspace/amd64-linux/obj/modules/ruby'
Using the Simics 3.0 API for ruby module
CC      ruby.o
CC      module_id.o
       mod_ruby_commands.py
CCLD    ruby.so
/usr/bin/ld: warning: libelf.so.0, needed by $HOME/virtutech/simics-3.0.31/amd64-linux/bin/libsimics-common.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpython2.4.so, needed by $HOME/virtutech/simics-3.0.31/amd64-linux/bin/libsimics-common.so, not found (try using -rpath or -rpath-link)
$HOME/virtutech/simics-3.0.31/amd64-linux/bin/libsimics-common.so: undefined reference to `PyDict_SetItemString'
$HOME/virtutech/simics-3.0.31/amd64-linux/bin/libsimics-common.so: undefined reference to `PyString_AsString'
....

Any help will be apreciated!!!

Cheers


_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.




_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.





--
Daniel Sánchez Pedreño <dsanchez@xxxxxxxxxxx>
Grupo de Arquitectura y Computación Paralela.
Facultad de Informática. Universidad de Murcia.
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel: +34 868 887656     Fax: +34 868 884151
web: http://skywalker.inf.um.es/~dsanchez



--
Daniel Sánchez Pedreño <dsanchez@xxxxxxxxxxx>
Grupo de Arquitectura y Computación Paralela.
Facultad de Informática. Universidad de Murcia.
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel: +34 868 887656     Fax: +34 868 884151
web: http://skywalker.inf.um.es/~dsanchez

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.




_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.





--
Daniel Sánchez Pedreño <dsanchez@xxxxxxxxxxx>
Grupo de Arquitectura y Computación Paralela.
Facultad de Informática. Universidad de Murcia.
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel: +34 868 887656     Fax: +34 868 884151
web: http://skywalker.inf.um.es/~dsanchez

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.



[← Prev in Thread] Current Thread [Next in Thread→]