Hi,
I had the same problem last week. The problem is that the default case
for opal is simics2.0. I had to change line 516 in simdist12.C to
#if 1 /* For Simics 3.0 or 2.2.X ONLY */
void *mm_malloc(size_t sz, size_t typesize, const char *type,
const char *file, int line) {
#undef malloc
return (malloc(sz));
}
Hope this is the right solution
Regards,
Kostas
I use gems and simics-3.0.30.
When I build opal, the error happens and it said that the conflicts
were found. But I can build ruby successful.
Follow is the error output when building opal.
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
/opt/virtutech/simics-3.0.30/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
/opt/virtutech/simics-3.0.30/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(constchar*, const char*, int, int)' conflicts with
/opt/virtutech/simics-3.0.30/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
/opt/virtutech/simics-3.0.30/src/include/simics/util/alloc.h:67:
error: previous declaration `void* mm_realloc(void*, size_t, size_t,
const char*, const char*,int)' here
_______________________________________________
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.
|