Re: [Gems-users] Failed to load module 'ruby'


Date: Tue, 27 Nov 2007 16:00:03 +1030
From: May Zhao <zhao0043@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Gems-users] Failed to load module 'ruby'
Thank you for the replies. I resolved problem.
The problems is not because of SIMICS_EXTRA_LIB.
It is caused by GCC.
Our system install the new GCC 3.4.6 and also libstdc++.so has been changed.
I still used old GCC 3.2.3 to compile
The error said:
Error loading module 'ruby': Failed to load module 'ruby'
('/home/users/mayzhao/gems/simics_3_workspace/x86-linux/lib/ruby.so'):
"cannot open shared object file: No such file or directory"

At first glance, I thought "ruby.so" was not right. However,
I use ldd ruby.so ,which told me : libstdc++.so.6 => not found. So the reason is
libstdc++.so.6, not ruby.so

libstdc++.so.6 is required by GCC 3.4.6, but GCC 3.2.3 needs libstdc++.so.5.

My conclusions:
If still want to use old gcc version, there are two places in which we have to
check gcc and library path:
$GEMS/common/Makefile.common
$GEMS/ruby/module/Makefile
$GEMS/simics_3_workspace/compiler.mk


   

At 04:30 PM 23/11/2007 +1030, you wrote:
Hello everyone,

         I have been compiled and used GEMS for a while. Recently I
recompiled again, but
there is an error when I load module 'ruby', I haven't changed any
configuration.
         It looks like ruby.so doesn't exist or wrong directory, but I have
checked that ruby.so is in the
right directory with right operation permission.
         Asked administrator if some changes on our machine. I was told
that gcc has been updated
from 3.2.3 to 3.4.6. Not sure if it is a reason.
        I used both old version and new revision gcc to make GEMS. All give
me the following error.
        Can anybody help me out?
        Thank you very much in advance.

Best regards,
May


$ ./simics -stall
Checking out a license... done: academic license.

   +----------------+    Copyright 1998-2006 by Virtutech, All Rights Reserved
   |   Virtutech    |    Version: Simics 3.0.18
   |     Simics     |    Build: 1351  Host: x86-linux
   +----------------+
     www.simics.com     "Virtutech" and "Simics" are trademarks of
Virtutech AB

Use of this software is subject to appropriate license.
Type 'copyright' for details on copyright.
Type 'help help' for info on the on-line documentation.

simics> read-configuration ../../8p-compile
simics> istc-disable
Turning I-STC off and flushing old data
simics> dstc-disable
Turning D-STC off and flushing old data
simics> magic-break-enable
simics> load-module ruby
Error loading module 'ruby': Failed to load module 'ruby'
('/home/users/mayzhao/gems/simics_3_workspace/x86-linux/lib/ruby.so'):
"cannot open shared object file: No such file or directory"

_______________________________________________
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.

Xuemei Zhao
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
School of Informatics and Engineering
Engineering Building
Flinders University,
Adelaide 5042, S.A.
Australia.

Home Phone:    (08) 8357 5983
Office Phone:    (08) 8201 5522
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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