Hello,
I tried to install gems2.1.1 with simics-4.2 on a sparc workstation.
Followed the instructions given in mail-list, I managed to compile
ruby and load the ruby module. The compiler version is 4.2.1,
downloaded from Oracle. I made several manual modification further.
1. In Makefile.common, add -xcode=pic32 to OPT_FLAGS to avoid compilation error
2. In Makefile.common, comment out getopt related settings
3. In Makefile under ruby/module, change sparcv9 library path to
-R/usr/local/gcc/lib/sparcv9
However, when I tried to type command in the Simics Xterm, for
example, "ls", the simics aborted with some errors, just like Woomin
Hwang met.
https://lists.cs.wisc.edu/archive/gems-users/2011-March/msg00016.shtml
running> failed assertion 'valid_bytes == 4' at fn tuple_int_string_t
ATMTP_disassemble(u_char*, int, conf_object_t*, void*) in
rock/Rock.C:609
failed assertion 'valid_bytes == 4' at fn tuple_int_string_t
ATMTP_disassemble(u_char*, int, conf_object_t*, void*) in
rock/Rock.C:609
At this point you might want to attach a debug to the running and get to the
crash site; otherwise press enter to continue
I don't know whether this problem is due to my manual modification or
some other problems. Would you give me some hints?
Thanks a million!
The error detail is as follows:
running> failed assertion 'valid_bytes == 4' at fn tuple_int_string_t
ATMTP_disassemble(u_char*, int, conf_object_t*, void*) in
rock/Rock.C:609
failed assertion 'valid_bytes == 4' at fn tuple_int_string_t
ATMTP_disassemble(u_char*, int, conf_object_t*, void*) in
rock/Rock.C:609
At this point you might want to attach a debug to the running and get to the
crash site; otherwise press enter to continue
PID: 11529
Abort (SIGABRT) in main thread
#0 0xffffffff7cadaf1c in __lwp_kill + 0x8 (/lib/sparcv9/libc.so.1 + 0xdaf1c)
#1 0xffffffff7ca72c0c in raise + 0x10 (/lib/sparcv9/libc.so.1 + 0x72c0c)
#2 0xffffffff7ca4b2c8 in abort + 0xd0 (/lib/sparcv9/libc.so.1 + 0x4b2c8)
#3 0xffffffff741d8d6c in ATMTP_disassemble + 0x314
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x1d8d6c)
#4 0xffffffff77858390 in _START_ + 0x58390
(/lab/home/zuoqi/simics-4.2/simics-sun-serengeti-4.2.3/sparc64-solaris/lib/sparc-u3.so
+ 0x58390)
#5 0xffffffff77857b18 in _START_ + 0x57b18
(/lab/home/zuoqi/simics-4.2/simics-sun-serengeti-4.2.3/sparc64-solaris/lib/sparc-u3.so
+ 0x57b18)
#6 0xffffffff7eec0a18 in SIM_disassemble_address + 0x1c0
(/lab/home/zuoqi/simics-4.2/simics-4.2.70/sparc64-solaris/bin/libsimics-common.so
+ 0x2c0a18)
#7 0xffffffff7430ea2c in _Z27SIMICS_disassemble_physicaliy + 0x14
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x30ea2c)
#8 0xffffffff7431b248 in _Z14SIMICS_is_lddaP19generic_transaction +
0x80 (/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x31b248)
#9 0xffffffff7424a158 in
_ZN15SimicsProcessor14getRequestTypeEP19generic_transaction + 0x1b8
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x24a158)
#10 0xffffffff7424ae54 in
_ZN15SimicsProcessor11makeRequestEP19generic_transaction + 0x354
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x24ae54)
#11 0xffffffff74231b80 in
_ZN12SimicsDriver11makeRequestEP19generic_transaction + 0x120
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x231b80)
#12 0xffffffff74067dec in ruby_operate + 0x4
(/lab/home/zuoqi/gems-2.1.1/simics_42_workspace/sparc64-solaris/lib/ruby.so
+ 0x67dec)
#13 0xffffffff778bcc78 in _START_ + 0xbcc78
(/lab/home/zuoqi/simics-4.2/simics-sun-serengeti-4.2.3/sparc64-solaris/lib/sparc-u3.so
+ 0xbcc78)
#14 0xffffffff7ee662b0 in VT_last_device_stall_time + 0xc10
(/lab/home/zuoqi/simics-4.2/simics-4.2.70/sparc64-solaris/bin/libsimics-common.so
+ 0x2662b0)
#15 0xffffffff7ee66ac8 in VT_last_device_stall_time + 0x1428
(/lab/home/zuoqi/simics-4.2/simics-4.2.70/sparc64-solaris/bin/libsimics-common.so
+ 0x266ac8)
The simulation state has been corrupted. Simulation cannot continue.
Please restart Simics.
--
Regards
Qi Zuo
School Of Computer Science and Technology
Beijng Institute of Technology, China, 100081
|