[Gems-users] Failed to load module 'opal' "undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE18registerCheckpointEP8confio_t"


Date: Tue, 24 Mar 2009 16:18:48 +0800
From: Sitos Lin <sitos.lin@xxxxxxxxx>
Subject: [Gems-users] Failed to load module 'opal' "undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE18registerCheckpointEP8confio_t"
Hi all:
  I have downloaded Simics 3.0.31 and Gems 2.1 and installed/compiled
them. When I follow the instructions in the QuickStart to load ruby
and opal modules, I encounter the problem, "Error loading module
'opal': Failed to load module 'opal'
('my_path_to_workspace/x86-linux/lib/opal.so'):"undefined symbol:
_ZN22generic_cache_templateI21generic_cache_block_tE18registerCheckpointEP8confio_t".
I have checked the mailing list to try to find out the solution. There
are many people encounter this problem, and there are several possible
solutions as follows. However, I still have many questions.
  1. Copy libstdc++ files to the simics directory (as explained in the
wiki page): (a) Does anyone tell me what files should be copied into
the 'simics' directory? For example, /lib/libgcc_s.so.1?
/usr/lib/libstdc++.so.*? (b) Which one is the 'simics' directory? The
simics root (includes bin/workspace-setup) or the symbolic link
'simics' in gems which links to the workspace?
  2. Use gcc3.4.6 to compile opal module: However, I can only compile
opal module by g++ 4.2.4. Should I change some settings to compile
opal module by gcc3.4.6? There are a lot of errors when I compile opal
with gcc-3.4 or g++-3.4.
  3. Move the failing function definition from cache.C to cache.h: I
am not sure how and where to move the function from and to. Is there a
more precise instruction?
Thanks in advance
  Sitos
[← Prev in Thread] Current Thread [Next in Thread→]