Date: | Sat, 9 Oct 2010 23:56:40 -0500 |
---|---|
From: | Milind <Milind.Chabbi@xxxxxxxx> |
Subject: | Re: [Gems-users] How to compile GEMS/Ruby for x86/x64 Ubuntu |
Byn, Here is the error: --------------------------------------- /usr/bin/g++ -o amd64-linux/generated/MOSI_SMP_bcast/obj/LazyTransactionVersionManager.o -c log_tm/LazyTransactionVersionManager.C -DADD_ARCH_TO_API -DSIMICS30 -DIS_RUBY -DTARGET_X86 -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../simics-3.0.31/src/include -I../simics-3.0.31/src/include/simics -I../simics-3.0.31/src/include/simics/core -I../simics-3.0.31/src/include/simics/arch -I../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 system/System.h:71,
from log_tm/LazyTransactionVersionManager.C:72: /usr/include/c++/4.4/backward/backward_warning.h:28: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.
log_tm/LazyTransactionVersionManager.C: In member function ‘void LazyTransactionVersionManager::issueWriteRequests(int)’: log_tm/LazyTransactionVersionManager.C:286: error: redefinition of ‘Address request_address’
log_tm/LazyTransactionVersionManager.C:285: error: ‘Address request_address’ previously declared here make[1]: *** [amd64-linux/generated/MOSI_SMP_bcast/obj/LazyTransactionVersionManager.o] Error 1
make[1]: Leaving directory `/home/milind/gems-2.1.1/ruby' make: *** [all] Error 2 --------------------------------------- I edited, log_tm/LazyTransactionVersionManager.C as below which makes it work. Not sure at this point if this is to do with any syntax problem in GEMS code or parsing problem in latest g++.
original code that causes compiler error: CacheMsg storeMsg( Address(request_address), Address(request_address),
CacheRequestType_ST_XACT, SIMICS_get_program_counter(getLogicalProcID(thread)), AccessModeType_UserMode, g_DATA_BLOCK_BYTES,
PrefetchBit_No, 0, Address(0), thread, g_eventQueue_ptr->getTime(),
should_escape ); after my change: Address arg1Address = Address(request_address);
Address arg2Address = Address(request_address); CacheMsg storeMsg( arg1Address,
arg2Address,
CacheRequestType_ST_XACT, SIMICS_get_program_counter(getLogicalProcID(thread)),
AccessModeType_UserMode, g_DATA_BLOCK_BYTES,
PrefetchBit_No, 0,
Address(0), thread, g_eventQueue_ptr->getTime(),
should_escape ); -Milind On Sat, Oct 9, 2010 at 7:44 PM, Byn Choi <bynchoi1@xxxxxxxxxxxx> wrote:
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] How to compile GEMS/Ruby for x86/x64 Ubuntu, Byn Choi |
---|---|
Next by Date: | Re: [Gems-users] How to compile GEMS/Ruby for x86/x64 Ubuntu, Milind |
Previous by Thread: | Re: [Gems-users] How to compile GEMS/Ruby for x86/x64 Ubuntu, Byn Choi |
Next by Thread: | Re: [Gems-users] How to compile GEMS/Ruby for x86/x64 Ubuntu, Milind |
Indexes: | [Date] [Thread] |