조정욱,
I recommend using an older version of gcc. It seems that gcc folks are deprecating some stuff that GEMS depends on. You can follow the error message and use -fpermissive flag, but you're most likely to continue seeing such problems.
I've personally compiled GEMS using 3.4.6 and 4.1.2.
Byn On Nov 16, 2009, at 8:45 AM, 조정욱 wrote: Thank you for your help. I fix "Makefile.common" to the full path . SIMICS_INCLUDE_ROOT := /home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include
It passed the error but another error happened.
I appendix the error message.
cho@cho-desktop:~/gems/gems-2.1.1/ruby$ make -j 4 PROTOCOL=MOSI_SMP_bcast DESTINATION=MOST_SMP_bcast Ruby: Building protocol: MOSI_SMP_bcast Ruby: Making slicc cd ../slicc; make
make[1]: Entering directory `/home/cho/gems/gems-2.1.1/slicc' SLICC: Running flex and bison make generated/generated make[2]: Entering directory `/home/cho/gems/gems-2.1.1/slicc' make[2]: `generated/generated'는 이미 갱신되었습니다.
make[2]: Leaving directory `/home/cho/gems/gems-2.1.1/slicc' SLICC: Building slicc executable make amd64-linux/bin/slicc.exec make[2]: Entering directory `/home/cho/gems/gems-2.1.1/slicc' make[2]: `amd64-linux/bin/slicc.exec'는 이미 갱신되었습니다.
make[2]: Leaving directory `/home/cho/gems/gems-2.1.1/slicc' make[1]: Leaving directory `/home/cho/gems/gems-2.1.1/slicc' Ruby: Running slicc make generated/MOSI_SMP_bcast/generated make[1]: Entering directory `/home/cho/gems/gems-2.1.1/ruby'
make[1]: `generated/MOSI_SMP_bcast/generated'는 이미 갱신되었습니다. make[1]: Leaving directory `/home/cho/gems/gems-2.1.1/ruby' Ruby: Generating ruby objects make amd64-linux/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: Entering directory `/home/cho/gems/gems-2.1.1/ruby' make[1]: amd64-linux/generated/MOSI_SMP_bcast/obj/init.o <- default_param.h 상호 의존성은 무시됩니다. /usr/bin/g++ -o amd64-linux/generated/MOSI_SMP_bcast/obj/Chip.o -c generated/MOSI_SMP_bcast/Chip.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 -m64 -march=opteron -fPIC -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/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/core -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/arch -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/util
/usr/bin/g++ -o amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Controller.o -c generated/MOSI_SMP_bcast/Directory_Controller.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 -m64 -march=opteron -fPIC -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/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/core -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/arch -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/util
/usr/bin/g++ -o amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Transitions.o -c generated/MOSI_SMP_bcast/Directory_Transitions.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 -m64 -march=opteron -fPIC -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/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/core -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/arch -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/util
/usr/bin/g++ -o amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Wakeup.o -c generated/MOSI_SMP_bcast/Directory_Wakeup.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 -m64 -march=opteron -fPIC -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/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/core -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/arch -I/home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include/simics/util
In file included from /usr/include/c++/4.3/ext/hash_map:64, from ../common/std-includes.h:74, from common/Global.h:108, from generated/MOSI_SMP_bcast/Directory_Transitions.C:4:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: 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.
In file included from /usr/include/c++/4.3/ext/hash_map:64, from ../common/std-includes.h:74, from common/Global.h:108, from generated/MOSI_SMP_bcast/Directory_Controller.C:7:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: 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.
In file included from /usr/include/c++/4.3/ext/hash_map:64, from ../common/std-includes.h:74, from common/Global.h:108, from generated/MOSI_SMP_bcast/Chip.h:8,
from generated/MOSI_SMP_bcast/Chip.C:3: /usr/include/c++/4.3/backward/backward_warning.h:33:2: 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.
In file included from /usr/include/c++/4.3/ext/hash_map:64, from ../common/std-includes.h:74, from common/Global.h:108, from generated/MOSI_SMP_bcast/Directory_Wakeup.C:4:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: 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.
In file included from generated/MOSI_SMP_bcast/Types.h:53, from generated/MOSI_SMP_bcast/Directory_Controller.h:13, from generated/MOSI_SMP_bcast/Directory_Transitions.C:5: system/CacheMemory.h: In constructor ‘CacheMemory<ENTRY>::CacheMemory(AbstractChip*, int, int, MachineType, const std::string&)’:
system/CacheMemory.h:208: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available system/CacheMemory.h:208: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
system/CacheMemory.h:210: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available In file included from generated/MOSI_SMP_bcast/Types.h:53, from generated/MOSI_SMP_bcast/Directory_Controller.h:13,
from generated/MOSI_SMP_bcast/Directory_Controller.C:9: system/CacheMemory.h: In constructor ‘CacheMemory<ENTRY>::CacheMemory(AbstractChip*, int, int, MachineType, const std::string&)’: system/CacheMemory.h:208: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available
system/CacheMemory.h:208: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) system/CacheMemory.h:210: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available
In file included from generated/MOSI_SMP_bcast/Types.h:53, from generated/MOSI_SMP_bcast/Chip.h:9, from generated/MOSI_SMP_bcast/Chip.C:3: system/CacheMemory.h: In constructor ‘CacheMemory<ENTRY>::CacheMemory(AbstractChip*, int, int, MachineType, const std::string&)’:
system/CacheMemory.h:208: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available system/CacheMemory.h:208: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
system/CacheMemory.h:210: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Controller.o] 오류 1
make[1]: *** 끝나지 않은 작업을 기다리고 있습니다.... make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Transitions.o] 오류 1 system/CacheMemory.h: In constructor ‘CacheMemory<ENTRY>::CacheMemory(AbstractChip*, int, int, MachineType, const std::string&) [with ENTRY = L1Cache_Entry]’:
generated/MOSI_SMP_bcast/Chip.C:65: instantiated from here system/CacheMemory.h:208: error: ‘strcmp’ was not declared in this scope In file included from generated/MOSI_SMP_bcast/Types.h:53, from generated/MOSI_SMP_bcast/Directory_Controller.h:13,
from generated/MOSI_SMP_bcast/Directory_Wakeup.C:6: system/CacheMemory.h: In constructor ‘CacheMemory<ENTRY>::CacheMemory(AbstractChip*, int, int, MachineType, const std::string&)’: system/CacheMemory.h:208: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available
system/CacheMemory.h:208: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) system/CacheMemory.h:210: error: there are no arguments to ‘strcmp’ that depend on a template parameter, so a declaration of ‘strcmp’ must be available
make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Chip.o] 오류 1 make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/Directory_Wakeup.o] 오류 1 make[1]: Leaving directory `/home/cho/gems/gems-2.1.1/ruby'
make: *** [all] 오류 2
2009년 11월 16일 오후 11:33, Byn Choi <bynchoi1@xxxxxxxxxxxx>님의 말:
simics/api.h should be found in $(SIMICS_INSTALL)/src/include.
I really think that that path isn't set correctly, seeing how the first target inside ruby fails. Just to be clear, you may want to fully specify the path for SIMICS_INCLUDE_ROOT, which is actually what I do, i.e.
SIMICS_INCLUDE_ROOT := /home/cho/simics/simics-3.0-install/yes/simics-3.0.31/src/include
If that doesn't work, then I guess it's really something else.
Byn On Nov 16, 2009, at 8:22 AM, 조정욱 wrote: I already set $GEMS/common/Makefile.common
ifeq ($(SIMICS_VERSION),3.0)
SIMICS_ROOT := $(GEMS_ROOT)/simics
SIMICS_EXEC_ROOT := $(GEMS_ROOT)/simics
# NOTE: This variable must be updated to point to the src/include directory
# of your Simics 3.0 installation
#SIMICS_INCLUDE_ROOT := $(GEMS_ROOT)/simics_exec/src/include
SIMICS_INCLUDE_ROOT := $(SIMICS_INSTALL)/src/include
Anybody know this problem, plz let me know. Hi,
My first guess would be that you didn't set
SIMICS_INCLUDE_ROOT in $GEMS/common/Makefile.common Try setting it to $SIMICS_INSTALL/src/include
Byn On Nov 16, 2009, at 5:16 AM, 조정욱 wrote:
Hi, I wanted to install gems-2.1.1 I used simics3.0 and I didn't know what problem is. If you know plz let me know.
".bash_profile"
export GEMS=$HOME/gems/gems-2.1.1 export SIMICS_INSTALL=$HOME/simics/simics-3.0-install/yes/simics-3.0.31
export SIMICS_EXTRA_LIB=./modules export PYTHONPATH=./modules
I installed GEMS to /home/cho/gems/gems-2.1.1 I installed simics to $home/cho/
I installed simics_workspace /home/cho/gems/gems-2.1.1/simics_3_workspace
make amd64-linux/generated/MOSI_SMP_bcast/bin/tester.exec make[1]: Entering directory `/home/cho/gems/gems-2.1.1/ruby' make[1]: amd64-linux/generated/MOSI_SMP_bcast/obj/init.o <- default_param.h 상호 의존성은 무시됩니다.
make[1]: *** `amd64-linux/generated/MOSI_SMP_bcast/obj/attrparse.o'에서 필요로 하는 타겟 `simics/api.h'를 만들 규칙이 없습니다. 멈춤. make[1]: Leaving directory `/home/cho/gems/gems-2.1.1/ruby' make: *** [all] 오류 2
Another question is gems support NUCA?? my final goal is to make NUCA on CMP. I mean if I use gems, Can I add NUCA module to simics targets which simics3.0 supported.
Thank you for consideration.
|