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


Date: Fri, 3 Mar 2006 22:35:17 -0600
From: "Mike Marty" <mikem@xxxxxxxxxxx>
Subject: Re: [Gems-users] Error in Opal compilation: conflicting definitions of mm_malloc etc.
Yeah, these mm_* stubs are only used to compile the Opal tester.  We made a
quick effort to get the Opal tester to compile for both Simics 2.0 and 2.2,
but we must have missed something. 

You should be able to just comment out these functions in the
$GEMS/opal/system/simdist12.C file and build the Opal module itself.

We'll try to fix these minor things in an upcoming point release.

--Mike

> 
> 
> 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
> >  
> >
> 
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx 
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> 

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