Re: [Gems-users] Ruby Compile Problem


Date: Fri, 9 Oct 2009 23:05:28 +0530 (IST)
From: Abhishek Moghe <abhishekmoghe@xxxxxxxxxxx>
Subject: Re: [Gems-users] Ruby Compile Problem
hello,

I installed c-shell and now when i try to compile ruby or opal, i get this error


-for ruby
.
.
.

make generated/MOSI_SMP_bcast/generated
make[1]: Entering directory `/home/amoghe/gems-2.1/ruby'
make[1]: `generated/MOSI_SMP_bcast/generated' is up to date.
make[1]: Leaving directory `/home/amoghe/gems-2.1/ruby'
Ruby: Generating ruby objects
make amd64-linux/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: Entering directory `/home/amoghe/gems-2.1/ruby'
make[1]: Circular amd64-linux/generated/MOSI_SMP_bcast/obj/init.o <- default_param.h dependency dropped.
make[1]: *** No rule to make target `simics/api.h', needed by `amd64-linux/generated/MOSI_SMP_bcast/obj/attrparse.o'.  Stop.
make[1]: Leaving directory `/home/amoghe/gems-2.1/ruby'
make: *** [all] Error 2




-for opal
.
.
.
ccops.d:@'\'' | sed -e '\''s@^\(.*\)\.d:@\1.d \1.o:@'\'' > amd64-linux/obj/ccops.d #'
make[1]: Leaving directory `/home/amoghe/gems-2.1/opal'
make[1]: Entering directory `/home/amoghe/gems-2.1/opal'
make[1]: *** No rule to make target `global.h', needed by `amd64-linux/obj/ccops.o'.  Stop.
make[1]: Leaving directory `/home/amoghe/gems-2.1/opal'
make: *** [module] Error 2


please let me know what do i need to do.




From: Philip Garcia <pcgarcia@xxxxxxxx>
To: Gems Users <gems-users@xxxxxxxxxxx>
Sent: Thu, 1 October, 2009 3:29:36 PM
Subject: Re: [Gems-users] Ruby Compile Problem

You don't need to use csh to run the script, it just needs to be installed on your system.  Also, I don't think the set command is the same in bash as it is in csh.  If you run your script as it exists, it will just output "-" to the terminal, which is not what you want (try it).

Phil
On Oct 1, 2009, at 1:05 AM, Abhishek Moghe wrote:

I am trying to compile ruby and I am getting few errors.



System Configuration:

Simics installation directory:
/home/amoghe/virtutech/simics-3.0.31

Gems installation directory:
/home/amoghe/gems-2.1

Steps completed:

1. modified calc_host.sh because system has bash shell (contents are as follows)


set OS_PART=linux
set ARCH=amd64
    
echo $ARCH-$OS_PART


2. Tried to run

make PROTOCOL=MOSI_SMP_bcast DESTINATION=MOSI_SMP_bcast

and the result is as follows

ls: cannot access generated/MOSI_SMP_bcast/*.C: No such file or directory
Ruby: Building protocol: MOSI_SMP_bcast
Ruby: Making slicc
cd ../slicc; make
make[1]: Entering directory `/home/amoghe/gems-2.1/slicc'
SLICC: Running flex and bison
make generated/generated
make[2]: Entering directory `/home/amoghe/gems-2.1/slicc'
make[2]: `generated/generated' is up to date.
make[2]: Leaving directory `/home/amoghe/gems-2.1/slicc'
SLICC: Building slicc executable
make -/bin/slicc.exec
make: invalid option -- '/'
make: invalid option -- '/'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for x86_64-redhat-linux-gnu
Report bugs to <bug-make@xxxxxxx>
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/amoghe/gems-2.1/slicc'
make: *** [all] Error 2



what do i need to do ?






Keep up with people you care about with Yahoo! India Mail. Learn how. _______________________________________________
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.




Yahoo! India has a new look. Take a sneak peek.
[← Prev in Thread] Current Thread [Next in Thread→]