Well, at least its working now. I suppose the next time we see this
issue we'll suggest a re-install right away.
Regards,
Dan
nikolaos@xxxxxxxxxx wrote:
Hi Philip,
that is exactly what I finally did yesterday. I installed everything from
scratch and it is working now.
Thanks a lot and sorry for all those mails yesterday :)
Regards,
Nikolas
Quoting Philip Garcia <pcgarcia@xxxxxxxx>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've had similar problems in the past, especially when moving around
files. The best solution I found was to reinstall gems and ruby from
scratch. It's annoying, but often easier than trying to figure out
why things no longer compile. A couple weeks ago I had a similar
error with ruby and opal not compiling, I reinstalled gems multiple
times, reran the ./configure script in simics etc, and still got the
same errors. However with a reinstall of simics and reconfiguring
the new install things worked fine. I'd recommend keeping a backup
of the old simics, as you likely will want to copy over old home
directories you had in there if you have disk dumps or checkpoints
saved in that directory. I will also say that I currently have
everything running fine on a 32-bit ubuntu dapper system. Not sure
if it'll offer any help, but I have installed gcc-3.4 and g++-3.4 and
have those linked in the makefiles and the simics configure.
One last thing to check is since moving to the new platform, did you
reinstall the libraries in the simics directories as the gems wiki says?
Phil
On Nov 27, 2006, at 1:10 PM, nikolaos@xxxxxxxxxx wrote:
Hi again,
paths are not the problem. They seem to be in order. I did a
verbose make and
the last output I get is:
Updating goal targets....
Considering target file `build-device'.
File `build-device' does not exist.
Considering target file
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/ruby.so'.
File `/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/
ruby.so' does
not exist.
Considering target file `exportmap.elf'.
Finished prerequisites of target file `exportmap.elf'.
No need to remake target `exportmap.elf'.
Considering target file `ruby.o'.
Looking for an implicit rule for `ruby.o'.
Trying pattern rule with stem `ruby'.
Trying implicit prerequisite `ruby.c'.
Found prerequisite `ruby.c' as VPATH
`/media/gems/programs/sparc/simics/src/extensions/ruby/ruby.c'
Trying rule prerequisite
`/media/gems/programs/sparc/simics/src/extensions/ruby/Makefile'.
Found an implicit rule for `ruby.o'.
Pruning file
`/media/gems/programs/sparc/simics/src/extensions/ruby/ruby.c'.
Considering target file
`/media/gems/programs/sparc/simics/src/extensions/ruby/Makefile'.
File `/media/gems/programs/sparc/simics/src/extensions/ruby/
Makefile' was
considered already.
Pruning file `/home/nikolas/sparc/simics/src/extensions/ruby/
ruby.c'.
Finished prerequisites of target file `ruby.o'.
Giving up on target file `ruby.o'.
Finished prerequisites of target file
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/ruby.so'.
Giving up on target file
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/ruby.so'.
Finished prerequisites of target file `build-device'.
Giving up on target file `build-device'.
Reaping losing child 0x0808da10 PID 26661
make[1]: *** [ruby] Error 2
Removing child 0x0808da10 PID 26661 from chain.
make[1]: Leaving directory
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib'
Reaping losing child 0x08094140 PID 26650
make: *** [all] Error 2
Regards,
Nikolas
Quoting Dan Gibson <degibson@xxxxxxxx>:
The problem seems to be due to *where* the build process is
looking for
the object files:
/home/nikolas/gems/programs/sparc/simics/../ruby/x86-linux/
generated//obj/
Notice the double /. It *should* be looking in
x86-linux/generated/[PROTOCOL]/obj, but obviously the protocol string
appears to be blank. I don't think this is an Ubuntu problem or a gcc
problem, but something going wrong somewhere in the Makefiles.
Are you properly defining the PROTOCOL Makefile variable on the
command
line?
The path above is specified by ruby's module makefile, in
gems/ruby/module/Makefile. Can you verify that the paths are
correctly
set for Simics 2.2.17 in that file? It would seem that, somehow, the
definition of PROTOCOL is not surviving to reach that makefile.
Regards,
Dan
nikolaos@xxxxxxxxxx wrote:
I did eliminate the symlinks. No change noticed.
The obj directory exists in MOSI_SMP_bcast directory and is full
of object
files
while the make is happening, but it is being removed at the end
of the
process.
Quoting Dan Gibson <degibson@xxxxxxxx>:
I assume then that there are object files in a subdirectory of
$GEMS/ruby/x86-linux?
Try eliminating those symlinks and recompile.
Mike Marty wrote:
/home/nikolas/gems is a link to /media/gems
so this shouldn't affect anything. I am beginning to think
that since
Ubuntu
does a minimal installation by default, I am missing a library or
something
similar. Unfortunately the error message isn't helping.
No, I doubt that. The symbol it is having problems linking
with is
defined in $GEMS/common/util
The issue here is that Ruby/Opal Makefiles will build the
object files.
Then to build a Simics module, we use the Virtutech Makefile
which may
be
using a different compiler. The compilers do not seem to agree
on the
names of mangled symbols.
This problem comes up frequently on the list. We currently do
not have
a
clear, bullet-proof solution.
--Mike
Quoting Dan Gibson <degibson@xxxxxxxx>:
A path seems to be inconsistent:
/home/nikolas/gems/programs/sparc in one message
/media/gems/programs/sparc/ in another...
This is probably an artifact of the reformat you mentioned --
did you
copy files directly from one install to the other by chance?
Otherwise,
grep for whichever path is wrong, and change it.
Regards,
Dan Gibson
nikolaos@xxxxxxxxxx wrote:
The "make ruby" command from
$GEMS/simics/x86-linux/lib
fails with the same error message:
=== Building module "ruby" using the 2.0 API ===
ls:
/home/nikolas/gems/programs/sparc/simics/../ruby/x86-linux/
generated//obj/*.o:
No such file or directory
make: *** [ruby] Error 2
I have tried both with
SIMICS_VERSION := -DSIMICS_2_2
and
SIMICS_VERSION += -DSIMICS_2_2
Could this be a compatibility problem with gcc-3.3 ?
Nikolas
Quoting Dan Gibson <degibson@xxxxxxxx>:
The latest version of GEMS handles Simics versions a little
differently, by changing Makefile.simics_version. Don't use
the
append
operator in Makefile.simics_version in GEMS 1.2+... that
could break
several #ifdefs in various places. Use := instead of += if
you're
defining the Simics version.
Regards,
Dan Gibson
Javier Merino wrote:
Check that you have the correct simics version in
$GEMS/common/Makefile.common, around line 46:
SIMICS_VERSION += -DSIMICS_2_2
Good luck,
Javi
Nikolaos wrote:
Yes, about 4 times...
I am using
./configure CC=/usr/lib/gcc-3.3
and I am using g++-3.3 in the GEMS Makefiles
Nikolas
Quoting Dan Gibson <degibson@xxxxxxxx>:
Have your run the Simics configure step?
cd $GEMS/simics/x86-linux
../configure
Regards,
Dan Gibson
nikolaos@xxxxxxxxxx wrote:
Hello again,
I had to format my PC and I changed my linux distribution
to Ubuntu.
I
am
trying
to setup GEMS again but I am having some problems
that I
haven't
been
able
to
solve. From what I understand something goes wrong
during
the
linking
process.
I am using gcc 3.3, Simics 2.2.17 and GEMS 1.2
The output I am getting from the 2 modules is:
From Ruby:
Template closure done
Made module
make[1]: Leaving directory `/media/gems/programs/sparc/ruby'
Ruby: Linking simics module
cd ../simics/x86-linux/lib; make ruby
make[1]: Entering directory
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib'
=== Building module "ruby" using the 2.0 API ===
make[1]: *** [ruby] Error 2
make[1]: Leaving directory
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib'
make: *** [all] Error 2
From Opal:
Made module
make[1]: Leaving directory `/media/gems/programs/sparc/opal'
Opal: Linking simics module
cd ../simics/x86-linux/lib; make opal
make[1]: Entering directory
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib'
=== Building module "opal" using the 2.0 API ===
gmake[2]: Circular
/home/nikolas/gems/programs/sparc/simics/x86-linux/obj/include/
simics/module_id.c
<-
/home/nikolas/gems/programs/sparc/simics/x86-linux/obj/include/
simics/module_id.c
dependency dropped.
Linking opal.so
/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/
opal.so:
/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/
opal.so:
undefined
symbol:
_Z20initvar_dispatch_setPvP11conf_objectP10attr_valueS3_
gmake[2]: ***
[/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/opal.so]
Error 1
gmake[2]: *** Deleting file
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib/
opal.so'
make[1]: *** [opal] Error 2
make[1]: Leaving directory
`/media/gems/programs/sparc/simics-2.2.17/x86-linux/lib'
make: *** [module] Error 2
I have tried recopying my library files, cleaning up
previous makes
etc.
to
no
avail. Any suggestions?
Thanks in advance,
Nikolas
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/"
to your
search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to
your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to
your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to
your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your
search.
--
http://www.cs.wisc.edu/~gibson [esc]:wq!
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your
search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your
search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your
search.
--
http://www.cs.wisc.edu/~gibson [esc]:wq!
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your
search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
--
http://www.cs.wisc.edu/~gibson [esc]:wq!
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFFa0zukSK2LwjyZ3wRAuorAKCkZiKifgGaI64h6gDb/MmnwADoWwCePwWI
Sytr2VfVEWEZcQ0T2yYMWTE=
=Ui7V
-----END PGP SIGNATURE-----
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
|
|