Yes, I'm using a cross-compiler. I have a software Xilinx SDK, installed on Windows(on x86 processor). The microblaze gcc compiler compiles the code for the OS xilkernel(on Microblaze processor).
I compiled the code you gave me. It got compiled. On Fri, Feb 26, 2016 at 1:15 PM, Gilles Gouaillardet <gil...@rist.or.jp> wrote: > Monika, > > Can you send all the information listed here: > > https://www.open-mpi.org/community/help/ > > > > btw, are you using a cross-compiler ? > > can you try to compile this simple program : > > typedef struct xxx xxx; > > struct xxx { > int i; > xxx *p; > }; > > void yyy(xxx *x) { > x->i = 0; > x->p = x; > } > > > Cheers, > > Gilles > > > On 2/26/2016 4:34 PM, Monika Hemnani wrote: > > I'm trying to run Open mpi on Microblaze(soft core processor), with > operating system xilkernel(OS from xilinx). > I'm getting errors in the file: opal_object.h . > > > This is the part of the code where I'm getting errors. > > typedef struct opal_object_t opal_object_t; //line 1 > typedef struct opal_class_t opal_class_t; //line 2 > typedef void (*opal_construct_t) (opal_object_t *); //line 3 > typedef void (*opal_destruct_t) (opal_object_t *); //line 4 > > > struct opal_class_t { > const char *cls_name; /**< symbolic name for class > */opal_class_t *cls_parent; /**< parent class descriptor */ > //line 5 > opal_construct_t cls_construct; /**< class constructor */ > opal_destruct_t cls_destruct; /**< class destructor */ > int cls_initialized; /**< is class initialized */ > int cls_depth; /**< depth of class hierarchy tree */ > opal_construct_t *cls_construct_array; /**< array of parent class > constructors */ > opal_destruct_t *cls_destruct_array; /**< array of parent class > destructors */ > size_t cls_sizeof; /**< size of an object instance */ > }; > > struct opal_object_t { > #if OMPI_ENABLE_DEBUG > /** Magic ID -- want this to be the very first item in the > struct's memory */ > uint64_t obj_magic_id; > #endifopal_class_t *obj_class; /**< class descriptor */ > //line6 > volatile int32_t obj_reference_count; /**< reference count */ > #if OMPI_ENABLE_DEBUG > const char* cls_init_file_name; /**< In debug mode store the file where the > object get contructed */ > int cls_init_lineno; /**< In debug mode store the line number where the > object get contructed */ > #endif /* OMPI_ENABLE_DEBUG */ > }; > > > The errors are: > > line 1: storage class specified for parameter 'opal_object_t' > > line 2: storage class specified for parameter 'opal_class_t' > > line 3 and 4: expected declaration specifiers or '...' before > 'opal_object_t' > > line 5 and 6: expected specifier-qualifier-list before 'opal_class_t' > > > > > The compiler used is microblaze gcc 4.6.2 > > > > How to remove these errors? Is there any other way to make these > definitions, so that compiler won't give it as an error? > > > > > _______________________________________________ > devel mailing listde...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel > Link to this post: > http://www.open-mpi.org/community/lists/devel/2016/02/18631.php > > > > _______________________________________________ > devel mailing list > de...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel > Link to this post: > http://www.open-mpi.org/community/lists/devel/2016/02/18632.php >