Re: [Gems-users] opal.so problem


Date: Mon, 13 Mar 2006 09:43:53 -0800 (PST)
From: Dave <zhu_dave@xxxxxxxxx>
Subject: Re: [Gems-users] opal.so problem
Min,

"nm" returns an error because it cannot find "a.out". There is no ".o" files in that directory (/home/GEMS/simics-2.2.19/x86-linux/lib/). I'm copying the output from opal compilation, maybe it helps to see at what step it fails.

> make module DESTINATION=MOSI_SMP_bcast
Opal: building module
make generated/generated
make[1]: Entering directory `/home/GEMS/opal'
make[1]: `generated/generated' is up to date.
make[1]: Leaving directory `/home/GEMS/opal'
make BUILD_FLAGS=-DSIMICS module_go
make[1]: Entering directory `/home/GEMS/opal'
Made module
make[1]: Leaving directory `/home/GEMS/opal'
Opal: Linking simics module
cd ../simics/x86-linux/lib; make opal
make[1]: Entering directory `/home/GEMS/simics-2.2.19/x86-linux/lib'
=== Building module "opal" using the 2.0 API ===
gmake[2]: Circular /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c <- /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c depen! dency dropped.
Creating dependencies: module_id.c
Creating dependencies: opal.c
gmake[2]: Circular /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c <- /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c dependency dropped.
Creating exportmap.elf
Compiling opal.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/home/GEMS/simics/src/extensions/opal/opal.c:110: warning: ? defined but not used
Compiling module_id.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
Linking opal.so
/home/GEMS/simics-2.2.19/x86-linux/lib/opal.so: /home/GEMS/simics-2.2.19/x86-linux/
lib/opal.so: undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE9TagSearchEy
bbPPS0_Pj
gmake[2]: *** [/home/GEMS/simics-2.2.19/x86-linux/lib/opal.so] Error 1
gmake[2]: *** Deleting file `/home/GEMS/simics-2.2.19/x86-linux/lib/opal.so'
make[1]: *** [opal] Error 2
make[1]: Leaving directory `/home/GEMS/simics-2.2.19/x86-linux/lib'
make: *** [module] Error 2

Thanks,

Dave

"Min Xu (Hsu)" <xu@xxxxxxxxxxx> wrote:
Dave,

The error seems to be related to generic_cache_template not being
instantiated in none of the .C file, but still being called.
Perhaps we have a bug that we may missed an instantiation statement
(this is unlikely because the same code works here), or (more likely)
we have a compiler incompatibility problem.

To further determine the cause of the problem, can you use "nm"
to find our which .o file calls the undefined the symbol?

-Min

On Sun, 12 Mar 2006 Dave wrote :
> Hello All,
>
> I'm trying to compile opal on a x86 Linux machine (make module DESTINATION=MOSI_SMP_bcast). (gems 1.2, simics 2.2.19, gcc 4.0.0). I'm getting some errors wi! th the opal compilation as follows:
>
> === Building module "opal" using the 2.0 API ===
> gmake[2]: Circular /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c <- /home/GEMS/simics/x86-linux/obj/include/simics/module_id.c dependency dropped.
> Linking opal.so
> /home/GEMS/simics-2.2.19/x86-linux/lib/opal.so: /home/GEMS/simics-2.2.19/x86-linux/lib/opal.so: undefined symbol: _ZN22generic_cache_templateI21generic_cache_block_tE9TagSearchEybbPPS0_Pj
> gmake[2]: *** [/home/GEMS/simics-2.2.19/x86-linux/lib/opal.so] Error 1
> gmake[2]: *** Deleting file `/home/GEMS/simics-2.2.19/x86-linux/lib/opal.so'
> make[1]: *** [opal] Error 2
> make[1]: Leaving directory `/home/GEMS/simics-2.2.19/x86-linux/lib'
> make: *** [module] Error 2
>
>
> Thank you for your help!
>
> Dave
>
>
> ---------------------------------
> Yahoo! Mail
> Bring photos to life! New Ph! otoMail makes sharing a breeze.
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
[← Prev in Thread] Current Thread [Next in Thread→]