| Date: | Tue, 11 Dec 2007 13:57:49 -0600 | 
|---|---|
| From: | "Guoqiang Yang" <nkyangguoqiang@xxxxxxxxx> | 
| Subject: | [Gems-users] Question about making opal in GEMS 2.0 | 
| 
 Hi there, 
I tried to make opal in Gems 2.0. And when I tried this command "make module PROTOCOL=MOESI_CMP_directory", I got the following errors: 
system/simdist12.C: In function `void* mm_malloc(size_t, size_t, const char*, const char*, int, int)': 
system/simdist12.C:548: error: declaration of C function `void* mm_malloc(size_t, size_t, const char*, const char*, int, int)' conflicts with /scratch/cerberus/guoyang/development/simics-3.0.29/src/include/simics/util/alloc.h:61: error: previous declaration `void* mm_malloc(size_t, size_t, const char*, const char*, int)' here system/simdist12.C: In function `void* mm_zalloc(size_t, size_t, const char*, const char*, int, int)': system/simdist12.C:554: error: declaration of C function `void* mm_zalloc(size_t, size_t, const char*, const char*, int, int)' conflicts with /scratch/cerberus/guoyang/development/simics-3.0.29/src/include/simics/util/alloc.h:65: error: previous declaration `void* mm_zalloc(size_t, size_t, const char*, const char*, int)' here system/simdist12.C: In function `char* mm_strdup(const char*, const char*, int, int)': system/simdist12.C:559: error: declaration of C function `char* mm_strdup(const char*, const char*, int, int)' conflicts with /scratch/cerberus/guoyang/development/simics-3.0.29/src/include/simics/util/alloc.h:75: error: previous declaration `char* mm_strdup(const char*, const char*, int)' here system/simdist12.C: In function `void* mm_realloc(void*, size_t, size_t, const char*, const char*, int, int)': system/simdist12.C:572: error: declaration of C function `void* mm_realloc(void*, size_t, size_t, const char*, const char*, int, int)' conflicts with /scratch/cerberus/guoyang/development/simics-3.0.29/src/include/simics/util/alloc.h:67: error: previous declaration `void* mm_realloc(void*, size_t, size_t, const char*, const char*, int)' here And I checked GEMS1.4 & GEMS2.0 and I found that the definition of "mm_malloc" is different. In GEMS 1.4 "mm_malloc" is defined as "void* mm_malloc(size_t, size_t, const char*, const char*, int)" while in GEMS 
2.0 it is defined as "void* mm_malloc(size_t, size_t, const char*, const char*, int, int)".  
Does anyone know how to deal with this compiling error? 
Many thanks, 
Guoqiang Yang 
 | 
| [← Prev in Thread] | Current Thread | [Next in Thread→] | 
|---|---|---|
  | ||
| Previous by Date: | Re: [Gems-users] When to invalidate instruction (trace) cache?, Eirik Bakke | 
|---|---|
| Next by Date: | Re: [Gems-users] Question about making opal in GEMS 2.0, Luke Yen | 
| Previous by Thread: | Re: [Gems-users] Question about load-module ruby in Simics, Greg Byrd | 
| Next by Thread: | Re: [Gems-users] Question about making opal in GEMS 2.0, Luke Yen | 
| Indexes: | [Date] [Thread] |