Re: [Gems-users] Question about making opal in GEMS 2.0


Date: Tue, 11 Dec 2007 15:12:16 -0600 (CST)
From: Luke Yen <lyen@xxxxxxxxxxx>
Subject: Re: [Gems-users] Question about making opal in GEMS 2.0

Go to opal/system/simdist12.C, and change the #if 0 in line 516 to #if 1, and then recompile Opal.

GEMS 2.0, by default, assumes Opal is compiled with Simics 2.0. The change described above is required when compiling with Simics 2.2 and 3.0.

  Luke

On Tue, 11 Dec 2007, Guoqiang Yang wrote:

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.0it 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→]