Re: [Gems-users] Struggling of compiling ruby


Date: Tue, 18 Jan 2011 19:41:03 +0800
From: "VLIW" <fgtnudt@xxxxxxxxx>
Subject: Re: [Gems-users] Struggling of compiling ruby
add "#include <string.h>" in the top of common/Debug.C file,
and try to compile the ruby.
maybe there still two errors like this.
 
------------------
Fu Guitao
 
 
 
------------------ Original ------------------
Date:  Tue, Jan 18, 2011 02:03 PM
To:  "gems-users@xxxxxxxxxxx"<gems-users@xxxxxxxxxxx>;
Subject:  [Gems-users] Struggling of compiling ruby
 
Hi, everyone

Recently I was trying to compile ruby following the tutorial First steps Simics/GEMS on Ubuntu 7.10.

I have been working on this for more than two weeks, but now I still have problems.

If anyone could help I really appreciate it, Thanks.

I post the errors below:


Ruby: Building protocol: MOSI_SMP_bcast
Ruby: Making slicc
cd ../slicc; make
make[1]: ../scripts/calc_host.sh: Command not found
make[1]: Entering directory `/home/tianyi/gems/slicc'
SLICC: Running flex and bison
make generated/generated
make[2]: ../scripts/calc_host.sh: Command not found
make[2]: Entering directory `/home/tianyi/gems/slicc'
make[2]: `generated/generated' is up to date.
make[2]: Leaving directory `/home/tianyi/gems/slicc'
SLICC: Building slicc executable
make x86-linux/bin/slicc.exec
make[2]: ../scripts/calc_host.sh: Command not found
make[2]: Entering directory `/home/tianyi/gems/slicc'
make[2]: `x86-linux/bin/slicc.exec' is up to date.
make[2]: Leaving directory `/home/tianyi/gems/slicc'
make[1]: Leaving directory `/home/tianyi/gems/slicc'
Ruby: Running slicc
make generated/MOSI_SMP_bcast/generated
make[1]: Entering directory `/home/tianyi/gems/ruby'
make[1]: `generated/MOSI_SMP_bcast/generated' is up to date.
make[1]: Leaving directory `/home/tianyi/gems/ruby'
Ruby: Generating ruby objects
make x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: Entering directory `/home/tianyi/gems/ruby'
/usr/bin/g++ -o x86-linux/generated/MOSI_SMP_bcast/obj/Debug.o -c common/Debug.C -DSPARC -DADD_ARCH_TO_API -DSIMICS30  -DIS_RUBY -DTARGET_SPARC_V9 -DTARGET_VA_BITS=64 -DTARGET_PA_BITS=64 -Wall -W -Wwrite-strings -Woverloaded-virtual -Wno-unused  -march=i686 -g -ggdb -g3 -O2 -finline-functions -DNO_VECTOR_BOUNDS_CHECKS -DMULTIFACET_NO_OPT_WARN  -DRUBY_DEBUG=false  -Inetwork/simple -Inetwork/garnet-flexible-pipeline -I. -Inetwork/garnet-fixed-pipeline -Inetwork/orion -I../common -I../common/gzstream -Ibuffers -Icommon -Islicc_interface -Iprofiler -Iconfig -Ieventqueue -Isystem -Iinterfaces -Isimics -Itester -Irecorder -Ilog_tm -Irock -Igenerated/MOSI_SMP_bcast -I../common/ioutil -Inetwork -I/home/tianyi/gems/simics-3.0.31/src/include -I/home/tianyi/gems/simics-3.0.31/src/include/simics -I/home/tianyi/gems/simics-3.0.31/src/include/simics/core -I/home/tianyi/gems/simics-3.0.31/src/include/simics/arch -I/home/tianyi/gems/simics-3.0.31/src/include/simics/util 
In file included from /usr/include/c++/4.4/ext/hash_map:60,
                 from ../common/std-includes.h:74,
                 from common/Global.h:108,
                 from common/Debug.C:65:
/usr/include/c++/4.4/backward/backward_warning.h:28: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
common/Debug.C: In static member function ????static bool Debug::checkFilterString(const char*)????:
common/Debug.C:258: error: ????strlen???? was not declared in this scope
common/Debug.C: In member function ????bool Debug::setFilterString(const char*)????:
common/Debug.C:279: error: ????strlen???? was not declared in this scope
common/Debug.C: In member function ????void Debug::setDebugOutputFile(const char*)????:
common/Debug.C:333: error: ????strcmp???? was not declared in this scope
make[1]: *** [x86-linux/generated/MOSI_SMP_bcast/obj/Debug.o] Error 1
make[1]: Leaving directory `/home/tianyi/gems/ruby'
make: *** [all] Error 2

Regards,
Tianyi
_______________________________________________
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.

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