Re: [Gems-users] Error in Opal compilation: conflicting definitions of mm_malloc etc.


Date: Fri, 03 Mar 2006 23:20:25 -0500
From: Greg Byrd <gbyrd@xxxxxxxx>
Subject: Re: [Gems-users] Error in Opal compilation: conflicting definitions of mm_malloc etc.

I know this has to do with -DSIMICS_2_2 vs. -DSIMICS_2_0 in the compiler flags, but I don't recall how/where that gets set.

...Greg Byrd, NC State




Bilal Zafar wrote:

Hi,

In trying to compile Opal (using make module
DESTINATION=MOSI_SMP_bcast), I get the following conflicting definition error.
I'm running Gems release 1.2 with simics 2.2.19 on x86-linux (Suse
10.0), GCC ver 4.0.2. Rudy compiled fine but opal is doesn't seem happy!
thanks,
bilal


system/simdist12.C: In function 'void* mm_malloc(size_t, size_t, const
char*, const char*, int, int)': system/simdist12.C:189: error: declaration of C function 'void* mm_malloc(size_t, size_t, const char*, const char*, int, int)' conflicts
with
../simics/x86-linux/obj/include/simics/alloc.h:46: 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:195: error: declaration of C function 'void* mm_zalloc(size_t, size_t, const char*, const char*, int, int)' conflicts
with
../simics/x86-linux/obj/include/simics/alloc.h:50: 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:200: error: declaration of C function 'char* mm_strdup(const char*, const char*, int, int)' conflicts with
../simics/x86-linux/obj/include/simics/alloc.h:59: 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:212: error: declaration of C function 'void* mm_realloc(void*, size_t, size_t, const char*, const char*, int, int)' conflicts with
../simics/x86-linux/obj/include/simics/alloc.h:52: error: previous
declaration 'void* mm_realloc(void*, size_t, size_t, const char*, const char*, int)'
here
make[1]: *** [x86-linux/obj/simdist12.o] Error 1
make[1]: Leaving directory `/home/bilal/bin/gems1.2/opal'
make: *** [module] Error 2


_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users

[← Prev in Thread] Current Thread [Next in Thread→]