Re: [Gems-users] Compile Ruby


Date: Tue, 30 May 2006 23:25:32 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Compile Ruby
Hi James,

Specifying DESTINATION causes the simics module for ruby to be built. Specifying PROTOCOL alone only builds Ruby's tester.
It looks like you're running into a library incompatibility.

Try the following:
* re-copy your library files (libstdc, etc) as it mentions in the wiki
* remove new_GEMS/simics-2.2.19/x86-linux/lib/ruby.so and [simics]/home/[target]/modules/ruby*
* remove new_GEMS/simics-2.2.19/x86-linux/lib/modules.cache
* make clean in new_GEMS/ruby

Also, are you using a different version of Simics for GEMS 1.2 than you were for GEMS 1.1? Occasionally library incompatibilities surface when using binary distributions under linux.

Regards,
Dan Gibson

James Wang wrote:

Hi all:
   I was trying to compile ruby and make PROTOCOL
part went ok. But when I specify DESTIANTION, I got
the following error:
=== Building module "ruby" using the 2.0 API ===
Creating dependencies: module_id.c
Creating dependencies: ruby.c
Creating exportmap.elf
Compiling ruby.c
/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics/src/extensions/ruby/ruby.c:108:
warning: `mm_id' defined but not used
Compiling module_id.c
Linking ruby.so
/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics-2.2.19/x86-linux/lib/ruby.so:
/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics-2.2.19/x86-linux/lib/ruby.so:
symbol
_ZNSt15basic_streambufIcSt11char_traitsIcEE7seekposESt4fposI11__mbstate_tESt13_Ios_Openmode,
version GLIBCPP_3.2 not defined in file libstdc++.so.5
with link time reference
make[2]: ***
[/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics-2.2.19/x86-linux/lib/ruby.so]
Error 1
make[2]: *** Deleting file
`/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics-2.2.19/x86-linux/lib/ruby.so'
make[1]: *** [ruby] Error 2
make[1]: Leaving directory
`/afs/ec.auckland.ac.nz/project/hstm/wcon006/new_GEMS/simics-2.2.19/x86-linux/lib'
make: *** [all] Error 2

   I am on a Debian x86 system gcc 3.3.5, I was
trying to compile GEMS 1.2, and GEMS 1.1 works fine on
it.


Regards
James
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users

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