[Gems-users] problems building GEMS


Date: Mon, 15 May 2006 14:47:28 -0400 (EDT)
From: Daniel Nussbaum - Sun Microsystems - Burlington United States <dn142869@xxxxxxxxxxxxxxxxxxxx>
Subject: [Gems-users] problems building GEMS
Hi folks.

I'm a new prospective GEMS user and I'm running into problems building
ruby.  I suspect I'm missing something in my simics installation, but
I don't see anything about it in the tutorial.

I'm currently seeing the problem when building on an x86-linux
platform, but I've seen the exact same problem building on an opteron
box (amd64-linux).

I'd be happy to provide more details if somebody can help me here.

A partial transcript of the failed build follows, followed by changes
I've made to to common/Makefile.common

Thanks very much.

Dan Nussbaum

-----------

[dn142869@lintilla2 dan]$ PATH=/lab/iceberg/tools/linux/bin/:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/dan/bin
[dn142869@lintilla2 dan]$ cd /lab/scale/dann/GEMS/x86-linux/gems-1.2
[dn142869@lintilla2 gems-1.2]$ tar xzvf ../../gems-release1.2.tar.gz
...
[dn142869@lintilla2 gems-1.2]$ __SIMICS_BASE=/lab/iceberg/tools/simics/linux/simics-2.0.23
[dn142869@lintilla2 gems-1.2]$ $__SIMICS_BASE/scripts/user-install.sh $__SIMICS_BASE
...
[dn142869@lintilla2 gems-1.2]$ ln -s simics-2.0.23 simics
[dn142869@lintilla2 gems-1.2]$ cd common
[dn142869@lintilla2 common]$ mv Makefile.common Makefile.common.orig
[dn142869@lintilla2 common]$ cp -a /lab/scale/dann/GEMS/common__Makefile.common Makefile.common
[dn142869@lintilla2 common]$ cd ../ruby
[dn142869@lintilla2 ruby]$ make PROTOCOL=MOESI_CMP_token DESTINATION=MOESI_CMP_token
...
make[1]: Leaving directory `/lab/scale/dann/GEMS/x86-linux/gems-1.2/ruby'
Ruby: Linking simics module
cd ../simics/x86-linux/lib; make ruby
make[1]: Entering directory `/lab/scale/dann/GEMS/x86-linux/gems-1.2/simics-2.0.23/x86-linux/lib'
Generating new module list
make[1]: Leaving directory `/lab/scale/dann/GEMS/x86-linux/gems-1.2/simics-2.0.23/x86-linux/lib'
make[1]: Entering directory `/lab/scale/dann/GEMS/x86-linux/gems-1.2/simics-2.0.23/x86-linux/lib'
make[1]: *** No rule to make target `ruby'.  Stop.
make[1]: Leaving directory `/lab/scale/dann/GEMS/x86-linux/gems-1.2/simics-2.0.23/x86-linux/lib'
make: *** [all] Error 2
[dn142869@lintilla2 ruby]$ 

------------

dn142869@dighton>gdiff -u Makefile.common.orig Makefile.common
--- Makefile.common.orig	2006-02-14 22:35:43.000000000 -0500
+++ Makefile.common	2006-05-15 10:56:44.000000000 -0400
@@ -38,7 +38,8 @@
 #                    ../simics/x86-linux/config/host-config
 #                    ../simics/x86-linux/config/host-config.h
 
-CC_VERSION=3.4.1
+#CC_VERSION=3.4.1
+CC_VERSION=3.4.6
 
 ## Define the Simics version that is being used. Currently this is only utilized when compiling Opal, because
 ##   the opal/system/simdist12.C file has mm_* functions whose number of arguments differ in Simics 2.0 and 2.2
@@ -46,11 +47,13 @@
 #SIMICS_VERSION += -DSIMICS_2_2
 
 ifeq ($(HOST_TYPE),amd64-linux)
-  CC =  /s/gcc-3.4.1/bin/g++
-  #CC =  /usr/bin/g++
+  #CC =  /s/gcc-3.4.1/bin/g++
+  CC =  /lab/iceberg/tools/linux/bin/g++
   OPT_FLAGS = -m64 -march=opteron -fPIC
-  LDFLAGS += -ggdb -g3 -Wl,-R/s/gcc-3.4.1/lib64 
-  MODULE_LDFLAGS += -Wl,-R/s/gcc-3.4.1/lib64
+  #LDFLAGS += -ggdb -g3 -Wl,-R/s/gcc-3.4.1/lib64 
+  LDFLAGS += -ggdb -g3 -Wl,--rpath -Wl,/lab/iceberg/tools/linux/lib64
+  #MODULE_LDFLAGS += -Wl,-R/s/gcc-3.4.1/lib64
+  MODULE_LDFLAGS += -Wl,--rpath -Wl,/lab/iceberg/tools/linux/lib64
 
 else
 ifeq ($(HOST_TYPE),v9-sol8-64)
@@ -61,10 +64,14 @@
   LDFLAGS += -m64 -L/s/getopt-0/lib -lgetopt
 else
 ifeq ($(HOST_TYPE),x86-linux)
-   CC =  /s/gcc-3.4.3/bin/g++
+  CC =  /lab/iceberg/tools/linux/bin/g++
+  #CC =  /s/gcc-3.4.3/bin/g++
   #CC =  /usr/bin/g++
-  OPT_FLAGS = -march=i686
-  LDFLAGS += -ggdb -g3
+  OPT_FLAGS = -m32 -march=i686 -fPIC
+  #OPT_FLAGS = -march=i686
+  LDFLAGS += -ggdb -g3 -Wl,--rpath -Wl,/lab/iceberg/tools/linux/lib
+  #LDFLAGS += -ggdb -g3
+  MODULE_LDFLAGS += -Wl,--rpath -Wl,/lab/iceberg/tools/linux/lib
 else
   CC = /dev/null
 endif
dn142869@dighton>
[← Prev in Thread] Current Thread [Next in Thread→]