Re: [Gems-users] Ruby/Opal Load Error (linking issue?)


Date: Tue, 13 Apr 2010 23:44:43 -0500
From: Philip Garcia <pcgarcia@xxxxxxxx>
Subject: Re: [Gems-users] Ruby/Opal Load Error (linking issue?)
is there a difference between the bagle5 and bagle platform, or is that a typo?  I know I've been using the bagle platform for a few years now, and it works fine.  It needs some minor modifications to get rid of some of the warning messages, but I don't think there were ever any issues with opal0.init not working properly, at least I've never seen that issue.  That said, unless you have a reason to use the bagle platform (such as really wanting to use linux on the simulator), there isn't much advantage to using it.

Phil
On Apr 13, 2010, at 9:09 PM, Michael Zhen WANG wrote:

I currently solved the problem by adding [extern "C"] in front of the undefined symbols in ruby.c and opal.c. Now I can load ruby/opal successfully. I guess this is a linking problem with C and C++. I searched the list and did not find anyone using this trick. I wonder whether it has any side-effect or not.

One new question:
I am using bagle5/UltraSPARCII target currently. Not surprisingly, opal0.init does not work. Some posts in the list said UltraSPARCIII is the only one workable. I searched the Oracle website and find Solaris 10 download link with DVD image version instead of CD image version. Has anyone tried the DVD image version? Does it work? Anyone know where to download the CD image version Solaris 10?

Best
-Zhen
==================================================
Zhen WANG
Ph.D. Student
Department of Electrical and Computer Engineering
Rice University, Houston, Texas
http://www.owlnet.rice.edu/~zw3/
http://www.recg.org/
==================================================

On 4/12/2010 2:56 AM, Michael Zhen WANG wrote:
Hi,

I currently have some problem loading Ruby/Opal. I found that there are quite a lot different load errors related to "undefined symbol". But few are in my case.

I use: Simics 3.0.31; GEMS 2.1.1; gcc 3.4.5 (originally, I had GCC 4.2.0 not found error for loading Ruby. I followed the instruction on https://lists.cs.wisc.edu/archive/gems-users/2009-July/msg00016.shtml and downgraded libstdc++6 to the specified one. Then GCC 4.2.0 error was gone. But I got the below errors afterwards.)

Here are the actions I performed after starting simics (I basically follow the quick start instructions on GEMS wiki):

simics> read-configuration ../../../checkpoints/bagle-common_4p_4Gm.check (bagle5-suse73, UltraSPARCII, 4 processor 4G memory setting; should be OK as it's SPARC)
Warning: Cannot convert string "nil2" to type FontStruct
xterm:  unable to open font "6x10", trying "fixed"....
(I'm using SSH connecting to some server running simics and Xming for displaying console, shouldn't be related to Ruby/Opal)

simics> instruction-fetch-mode instruction-fetch-trace
[cpu0 info] Note that on this cpu, instruction-fetch-trace is implemented using instruction-cache-access-trace with a suitable cache line size.
[cpu1 info] Note that on this cpu, instruction-fetch-trace is implemented using instruction-cache-access-trace with a suitable cache line size.
[cpu4 info] Note that on this cpu, instruction-fetch-trace is implemented using instruction-cache-access-trace with a suitable cache line size.
[cpu5 info] Note that on this cpu, instruction-fetch-trace is implemented using instruction-cache-access-trace with a suitable cache line size.
simics> istc-disable
Turning I-STC off and flushing old data
simics> dstc-disable
Turning D-STC off and flushing old data
simics> cpu-switch-time 1
The switch time will change to 1 cycles (for CPU-0) once all processors have synchronized.
simics> load-module ruby
Error loading module 'ruby': Failed to load module 'ruby' ('/home/MichaelZhenWANG/gems/simics_3_workspace/x86-linux/lib/ruby.so'): "undefined symbol: ruby_session_set"
simics> load-module opal
Error loading module 'opal': Failed to load module 'opal' ('/home/MichaelZhenWANG/gems/simics_3_workspace/x86-linux/lib/opal.so'): "undefined symbol: _Z20initvar_dispatch_setPvP11conf_objectP10attr_valueS3_"


For opal load error, someone said we can always solve this by migrating functions in cache.c to cache.h. But I didn't find any symbol "
_Z20initvar_dispatch_setPvP11conf_objectP10attr_valueS3_" in cache.c. So can it really solve this error? If we need to migrate functions to cache.h, can I just copy the whole file in cache.c to cache.h?
For Ruby load error, someone had this problem a few years ago. But it's either not solved or solved by reinstalling everything. Is there any suggestion on this?

Thanks
-Zhen
-- 
==================================================
Zhen WANG
Ph.D. Student
Department of Electrical and Computer Engineering
Rice University, Houston, Texas
http://www.owlnet.rice.edu/~zw3/
http://www.recg.org/
==================================================
_______________________________________________ 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.


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