Re[4]: [Gc] compiling gc-7.2alpha2 or a4

Ivan Maidanski ivmai at mail.ru
Fri Dec 11 01:48:25 PST 2009


Hi!
Marcos_David.Dione at sophia.inria.fr wrote:
> On Tue, December 8, 2009 5:25 pm, Marcos Dione wrote:
> >     ok, I tried them all. in one or another way I hit the same error:
> > undefined reference to `__stack_base__'. as I mentioned before, this
> > seems to be normally defined in crt0.o, but the toolchain does not
> > provide such a file.
> 
>     so I finally fixed it. it was a matter of just adding this to our main.c:
> 
> #ifdef PLATFORM_ANDROID
> void * __stack_base__; /* initialized later */
> #endif
> 
>     and then in main():
> 
> #ifdef PLATFORM_ANDROID
>    __stack_base__= (void *)&argc;
> #endif
> 
>     now bigloo seems to run fine on the android emulator. we just run a
> couple of tests and it passed. it was in no way thorough, but's a good
> start. now I can sleep at night :)

__stack_base__ is no longer needed (it was required in GC v7.2alpha4 because NOSYS was defined for Android (which is, IMHO, wrong, and the generic stack-base-determination algorithm should work, though I haven't tried to run the test)).

Bye.


More information about the Gc mailing list