Re: [Gems-users] Problem Compiling Ruby


Date: Mon, 18 Sep 2006 12:08:04 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] Problem Compiling Ruby
Hi Nikolas,

ruby.c is a C-language file. vector templates are C++. Use an array of uint64's instead.

Regards,
Dan

nikolaos@xxxxxxxxxx wrote:
Good afternoon,

I have modified the Ruby code adding a vector<uint64> variable that I needed for
some comparisons. Thing is that ruby won't compile now. The last lines of the
compilation output are:

touch x86-linux/generated/MOSI_SMP_bcast/bin/ruby.closure
Template closure done
Made module
make[1]: Leaving directory `/users/scratch/nikolaos/programs/sparc/ruby'
Ruby: Linking simics module
cd ../simics/x86-linux/lib; make ruby
make[1]: Entering directory
`/users/scratch/nikolaos/programs/sparc/simics-2.2.17/x86-linux/lib'
=== Building module "ruby" using the 2.0 API ===
gmake[2]: *** No rule to make target `vector', needed by `ruby.d'.  Stop.
make[1]: *** [ruby] Error 2
make[1]: Leaving directory
`/users/scratch/nikolaos/programs/sparc/simics-2.2.17/x86-linux/lib'
make: *** [all] Error 2


my gcc version is:
gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

Could it be a problem of the gcc version I am using? I have tried including both
<vector> and <vector.h> as I saw that the latter is more backwards compatible,
but the result was the same.

Any insights would be more than welcomed

Thanks,

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.


--
http://www.cs.wisc.edu/~gibson [esc]:wq!

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