Re: Re: Cross-Compiled ORBit2 has Errors in Glib
- From: <lgust verizon net>
- To: Michael Meeks <michael ximian com>
- Cc: orbit <orbit-list gnome org>
- Subject: Re: Re: Cross-Compiled ORBit2 has Errors in Glib
- Date: Thu, 13 Nov 2003 23:05:34 -0600
Hi Michael,
Thank you for your suggestions. I appreciate the help I have received from the members of the orbit-list email. While investigating this problem, our team discovered that the gcc cross-compiler we are using needed an additional compilation flag: -mbig-endian.
After I built all the shared libraries and compiled the echo program with the -mbig-endian flag, the echo program ran on our target ARM processor. I don't understand how the original version of the echo program started when I didn't have the big/little-endian property set correctly.
I plan to document the hacking I had to do to cross compile ORBit2 and its dependent packages. If some engineer has to cross compile ORBit2 to run on the ARM processor in the future, I would like to save them weeks of hacking. Would zipping up a description document and the patch files I created and submitting the zipped file as an attachment to this email list be a good way of archiving this information?
Regards,
Larry S. Gustafson
>
> From: Michael Meeks <michael@ximian.com>
> Date: 2003/11/13 Thu AM 07:31:48 CST
> To: lgust@verizon.net
> CC: orbit <orbit-list@gnome.org>
> Subject: Re: Cross-Compiled ORBit2 has Errors in Glib
>
> Hi Larry,
>
> On Wed, 2003-11-12 at 04:23, lgust@verizon.net wrote:
> > Has anyone seen a similar problem to the Segmentation fault described below?
>
> Yes - sometimes when you don't do a g_type_init this sort of thing
> happens - but we do that in linc2/src/linc.c so ...
>
> > Do you have any ideas of how I might solve it?
>
> Get a stack trace from the first warning (break point in g_logv) and
> have a dig around. I suspect it may be related to GType sizes. The GType
> type has to be a pointer type size - and there are a number of int <->
> pointer type cast things going on in the background. Possibly that's
> running into ARM's cunning integer handling (?).
>
> > This error appears to originate in the call to
> >
> > orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev);
>
> Right; we need a trace really. clearly everything works fine here :-)
> Another thing that may cause you grief, and is crucial to get right for
> the ORB to work is:
>
> ORBit2/include/orbit/orbit-config.h
>
> includes a load of ORBIT_ALIGNOF_CORBA_FLOAT - and that sort of thing,
> that is highly platform specific, and has to be right for ORBit2 to work
> at all on your architecture.
>
> HTH,
>
> Michael.
>
> --
> michael@ximian.com <><, Pseudo Engineer, itinerant idiot
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]