Hi again.
I finally solved this problem. I tell you what I did, as someone might have the same problem in the future.
It is a problem of libstdc++6 with gcc-3.4 (libstdc++6 is too new).
So I downloaded the package "libstdc++6_3.4.3-13_i386.deb" (from http://www.filewatcher.com/m/libstdc%2B%2B6_3.4.3-13_i386.deb.321084.0.0.html)and installed it with "dpkg -i libstdc++6_3.4.3-13_i386.deb".
I did "make clean" and compiled Ruby and Opal again (using gcc/g++ 3.4) and now I can do "load-module" for both Ruby and Opal from Simics with no problem at all.
Thank you anyway.
Regards,
David
2009/6/30 David Bonavila <david.bonavila@xxxxxxxxxxxxxxxxxx>
Hi.
After installing Simics (version 3.0.29) and compiling Ruby and Opal (GEMS 2.1) with gcc/g++ 3.4, I get the following error when I try to 'load-module' ruby or opal from Simics:
simics> load-module ruby
Error loading module 'ruby': Failed to load module 'ruby' ('/opt/gems/simics_workspace/x86-linux/lib/ruby.so'): "version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)"
The only "libstdc++.so.6" in my system is the one in "/usr/lib"
"libgcc_s.so.1" is in "/opt/virtutech/simics-3.0.29/x86-linux/sys/lib" and "/lib".
I have tried to copy libraries to /usr/lib: libsimics-common.so and libelf.so.0, as I read on this post: https://lists.cs.wisc.edu/archive/gems-users/2006-October/msg00003.shtml, but the error is still there.
I am running Ubuntu 8.04, clean install, and I have just installed "build-essential" and "gcc/g++ 3.4".
I don't have the environmental variable
LD_LIBRARY_PATH set.
In this post (https://lists.cs.wisc.edu/archive/gems-users/2008-December/msg00067.shtml) a user says that he "used binaries (g++) and libraries (libstdc++.so.6, libgcc_s.so etc) from the newly installed gcc.3.4.6 directory to compile ruby and opal". Can anyone tell me how to do that??
Here I leave some information that can be useful for you to try to help me solve this issue:
root@XPS:/opt/gems/simics/x86-linux/lib# ldd ruby.so
linux-gate.so.1 => (0xb7eef000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7a44000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7a2f000)
libsimics-common.so => /usr/lib/libsimics-common.so (0xb7828000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7803000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb77f8000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb76a9000)
/lib/ld-linux.so.2 (0xb7ef0000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7691000)
libelf.so.0 => /usr/lib/libelf.so.0 (0xb7682000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb767e000)
libbz2.so.1 => /lib/libbz2.so.1 (0xb766e000)
libpython2.4.so.1.0 => not found
root@XPS:/# ldd /usr/lib/libstdc++.so.6
linux-gate.so.1 => (0xb7f0f000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7de9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dde000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c8e000)
/lib/ld-linux.so.2 (0xb7f10000)
root@XPS:/# strings /lib/libgcc_s.so.1 | grep GCC
GCC_3.0 GCC_3.3
GCC_3.3.1 GCC_3.4
GCC_3.4.2 GCC_4.0.0
GCC_4.2.0
root@XPS:/# strings /usr/lib/libstdc++.so.6 | grep GCC
GCC_4.2.0 GCC_3.3
GCC_3.0
Any help will be appreciated.
Thank you!! Best Regards,
David
|